/* ============================================================
   MAKLI AI — Premium minimal dark, purple accent
   Fonts: Space Grotesk (display), Manrope (body), JetBrains Mono (labels)
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #08080d;
  --bg-2: #0c0c14;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #ECECF2;
  --text-dim: #9C9CAE;
  --text-faint: #5E5E70;

  /* Accent (purple) */
  --accent: #a06bff;
  --accent-2: #6f8bff;
  --accent-hi: #c4a4ff;
  --accent-soft: rgba(160, 107, 255, 0.14);
  --accent-glow: rgba(160, 107, 255, 0.45);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --motion-scale: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(160,107,255,0.10), transparent 60%),
    radial-gradient(700px 600px at 8% 18%, rgba(111,139,255,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

.display {
  font-size: clamp(40px, 6.6vw, 86px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.section-title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.03em; }
.lead { color: var(--text-dim); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; }

.grad-text {
  background: linear-gradient(105deg, var(--accent-hi), var(--accent) 45%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .3s, box-shadow .4s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #16021f;
  box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- NAV ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(8,8,13,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; position: relative; transform-style: preserve-3d; }
.brand .mark .face {
  position: absolute; inset: 0; border-radius: 8px;
}
.brand-name { white-space: nowrap; }
.brand-name b { font-weight: 600; }
.brand-name span { color: var(--accent-hi); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color .25s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 184px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(160,107,255,0.18), transparent 70%);
}
/* animated mesh blobs */
.mesh { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.mesh.m1 { width: 560px; height: 560px; left: -120px; top: -60px; background: radial-gradient(circle, rgba(160,107,255,.55), transparent 65%); animation: drift1 calc(22s / var(--motion-scale)) ease-in-out infinite; }
.mesh.m2 { width: 520px; height: 520px; right: -120px; top: 30px; background: radial-gradient(circle, rgba(111,139,255,.45), transparent 65%); animation: drift2 calc(26s / var(--motion-scale)) ease-in-out infinite; }
.mesh.m3 { width: 420px; height: 420px; left: 40%; top: 220px; background: radial-gradient(circle, rgba(196,164,255,.30), transparent 65%); animation: drift3 calc(30s / var(--motion-scale)) ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,60px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-70px,40px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-50px)} }

/* subtle grid */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--text-dim); margin-bottom: 26px;
}
.badge .pill { font-family: var(--font-mono); font-size: 11px; background: var(--accent-soft); color: var(--accent-hi); padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--text-faint); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Hero 3D scene */
.hero-scene { position: relative; height: 460px; perspective: 1400px; }
.scene-stack { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .2s ease-out; }

.glass {
  position: absolute;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
}

/* main ticket card */
.card-ticket { width: 320px; padding: 18px; left: 50%; top: 50%; transform: translate(-50%,-50%) translateZ(60px); overflow: hidden; }
.card-ticket .ct-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ct-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.ct-status { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: background .4s, color .4s; }
.ct-status::before { content:""; width:6px; height:6px; border-radius:50%; transition: background .4s, box-shadow .4s; }
.ct-status.s-new { background: rgba(255,90,120,.14); color: #ff7a98; }
.ct-status.s-new::before { background:#ff7a98; box-shadow: 0 0 8px #ff7a98; }
.ct-status.s-analyzing { background: rgba(255,190,90,.14); color: #ffcf86; }
.ct-status.s-analyzing::before { background:#ffcf86; box-shadow: 0 0 8px #ffcf86; animation: ctBlink 1s steps(2,start) infinite; }
.ct-status.s-resolved { background: rgba(80,220,160,.14); color: #6ee0a8; }
.ct-status.s-resolved::before { background:#6ee0a8; box-shadow: 0 0 8px #6ee0a8; }
@keyframes ctBlink { 50% { opacity: .25; } }
.ct-subject { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ct-body { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin-bottom: 14px; }
.ct-ai { border-top: 1px dashed var(--border-strong); padding-top: 13px; display: flex; gap: 10px; }
.ct-ai .av { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(140deg, var(--accent-hi), var(--accent-2)); flex: none; }
.ct-ai .txt { font-size: 12.5px; color: var(--text-dim); }
.ct-ai .txt b { color: var(--accent-hi); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; display: block; margin-bottom: 3px; text-transform: uppercase; }

/* auto-resolve loop: scan sweep + content transitions */
.ct-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 46%;
  pointer-events: none; opacity: 0; z-index: 5;
  background: linear-gradient(180deg, transparent, rgba(160,107,255,.22) 50%, transparent);
}
.card-ticket[data-phase="analyzing"] .ct-scan { opacity: 1; animation: ctScan 1.5s ease-in-out infinite; }
@keyframes ctScan { 0% { transform: translateY(-110%); } 100% { transform: translateY(360%); } }
.ct-subject, .ct-body, #ctAction { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.card-ticket[data-phase="new"] #ctAction { opacity: 0; }
.card-ticket[data-phase="analyzing"] #ctAction { opacity: .35; }
.card-ticket.swapping .ct-subject, .card-ticket.swapping .ct-body { opacity: 0; transform: translateY(6px); }
.card-ticket[data-phase="analyzing"] .ct-body { color: var(--accent-hi); }

/* ---------- traveling light-beam border ---------- */
@property --beamA { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam { position: relative; isolation: isolate; }
.beam::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.6px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--beamA),
    transparent 0deg 232deg,
    var(--accent-2) 296deg,
    var(--accent-hi) 330deg,
    rgba(255,255,255,.9) 344deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beamSpin 5.5s linear infinite;
}
@keyframes beamSpin { to { --beamA: 360deg; } }
body.motion-off .beam::before { animation: none; opacity: .5; }
body.motion-off .card-ticket[data-phase="analyzing"] .ct-scan { animation: none; }

/* floating chips */
.float-chip { padding: 11px 15px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-cpu { top: 16px; left: -6px; transform: translateZ(110px); }
.chip-deploy { bottom: 24px; right: -10px; transform: translateZ(130px); }
.chip-uptime { bottom: 96px; left: -24px; transform: translateZ(40px); }
.chip-uptime .num { font-family: var(--font-mono); color: var(--accent-hi); }

/* rotating cube */
.cube-wrap { position: absolute; top: -6px; right: 24px; width: 88px; height: 88px; perspective: 600px; transform: translateZ(80px); }
.cube { position: absolute; width: 88px; height: 88px; transform-style: preserve-3d; animation: spin calc(18s / var(--motion-scale)) linear infinite; }
.cube .cf {
  position: absolute; width: 88px; height: 88px;
  border: 1px solid var(--accent); background: rgba(160,107,255,.06);
  box-shadow: inset 0 0 30px rgba(160,107,255,.25);
}
.cube .cf.f1 { transform: translateZ(44px); }
.cube .cf.f2 { transform: rotateY(180deg) translateZ(44px); }
.cube .cf.f3 { transform: rotateY(90deg) translateZ(44px); }
.cube .cf.f4 { transform: rotateY(-90deg) translateZ(44px); }
.cube .cf.f5 { transform: rotateX(90deg) translateZ(44px); }
.cube .cf.f6 { transform: rotateX(-90deg) translateZ(44px); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }

/* ---------- generic section ---------- */
section.block { position: relative; z-index: 2; padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- LOGO / trust strip ---------- */
.trust { padding: 36px 0 8px; position: relative; z-index: 2; }
.trust p { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.trust-row .tlogo { font-family: var(--font-display); font-weight: 600; color: var(--text-dim); font-size: 16px; opacity: .7; padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

/* ---------- STATS ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative; overflow: hidden;
}
.stat::after { content:""; position:absolute; left:0; right:0; top:0; height:1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity:.5; }
.stat .num { font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat .num .suffix { font-size: .5em; color: var(--accent-hi); margin-left: 2px; }
.stat .label { font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.stats-foot { text-align: center; margin-top: 26px; font-size: 13px; color: var(--text-faint); }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative; transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.step .sn { font-family: var(--font-mono); font-size: 12px; color: var(--accent-hi); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.step .sn .line { flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-dim); }
.step .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-hi); }

/* ---------- INTEGRATIONS ---------- */
.integ { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.itile {
  aspect-ratio: 1.5/1; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .35s var(--ease), border-color .35s, background .35s; text-align: center;
}
.itile:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.itile .iname { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.itile .ikind { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); letter-spacing: .08em; text-transform: uppercase; }
.itile .glyph { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-hi); font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* ---------- FEATURES ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.feat .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--border-strong); color: var(--accent-hi); margin-bottom: 18px; }
.feat h3 { font-size: 18px; margin-bottom: 9px; }
.feat p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ---------- SECURITY ---------- */
.security { position: relative; }
.sec-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.sec-list { display: flex; flex-direction: column; gap: 14px; }
.sec-item { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, background .3s; }
.sec-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.sec-item .chk { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hi); display: grid; place-items: center; flex: none; }
.sec-item .st { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.sec-item .sd { font-size: 13.5px; color: var(--text-dim); }
.sec-visual {
  aspect-ratio: 1/1; border-radius: 24px; position: relative;
  border: 1px solid var(--border); background: radial-gradient(circle at 50% 40%, rgba(160,107,255,.14), transparent 60%);
  display: grid; place-items: center; overflow: hidden;
}
.shield { width: 150px; height: 175px; position: relative; }
.shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border-strong); }
.lock {
  width: 96px; height: 96px; border-radius: 24px;
  background: linear-gradient(150deg, rgba(160,107,255,.25), rgba(111,139,255,.12));
  border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent-hi);
  box-shadow: 0 0 50px rgba(160,107,255,.4), inset 0 1px 0 rgba(255,255,255,.18);
  z-index: 2; position: relative;
}
.orbit { position: absolute; inset: -60px; border: 1px dashed var(--border-strong); border-radius: 50%; animation: spinSlow calc(40s / var(--motion-scale)) linear infinite; }
.orbit.o2 { inset: -110px; animation-duration: calc(60s / var(--motion-scale)); animation-direction: reverse; }
.orbit .node { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- TESTIMONIALS ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 18px; transition: transform .4s var(--ease), border-color .4s; }
.tcard:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.tcard .quote { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .av { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(140deg, var(--accent), var(--accent-2)); flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px; }
.tcard .who .nm { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.tcard .who .rl { font-size: 12.5px; color: var(--text-faint); }
.tcard .stars { display: flex; gap: 3px; color: var(--accent-hi); }

/* ---------- PRICING ---------- */
.pricing { position: relative; }
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 46px; padding: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; }
.bill-toggle button { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color .3s, background .3s; position: relative; }
.bill-toggle button.active { color: #16021f; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.bill-toggle .save { font-family: var(--font-mono); font-size: 10px; color: var(--accent-hi); margin-left: 6px; }
.bill-toggle button.active .save { color: #2a0840; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; position: relative; transition: transform .4s var(--ease), border-color .4s;
}
.plan:hover { transform: translateY(-6px); }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(160,107,255,.08), var(--surface)); box-shadow: 0 30px 70px -30px var(--accent-glow); }
.plan .ptag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.plan.featured .ptag { color: var(--accent-hi); }
.plan .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: #16021f; }
.plan h3 { font-size: 24px; margin-bottom: 6px; }
.plan .pdesc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; min-height: 40px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price .cur { font-size: 22px; color: var(--text-dim); font-family: var(--font-display); }
.plan .price .amt { font-family: var(--font-display); font-weight: 600; font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.plan .price .per { font-size: 14px; color: var(--text-faint); }
.plan .pnote { font-size: 12.5px; color: var(--text-faint); margin-bottom: 24px; min-height: 18px; }
.plan .btn { width: 100%; justify-content: center; margin-bottom: 24px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 11px; font-size: 14px; color: var(--text-dim); line-height: 1.4; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent-hi); }
.plan li b { color: var(--text); font-weight: 600; }
.plan .feat-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 18px; transition: color .3s; }
.faq-q:hover { color: var(--accent-hi); }
.faq-q .pm { width: 24px; height: 24px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent-hi); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.faq-q .pm::before { left: 50%; top: 4px; width: 2px; height: 16px; transform: translateX(-50%); }
.faq-q .pm::after { top: 50%; left: 4px; height: 2px; width: 16px; transform: translateY(-50%); }
.faq-item.open .pm::before { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-dim); font-size: 15px; line-height: 1.62; max-width: 92%; }

/* ---------- CTA ---------- */
.cta-block { position: relative; z-index: 2; padding: 30px 0 110px; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, rgba(160,107,255,.14), rgba(111,139,255,.06));
  padding: 72px 48px; text-align: center;
}
.cta-card .mesh { opacity: .35; }
.cta-card h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 18px; position: relative; z-index: 2; }
.cta-card p { color: var(--text-dim); font-size: 18px; max-width: 540px; margin: 0 auto 32px; position: relative; z-index: 2; }
.cta-card .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ---------- FOOTER ---------- */
footer.foot { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.foot-brand .lead { font-size: 14px; max-width: 280px; margin-top: 16px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 11px; transition: color .25s; }
.foot-col a:hover { color: var(--text); }
.foot-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); flex-wrap: wrap; gap: 14px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

body.motion-off .mesh,
body.motion-off .cube,
body.motion-off .orbit { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-scene { height: 380px; order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .feat-grid, .tgrid, .plans { grid-template-columns: 1fr; }
  .integ, .sec-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 140px 0 60px; }
  .stats-grid { grid-template-columns: 1fr; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 70px 0; }
}
