:root {
  /* Match user login / panel theme */
  --fp-primary: #886cc0;
  --fp-primary-dark: #6f4fb0;
  --fp-primary-light: #f3effa;
  --fp-accent: #a78bfa;
  --fp-bg: #f5f3fa;
  --fp-card: #ffffff;
  --fp-text: #1f2937;
  --fp-muted: #6b7280;
  --fp-border: #ece8f4;
  --fp-success: #10b981;

  --bg: #2a1848;
  --bg-deep: #1a0f2e;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(167, 139, 250, 0.28);
  --purple: #886cc0;
  --purple-dark: #6f4fb0;
  --purple-light: #a78bfa;
  --mint: #10b981;
  --gold: #f59e0b;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mr-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fp-text);
  background: var(--fp-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* —— Nav —— */
.mr-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid transparent;
  color: #fff;
}

.mr-nav.is-scrolled {
  background: rgba(26, 15, 46, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.mr-logo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mr-nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.mr-nav-links a:hover { color: #fff; }

.mr-nav-cta {
  color: var(--purple-dark) !important;
  background: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 0.65rem;
  box-shadow: 0 6px 18px rgba(26, 15, 46, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.mr-nav-cta:hover {
  background: #f3effa !important;
  color: #5b3d9a !important;
  box-shadow: 0 8px 22px rgba(26, 15, 46, 0.28);
}

/* —— Hero —— */
.mr-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6.5rem clamp(1.2rem, 4vw, 3.5rem) 4rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: linear-gradient(145deg, #6f4fb0 0%, #886cc0 45%, #5b3d9a 100%);
}

.mr-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: mr-grid-drift 28s linear infinite;
}

.mr-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mr-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: mr-float 9s ease-in-out infinite alternate;
}

.mr-blob-a {
  width: 420px;
  height: 420px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
}

.mr-blob-b {
  width: 360px;
  height: 360px;
  right: 18%;
  top: 42%;
  background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
  animation-delay: -2s;
}

.mr-blob-c {
  width: 280px;
  height: 280px;
  right: 28%;
  top: 28%;
  background: radial-gradient(circle, #ddd6fe 0%, transparent 70%);
  opacity: 0.4;
  animation-delay: -4s;
}

.mr-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .mr-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.mr-hero-copy {
  animation: mr-up 0.85s var(--ease) both;
}

.mr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.mr-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 10px #c4b5fd;
  animation: mr-pulse 1.6s ease-in-out infinite;
}

.mr-title {
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mr-title-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: #ddd6fe;
  letter-spacing: 0.02em;
}

.mr-title-main {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.mr-title-grad {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #f5f3fa 0%, #ddd6fe 40%, #c4b5fd 70%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mr-lead {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.mr-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1.3rem;
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mr-btn:hover { transform: translateY(-2px); }

.mr-btn-primary {
  background: linear-gradient(135deg, #6f4fb0, #886cc0);
  color: #fff;
  box-shadow: 0 10px 28px rgba(111, 79, 176, 0.45);
}

.mr-btn-primary:hover {
  background: linear-gradient(135deg, #886cc0, #a78bfa);
  box-shadow: 0 12px 30px rgba(136, 108, 192, 0.5);
}

.mr-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.mr-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mr-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mr-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.mr-trust-item svg { color: #fcd34d; }

/* —— Glass stats card —— */
.mr-hero-visual {
  position: relative;
  animation: mr-up 1s 0.12s var(--ease) both;
  perspective: 1200px;
}

.mr-card-glow {
  position: absolute;
  inset: -12% -8% -18% -8%;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  filter: blur(28px);
}

.mr-card-glow-spin {
  display: block;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #6f4fb0 0deg,
    #a78bfa 70deg,
    #ddd6fe 140deg,
    #c4b5fd 200deg,
    #886cc0 270deg,
    #e9d5ff 320deg,
    #6f4fb0 360deg
  );
  opacity: 0.85;
  animation: mr-spin-glow 8s linear infinite;
  will-change: transform;
}

.mr-card-glow::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: #6f4fb0;
  opacity: 0.35;
  filter: blur(8px);
}

.mr-glass {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  box-shadow:
    0 25px 60px rgba(136, 108, 192, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.mr-glass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mr-glass-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.mr-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mr-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: mr-pulse 1.4s ease-in-out infinite;
}

.mr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.mr-stat {
  padding: 1rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(42, 24, 72, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mr-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: #fff;
}

.mr-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

.mr-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(42, 24, 72, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mr-flow-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mr-flow-step b {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.mr-flow-step small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
}

.mr-flow-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mr-flow-phone {
  background: rgba(167, 139, 250, 0.35);
  color: #ede9fe;
}

.mr-flow-ok {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border-radius: 50%;
}

.mr-flow-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: #e9d5ff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
}

.mr-flow-mid svg { color: #c4b5fd; }

/* —— Sections (light like login page) —— */
.mr-section {
  padding: 4.5rem clamp(1.2rem, 4vw, 3.5rem);
  position: relative;
  background: var(--fp-bg);
  color: var(--fp-text);
}

.mr-section-alt {
  background: #fff;
}

.mr-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.mr-h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fp-text);
}

.mr-section-sub {
  margin: 0 0 2rem;
  color: var(--fp-muted);
  max-width: 34rem;
  line-height: 1.55;
}

.mr-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mr-step {
  padding: 1.4rem 1.25rem;
  border-radius: 1rem;
  background: var(--fp-card);
  border: 1px solid var(--fp-border);
  box-shadow: 0 8px 24px rgba(136, 108, 192, 0.08);
}

.mr-step-n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple);
  display: block;
  margin-bottom: 0.5rem;
}

.mr-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--fp-text);
}

.mr-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fp-muted);
  line-height: 1.5;
}

.mr-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.mr-svc {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--fp-card);
  border: 1px solid var(--fp-border);
  box-shadow: 0 8px 24px rgba(136, 108, 192, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mr-svc:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 108, 192, 0.45);
  background: var(--fp-primary-light);
}

.mr-svc-ico {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-light));
  color: #fff;
  flex-shrink: 0;
}

.mr-svc-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.mr-svc h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--fp-text);
}

.mr-svc p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fp-muted);
  line-height: 1.45;
}

.mr-enquiry-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .mr-enquiry-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.mr-form-wrap {
  padding: 1.35rem;
  border-radius: 1.15rem;
  background: var(--fp-card);
  border: 1px solid var(--fp-border);
  box-shadow: 0 25px 60px rgba(136, 108, 192, 0.15);
}

.mr-form {
  display: grid;
  gap: 0.75rem;
}

.mr-form input,
.mr-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: none;
  background: #f3f4f6;
  color: var(--fp-text);
  font: inherit;
  outline: none;
}

.mr-form input:focus,
.mr-form textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(136, 108, 192, 0.2);
}

.mr-form input::placeholder,
.mr-form textarea::placeholder {
  color: #9ca3af;
}

.mr-ok {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
}

.mr-section .mr-btn-primary {
  background: linear-gradient(135deg, #6f4fb0, #886cc0);
  box-shadow: 0 8px 20px rgba(136, 108, 192, 0.35);
}

.mr-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem clamp(1.2rem, 4vw, 3.5rem) 2.25rem;
  border-top: 1px solid var(--fp-border);
  background: #fff;
  color: var(--fp-muted);
  font-size: 0.85rem;
}

.mr-foot span {
  color: var(--purple);
  font-weight: 700;
}

.mr-foot a {
  margin-left: 1rem;
  font-weight: 600;
}

.mr-foot a:hover { color: var(--purple); }

/* —— FABs —— */
.mr-fabs {
  position: fixed;
  left: 1rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mr-fab {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(136, 108, 192, 0.35);
  transition: transform 0.2s ease;
}

.mr-fab:hover { transform: scale(1.08); }

.mr-fab-wa { background: #25d366; }
.mr-fab-call { background: linear-gradient(135deg, #6f4fb0, #886cc0); }

/* —— Motion —— */
@keyframes mr-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes mr-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 18px) scale(1.08); }
}

@keyframes mr-spin-glow {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes mr-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

@media (max-width: 780px) {
  .mr-nav-links a:not(.mr-nav-cta) { display: none; }
  .mr-flow { flex-wrap: wrap; }
  .mr-flow-mid { width: 100%; flex-direction: row; justify-content: center; }
  .mr-title-main { font-size: clamp(2.2rem, 9vw, 3rem); }
  .mr-title-grad { font-size: clamp(2rem, 8vw, 2.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .mr-grid, .mr-blob, .mr-hero-copy, .mr-hero-visual, .mr-live i, .mr-chip-dot, .mr-card-glow-spin {
    animation: none !important;
  }
}
