/* ============================================================
   QUOLOGY SOFTWARE — quology.in
   Concept: "Depth" — we go deeper into the problem than anyone,
   then surface with precise, future-ready software.
   ============================================================ */

:root {
  /* Brand tokens (from quology-tokens.css) */
  --q-950: #0D0824;
  --q-900: #1A1040;
  --q-800: #2D1F6E;
  --q-700: #3B2990;
  --q-600: #5340C0;
  --q-500: #7B6FD4;
  --q-400: #9B94D4;
  --q-300: #C8C0F0;
  --q-200: #E8E4F8;
  --q-50:  #F0EEFF;
  --silver: #A09AC0;
  --success: #1D9E75;

  /* Semantic */
  --bg: #0B0720;
  --bg-2: #110A2E;
  --surface: rgba(45, 31, 110, 0.28);
  --surface-strong: rgba(45, 31, 110, 0.55);
  --line: rgba(200, 192, 240, 0.12);
  --line-strong: rgba(200, 192, 240, 0.24);
  --text: #F0EEFF;
  --text-2: #C8C0F0;
  --muted: #9B94D4;
  --dim: #6F67A8;

  --grad: linear-gradient(120deg, #C8C0F0 0%, #9B94D4 35%, #7B6FD4 60%, #F0EEFF 100%);
  --grad-btn: linear-gradient(135deg, #6A57E0 0%, #5340C0 45%, #3B2990 100%);

  --font-display: 'Inter Tight', 'Inter', Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--q-600); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--q-600); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--q-300); outline-offset: 3px; border-radius: 6px; }

/* ── Ambient layers ─────────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-10%); } 30% { transform: translate(3%,-15%); }
  50% { transform: translate(12%,9%); } 70% { transform: translate(9%,4%); } 90% { transform: translate(-1%,7%); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--q-600), var(--q-300));
}

/* ── Cursor ─────────────────────────────────────── */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 400; border-radius: 50%; opacity: 0; }
.cursor { width: 6px; height: 6px; background: var(--q-50); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(200, 192, 240, 0.5);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor-ring.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(123, 111, 212, 0.14); border-color: rgba(200,192,240,.8); }
@media (hover: hover) and (pointer: fine) { body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; } }

/* ── Preloader ──────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--q-950);
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader svg { width: 96px; height: 96px; }
.loader .draw { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.1s var(--ease) forwards; }
.loader .draw-tail { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s var(--ease) 0.75s forwards; }
.loader .dot { transform-origin: 64px 61px; transform: scale(0); animation: pop .5s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
.loader__text { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.loader__count { color: var(--q-300); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-weight: 500; font-size: 15px;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(83, 64, 192, .8), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(123, 111, 212, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(240,238,255,.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--q-300); background: rgba(240,238,255,.06); }
.btn--sm { --pad: 10px 18px; font-size: 14px; }

/* ── Navbar ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 7, 32, .72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 40px; height: 40px; flex: none; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(-20deg); }
.brand__word { display: grid; line-height: 1; }
.brand__name { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--q-50); }
.brand__sub { font-size: 9px; letter-spacing: .38em; color: var(--q-500); margin-top: 5px; }

.nav__links { display: flex; gap: 4px; list-style: none; }
.nav__links a {
  position: relative; display: block; padding: 8px 14px; font-size: 14px; color: var(--text-2);
  border-radius: 999px; transition: color .3s, background .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(200,192,240,.07); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.nav.is-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: rgba(11,7,32,.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(34px, 9vw, 54px); font-weight: 500; letter-spacing: -.03em; padding: 6px 0; display: flex; gap: 16px; align-items: baseline; }
.mobile-menu a span { font-family: var(--font-mono); font-size: 12px; color: var(--q-500); }
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; font-size: 15px; }

@media (max-width: 960px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
}

/* ── Typography helpers ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--q-400);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.h-xl {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 8.4vw, 124px); line-height: .96; letter-spacing: -.045em;
}
.h-lg { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
.h-md { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); line-height: 1.6; max-width: 58ch; }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }

section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 900px; }
.section-head--split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ── Hero ───────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 72% 42%, rgba(83, 64, 192, .45), transparent 70%),
    radial-gradient(30% 30% at 20% 85%, rgba(59, 41, 144, .5), transparent 70%),
    radial-gradient(25% 25% at 90% 90%, rgba(123, 111, 212, .22), transparent 70%);
  filter: blur(20px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,192,240,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,192,240,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
#qfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__content { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(26,16,64,.5); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--text-2); margin-bottom: 34px;
}
.hero__badge b { font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--q-600); color: #fff; padding: 3px 9px; border-radius: 999px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5EE0B5; box-shadow: 0 0 0 0 rgba(94,224,181,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94,224,181,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,181,0); } }

.hero h1 { max-width: 12ch; }
.hero__sub { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 40px; align-items: end; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 860px) { .hero__sub { grid-template-columns: 1fr; gap: 0; } }

.hero__foot {
  position: relative; z-index: 2; margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0 26px;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 22px; height: 34px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--q-300); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.hero__meta { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hero__meta span b { color: var(--text-2); font-weight: 400; }
@media (max-width: 700px) { .hero__meta { display: none; } }

/* ── Ticker ─────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); background: rgba(26,16,64,.35); overflow: hidden; padding: 22px 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; }
.ticker__track span em { font-family: var(--font-serif); color: var(--q-300); }
.ticker__track span::after { content: "✦"; color: var(--q-500); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Manifesto ──────────────────────────────────── */
.manifesto { padding: clamp(110px, 16vw, 220px) 0; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.14; letter-spacing: -.035em; max-width: 22ch;
}
.manifesto__text .w { opacity: .14; transition: none; }
.manifesto__text .serif { color: var(--q-300); }
.manifesto__sig { margin-top: 48px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.manifesto__sig svg { width: 44px; height: 44px; }

/* ── Depth (pinned) ─────────────────────────────── */
.depth { padding: clamp(80px, 10vw, 120px) 0; overflow-x: clip; }
.depth__pin { min-height: 100vh; display: flex; align-items: center; }
.depth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; width: 100%; }
.depth__copy h2 { margin: 20px 0 28px; }
.depth__steps { list-style: none; display: grid; gap: 4px; margin-top: 36px; border-left: 1px solid var(--line); }
.depth__step { position: relative; padding: 16px 0 16px 28px; cursor: default; }
.depth__step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--q-300); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.depth__step.is-active::before { transform: scaleY(1); }
.depth__step h3 { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; color: var(--dim); transition: color .5s; }
.depth__step h3 small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.depth__step p { max-height: 0; overflow: hidden; opacity: 0; color: var(--text-2); font-size: 15.5px; transition: max-height .7s var(--ease), opacity .5s, margin .5s; max-width: 46ch; }
.depth__step.is-active h3 { color: var(--text); }
.depth__step.is-active h3 small { color: var(--q-400); }
.depth__step.is-active p { max-height: 140px; opacity: 1; margin-top: 8px; }

.stack { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-inline: auto; perspective: 1400px; }
.stack__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); }
.plane {
  position: absolute; left: 18%; top: 18%; width: 64%; height: 64%; border-radius: 26px;
  border: 1px solid rgba(200,192,240,.22);
  background: linear-gradient(135deg, rgba(59,41,144,.42), rgba(26,16,64,.6));
  transform: translateZ(calc(var(--z) * 1px));
  transition: transform 1s var(--ease), background .8s, border-color .8s, box-shadow .8s, opacity .8s;
  display: grid; place-items: center; overflow: hidden;
}
.plane::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(200,192,240,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(200,192,240,.08) 1px, transparent 1px); background-size: 28px 28px; }
.plane__label { position: relative; font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--q-300); transform: rotateZ(38deg); opacity: .45; transition: opacity .6s; }
.plane[data-i="0"] { --z: 210; }
.plane[data-i="1"] { --z: 70; }
.plane[data-i="2"] { --z: -70; }
.plane[data-i="3"] { --z: -210; }
.plane.is-past { opacity: .25; transform: translateZ(calc(var(--z) * 1px + 160px)) scale(1.06); }
.plane.is-active {
  border-color: rgba(200,192,240,.7);
  background: linear-gradient(135deg, rgba(123,111,212,.55), rgba(59,41,144,.75));
  box-shadow: 0 0 80px rgba(123,111,212,.45), inset 0 0 40px rgba(200,192,240,.15);
}
.plane.is-active .plane__label { opacity: 1; color: #fff; }
.plane[data-i="3"].is-active { background: linear-gradient(135deg, rgba(200,192,240,.55), rgba(83,64,192,.85)); }
.stack__probe { position: absolute; left: 50%; top: 4%; width: 2px; height: 0; background: linear-gradient(var(--q-50), rgba(200,192,240,0)); transform: translateX(-50%); box-shadow: 0 0 18px var(--q-300); border-radius: 2px; z-index: 3; }
.stack__probe::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--q-50); box-shadow: 0 0 24px 6px rgba(200,192,240,.7); }
.stack__depth { position: absolute; right: 0; bottom: 4%; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; text-align: right; }
.stack__depth b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 40px; letter-spacing: -.03em; color: var(--text); }

@media (max-width: 900px) {
  .depth__pin { min-height: 0; }
  .depth__grid { grid-template-columns: 1fr; }
  .stack { max-width: 400px; order: -1; }
  .depth__step p { max-height: none; opacity: 1; margin-top: 8px; }
  .depth__step h3 { color: var(--text); }
}

/* ── Pillars ────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--radius); padding: 32px 28px; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(45,31,110,.32), rgba(26,16,64,.24));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123,111,212,.2), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(200,192,240,.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }

.pillar { min-height: 380px; display: flex; flex-direction: column; }
.pillar__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(123,111,212,.14); border: 1px solid rgba(200,192,240,.18); margin-bottom: auto; }
.pillar__icon svg { width: 30px; height: 30px; stroke: var(--q-300); }
.pillar__num { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.03em; margin: 44px 0 12px; }
.pillar h3 .serif { color: var(--q-300); }
.pillar p { color: var(--text-2); font-size: 15px; }

/* animated icon details */
.spin-slow { transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bolt { animation: bolt 2.4s ease-in-out infinite; }
@keyframes bolt { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.dash-run { stroke-dasharray: 4 4; animation: dashrun 1.4s linear infinite; }
@keyframes dashrun { to { stroke-dashoffset: -16; } }

/* ── Future-ready ───────────────────────────────── */
.future { background: linear-gradient(180deg, transparent, rgba(26,16,64,.6) 20%, rgba(26,16,64,.6) 80%, transparent); }
.future__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 960px) { .future__grid { grid-template-columns: 1fr; } }
.future__list { list-style: none; display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.future__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.future__list li svg { width: 22px; height: 22px; stroke: var(--q-400); margin-top: 3px; }
.future__list b { display: block; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.future__list span { color: var(--text-2); font-size: 15px; }

.arch { width: 100%; aspect-ratio: 1 / 0.9; }
.arch svg { width: 100%; height: 100%; overflow: visible; }
.arch .link { fill: none; stroke: rgba(200,192,240,.35); stroke-width: 1.2; }
.arch .mod rect { fill: rgba(26,16,64,.9); stroke: rgba(200,192,240,.3); }
.arch .mod text { fill: var(--text); font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.arch .mod .tag { fill: var(--q-400); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; font-weight: 400; }
.arch .core-ring { fill: none; stroke: rgba(200,192,240,.25); stroke-dasharray: 2 6; }
.arch .spark { fill: var(--q-50); filter: drop-shadow(0 0 6px #C8C0F0); }

/* ── Services ───────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service { grid-column: span 4; min-height: 300px; display: flex; flex-direction: column; }
.service--wide { grid-column: span 8; }
@media (max-width: 1000px) { .service, .service--wide { grid-column: span 6; } }
@media (max-width: 640px) { .service, .service--wide { grid-column: span 12; min-height: 0; } }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(123,111,212,.12); border: 1px solid rgba(200,192,240,.16); }
.service__icon svg { width: 24px; height: 24px; stroke: var(--q-300); }
.service__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.service__arrow svg { width: 16px; height: 16px; stroke: var(--text); }
.service:hover .service__arrow { transform: rotate(-45deg); background: var(--q-600); border-color: var(--q-600); }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.025em; margin-bottom: 10px; }
.service p { color: var(--text-2); font-size: 15px; max-width: 52ch; }
.service .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 26px; }
.tags span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.service--feature { background: linear-gradient(135deg, rgba(83,64,192,.45), rgba(26,16,64,.4) 60%); }
.service--feature .badge-new { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: var(--q-50); color: var(--q-800); padding: 4px 10px; border-radius: 999px; }

/* ── Process (horizontal) ───────────────────────── */
.process { overflow: hidden; }
.process__pin { padding: clamp(96px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.process__track { display: flex; gap: 20px; padding-left: var(--gutter); padding-right: var(--gutter); width: max-content; }
.process__wrap { max-width: var(--container); margin: 0 auto; }
.step {
  width: min(420px, 80vw); flex: none; border-radius: var(--radius); padding: 36px 32px 34px;
  background: rgba(26,16,64,.55); border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 420px;
}
.step__num { font-family: var(--font-display); font-size: 120px; font-weight: 500; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(200,192,240,.3); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.03em; margin: auto 0 10px; }
.step p { color: var(--text-2); font-size: 15px; }
.step .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.step__time { position: absolute; top: 36px; right: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--q-400); text-transform: uppercase; }
.step--accent { background: linear-gradient(160deg, rgba(123,111,212,.5), rgba(45,31,110,.6)); border-color: rgba(200,192,240,.3); }
.step--accent .step__num { -webkit-text-stroke-color: rgba(240,238,255,.6); }
.process__bar { margin: 40px var(--gutter) 0; max-width: calc(var(--container) - 2 * var(--gutter)); height: 2px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.process__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--q-600), var(--q-300)); transform-origin: left; transform: scaleX(0); }
@media (min-width: 901px) { .process__bar { margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); } }
@media (max-width: 900px) {
  .process__track { flex-direction: column; width: auto; }
  .step { width: auto; min-height: 0; }
  .step h3 { margin-top: 30px; }
  .step__num { font-size: 80px; }
  .process__bar { display: none; }
}

/* ── Stack marquee ──────────────────────────────── */
.tech { padding: clamp(80px, 10vw, 130px) 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__row { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee--rev .marquee__row { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(26,16,64,.55); font-size: 15px; white-space: nowrap; color: var(--text-2); transition: border-color .3s, color .3s; }
.chip:hover { border-color: var(--q-400); color: var(--text); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--q-500)); box-shadow: 0 0 10px var(--c, var(--q-500)); }

/* ── Speed & quality ────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__val { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 5.5vw, 76px); letter-spacing: -.05em; line-height: 1; }
.stat__val sup { font-size: .4em; color: var(--q-400); vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.stat__label { margin-top: 14px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: 28px 16px; } }

.speed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .speed { grid-template-columns: 1fr; } }
.speed .card h4 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; margin: 18px 0 8px; }
.speed .card p { color: var(--text-2); font-size: 15px; }
.speed .card svg { width: 26px; height: 26px; stroke: var(--q-300); }

/* timeline compare */
.compare { margin-top: 16px; padding: 34px 28px; }
.compare__row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 10px 0; }
.compare__row span { font-size: 14px; color: var(--text-2); }
.compare__bar { height: 14px; border-radius: 999px; background: rgba(200,192,240,.06); position: relative; overflow: hidden; }
.compare__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; transform-origin: left; }
.compare__bar--them i { background: repeating-linear-gradient(-45deg, rgba(155,148,212,.35) 0 6px, rgba(155,148,212,.15) 6px 12px); }
.compare__bar--us i { background: linear-gradient(90deg, var(--q-600), var(--q-300)); box-shadow: 0 0 20px rgba(123,111,212,.6); }
.compare__note { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .06em; }
@media (max-width: 560px) { .compare__row { grid-template-columns: 1fr; gap: 8px; } }

/* ── FAQ ────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--q-600); border-color: var(--q-600); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .faq__a { color: var(--text-2); padding: 0 50px 26px 0; max-width: 64ch; }

/* ── CTA / Contact ──────────────────────────────── */
.cta { padding: clamp(60px, 8vw, 100px) 0 clamp(96px, 12vw, 150px); }
.cta__box {
  position: relative; border-radius: 32px; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 80px); border: 1px solid rgba(200,192,240,.2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(123,111,212,.45), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(59,41,144,.6), transparent 60%), #140C38;
}
.cta__orb { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; z-index: -1; opacity: .5; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
@media (max-width: 960px) { .cta__grid { grid-template-columns: 1fr; } }
.cta h2 { margin: 20px 0 24px; }
.contact-list { list-style: none; margin-top: 40px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; stroke: var(--q-300); margin-top: 3px; flex: none; }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--q-300); }

.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: rgba(11,7,32,.55); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 24px 18px 10px; outline: none; transition: border-color .3s, background .3s; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { padding-right: 44px; cursor: pointer; }
.field select option { background: var(--q-900); }
.field label { position: absolute; left: 19px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: left top; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--q-400); background: rgba(11,7,32,.75); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px); font-size: 11.5px; color: var(--q-300); letter-spacing: .04em; }
.field--select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--q-300); border-bottom: 1.5px solid var(--q-300); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand p { color: var(--text-2); max-width: 36ch; margin-top: 18px; font-size: 15px; }
.footer h4 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: var(--text); }
.footer__word {
  margin-top: 70px; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(64px, 17.5vw, 270px);
  line-height: .8; letter-spacing: -.02em; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(200,192,240,.18);
  background: linear-gradient(180deg, rgba(200,192,240,.35), rgba(200,192,240,0) 85%); -webkit-background-clip: text; background-clip: text;
}
.footer__bottom { margin-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.footer__bottom em { font-family: var(--font-serif); color: var(--q-300); font-size: 15px; }

/* ── Toast ──────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 450; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--q-800); border: 1px solid var(--line-strong); padding: 14px 20px; border-radius: 14px; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.4); transition: transform .6s var(--ease), visibility .6s; max-width: calc(100vw - 32px); }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track, .marquee__row { animation: none !important; }
  .manifesto__text .w { opacity: 1; }
  .grain { display: none; }
}

/* ── JS-split words ─────────────────────────────── */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; }
.wi { display: inline-block; will-change: transform; }

@media (min-width: 901px) {
  .process__track { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .process__pin { padding-top: clamp(80px, 11vh, 130px); }
  .step { min-height: clamp(320px, 44vh, 420px); }
}

/* Reduced motion: no pinning, everything readable */
.rm .depth__step p { max-height: none; opacity: 1; margin-top: 8px; }
.rm .depth__step h3 { color: var(--text); }
@media (min-width: 901px) {
  .rm .process__track { flex-wrap: wrap; width: auto; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); }
  .rm .step { width: calc((100% - 40px) / 3); }
  .rm .process__bar { display: none; }
}

/* Depth: keep the pinned scene within one viewport */
@media (min-width: 901px) {
  .depth__copy h2 { font-size: clamp(34px, 3.8vw, 56px); margin: 16px 0 18px; }
  .depth__copy .lead { font-size: 17px; }
  .depth__steps { margin-top: 24px; }
  .depth__step { padding: 11px 0 11px 28px; }
  .stack { max-width: min(560px, 74vh); }
}

/* ── Offerings ──────────────────────────────────── */
.offer__paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .offer__paths { grid-template-columns: 1fr; } }
.offer__path { padding: clamp(30px, 4vw, 48px); }
.offer__path--alt { background: linear-gradient(135deg, rgba(83,64,192,.42), rgba(26,16,64,.4) 65%); border-color: rgba(200,192,240,.22); }
.offer__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--q-400); }
.offer__path h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin: 18px 0 12px; }
.offer__path h3 .serif { color: var(--q-300); }
.offer__path > p { color: var(--text-2); max-width: 46ch; }
.offer__path ul { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.offer__path li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.offer__path li svg { width: 20px; height: 20px; stroke: var(--q-300); flex: none; }

.products { margin-top: clamp(56px, 7vw, 88px); }
.products__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.products__more { font-family: var(--font-serif); font-style: italic; color: var(--q-300); font-size: 18px; }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products__grid { grid-template-columns: 1fr; } }
.product { padding: 28px 24px; }
.product__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); margin-bottom: 24px; transition: transform .6s var(--ease); }
.product:hover .product__icon { transform: rotate(-8deg) scale(1.08); }
.product__icon svg { width: 24px; height: 24px; stroke: var(--pc); }
.product h4 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 24px; letter-spacing: .01em; }
.product__cat { display: inline-block; margin: 6px 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--q-400); }
.product p { color: var(--text-2); font-size: 14.5px; }

.managed { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--radius); border: 1px dashed rgba(200,192,240,.28); background: rgba(26,16,64,.4); }
.managed__label { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.managed ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.managed li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.managed li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5EE0B5; box-shadow: 0 0 10px #5EE0B5; }

/* ── Founder credentials ────────────────────────── */
.founder { padding-bottom: clamp(40px, 6vw, 80px); }
.founder__box {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 28px; border: 1px solid rgba(200,192,240,.2);
  background: radial-gradient(70% 120% at 0% 0%, rgba(83,64,192,.35), transparent 60%), rgba(26,16,64,.55);
}
@media (max-width: 960px) { .founder__box { grid-template-columns: 1fr; } }
.founder__intro h2 { margin: 18px 0 14px; }
.founder__intro h2 .serif { color: var(--q-300); }
.founder__intro p { color: var(--text-2); font-size: 15.5px; max-width: 44ch; }
.creds { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cred { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11,7,32,.45); transition: border-color .4s, transform .5s var(--ease); }
.cred:hover { border-color: rgba(200,192,240,.45); transform: translateY(-3px); }
.cred__val { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; letter-spacing: -.04em; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite; }
.cred__val--text { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: .01em; }
.cred__val--icon { -webkit-background-clip: border-box; background-clip: border-box; animation: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(123,111,212,.16); border: 1px solid rgba(200,192,240,.22); }
.cred__val--icon svg { width: 26px; height: 26px; stroke: var(--q-300); }
.cred__label { font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* ============================================================
   LIGHT THEME  (html[data-theme="light"])
   ============================================================ */
[data-theme="light"] {
  --bg: #F7F5FF;
  --bg-2: #EFECFC;
  --line: rgba(59, 41, 144, 0.12);
  --line-strong: rgba(59, 41, 144, 0.22);
  --text: #1A1040;
  --text-2: #4A4373;
  --muted: #6B63A0;
  --dim: #8F88B8;
  --q-300: #5340C0;
  --q-400: #6A5FC4;
  --grad: linear-gradient(120deg, #2D1F6E 0%, #5340C0 40%, #7B6FD4 70%, #3B2990 100%);
  color-scheme: light;
}

/* Brand-purple blocks stay dark in both themes */
[data-theme="light"] :is(.cta__box, .loader, .step--accent, .toast) {
  --line: rgba(200, 192, 240, 0.12);
  --line-strong: rgba(200, 192, 240, 0.24);
  --text: #F0EEFF;
  --text-2: #C8C0F0;
  --muted: #9B94D4;
  --dim: #6F67A8;
  --q-300: #C8C0F0;
  --q-400: #9B94D4;
  --grad: linear-gradient(120deg, #C8C0F0 0%, #9B94D4 35%, #7B6FD4 60%, #F0EEFF 100%);
  color: var(--text);
  color-scheme: dark;
}
[data-theme="light"] .cta__box { box-shadow: 0 40px 80px -40px rgba(45, 31, 110, .55); }
[data-theme="light"] .step--accent { background: linear-gradient(160deg, #5340C0, #2D1F6E); }

[data-theme="light"] .grain { opacity: .03; }
[data-theme="light"] .cursor { background: var(--q-700); }
[data-theme="light"] .cursor-ring { border-color: rgba(59, 41, 144, .4); }
[data-theme="light"] .cursor-ring.is-hover { border-color: rgba(59, 41, 144, .6); background: rgba(83, 64, 192, .08); }

[data-theme="light"] .nav.is-scrolled { background: rgba(247, 245, 255, .82); }
[data-theme="light"] .brand__name { color: var(--q-900); }
[data-theme="light"] .brand__sub { color: var(--q-600); }
[data-theme="light"] .nav__links a:hover, [data-theme="light"] .nav__links a.is-active { background: rgba(59, 41, 144, .07); }
[data-theme="light"] .mobile-menu { background: rgba(247, 245, 255, .97); }
[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .6); }
[data-theme="light"] .btn--ghost:hover { background: #fff; border-color: var(--q-500); }

[data-theme="light"] .hero__aurora {
  background:
    radial-gradient(40% 35% at 72% 42%, rgba(123, 111, 212, .30), transparent 70%),
    radial-gradient(30% 30% at 20% 85%, rgba(155, 148, 212, .30), transparent 70%),
    radial-gradient(25% 25% at 90% 90%, rgba(200, 192, 240, .5), transparent 70%);
}
[data-theme="light"] .hero__grid { background-image: linear-gradient(rgba(59,41,144,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(59,41,144,.06) 1px, transparent 1px); }
[data-theme="light"] .hero__badge { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .ticker { background: rgba(235, 230, 255, .6); }

[data-theme="light"] .card {
  background: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, .75));
  box-shadow: 0 1px 2px rgba(26, 16, 64, .04), 0 18px 40px -26px rgba(59, 41, 144, .35);
}
[data-theme="light"] .card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 111, 212, .12), transparent 45%); }
[data-theme="light"] .card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(83, 64, 192, .55), transparent 50%); }
[data-theme="light"] :is(.pillar__icon, .service__icon, .cred__val--icon) { background: rgba(83, 64, 192, .08); border-color: rgba(83, 64, 192, .18); }
[data-theme="light"] .service--feature,
[data-theme="light"] .offer__path--alt { background: linear-gradient(135deg, rgba(123, 111, 212, .2), #FFFFFF 62%); }
[data-theme="light"] .service--feature .badge-new { background: var(--q-700); color: #fff; }
[data-theme="light"] .product__icon svg { filter: brightness(.72) saturate(1.3); }

[data-theme="light"] .future { background: linear-gradient(180deg, transparent, rgba(235, 230, 255, .8) 20%, rgba(235, 230, 255, .8) 80%, transparent); }
[data-theme="light"] .arch .link { stroke: rgba(59, 41, 144, .3); }
[data-theme="light"] .arch .mod rect { fill: #FFFFFF; stroke: rgba(59, 41, 144, .22); }
[data-theme="light"] .arch .core-ring { stroke: rgba(59, 41, 144, .25); }
[data-theme="light"] .arch .spark { fill: var(--q-600); filter: drop-shadow(0 0 5px rgba(83, 64, 192, .7)); }

[data-theme="light"] .plane { border-color: rgba(59, 41, 144, .25); background: linear-gradient(135deg, rgba(200, 192, 240, .55), rgba(235, 230, 255, .75)); }
[data-theme="light"] .plane::before { background-image: linear-gradient(rgba(59,41,144,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59,41,144,.08) 1px, transparent 1px); }
[data-theme="light"] .plane.is-active { border-color: rgba(83, 64, 192, .8); background: linear-gradient(135deg, #7B6FD4, #3B2990); box-shadow: 0 0 70px rgba(83, 64, 192, .4); }
[data-theme="light"] .plane[data-i="3"].is-active { background: linear-gradient(135deg, #9B94D4, #5340C0); }
[data-theme="light"] .stack__probe { background: linear-gradient(var(--q-600), rgba(83, 64, 192, 0)); box-shadow: 0 0 14px rgba(83, 64, 192, .6); }
[data-theme="light"] .stack__probe::after { background: var(--q-600); box-shadow: 0 0 20px 5px rgba(83, 64, 192, .45); }

[data-theme="light"] .step { background: #FFFFFF; }
[data-theme="light"] .step__num { -webkit-text-stroke-color: rgba(59, 41, 144, .25); }
[data-theme="light"] .step--accent .step__num { -webkit-text-stroke-color: rgba(240, 238, 255, .6); }
[data-theme="light"] .chip { background: #FFFFFF; }
[data-theme="light"] .compare__bar { background: rgba(59, 41, 144, .07); }
[data-theme="light"] .compare__bar--them i { background: repeating-linear-gradient(-45deg, rgba(83,64,192,.3) 0 6px, rgba(83,64,192,.12) 6px 12px); }
[data-theme="light"] .faq details[open] summary i::before,
[data-theme="light"] .faq details[open] summary i::after { background: #fff; }

[data-theme="light"] .founder__box { background: radial-gradient(70% 120% at 0% 0%, rgba(123, 111, 212, .2), transparent 60%), #FFFFFF; border-color: var(--line-strong); box-shadow: 0 30px 60px -40px rgba(59, 41, 144, .4); }
[data-theme="light"] .cred { background: var(--bg); }
[data-theme="light"] .cred:hover { border-color: rgba(83, 64, 192, .4); }
[data-theme="light"] .managed { background: rgba(255, 255, 255, .7); border-color: rgba(59, 41, 144, .25); }
[data-theme="light"] .footer__word { -webkit-text-stroke-color: rgba(59, 41, 144, .16); background-image: linear-gradient(180deg, rgba(83, 64, 192, .28), rgba(83, 64, 192, 0) 85%); }

/* ── Theme toggle ───────────────────────────────── */
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); display: grid; place-items: center; overflow: hidden;
  transition: border-color .3s, background .3s;
}
.theme-toggle:hover { border-color: var(--q-400); background: rgba(123, 111, 212, .1); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; stroke: var(--text); transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .i-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-sun { transform: none; opacity: 1; }
[data-theme="light"] .theme-toggle .i-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }

/* Smooth colour swap while switching theme */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease, box-shadow .5s ease !important;
}
