/* ==========================================================================
   Retext — landing page styles
   Tokens → base → layout → components → sections → pages → utilities
   ========================================================================== */

:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --surface: #10131a;
  --surface-2: #161a23;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f4;
  --muted: #9ba2b1;
  --dim: #828a9a;
  --accent: #c8ff3e;          /* signal lime */
  --accent-ink: #0b0f02;
  --violet: #8b6cff;
  --cyan: #3fe0ff;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(200, 255, 62, .5); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: 820px; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet), var(--cyan), var(--accent)); }

/* ---------- Custom cursor (fine pointers only, enabled via JS) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(200, 255, 62, .55);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
}
.cursor__label { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(200, 255, 62, .08); border-color: rgba(200, 255, 62, .9); }
.cursor.is-label .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-text .cursor__ring { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor.is-down .cursor__ring { transform: scale(.85); }
.cursor.is-hidden { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn > span, .btn > svg { position: relative; z-index: 2; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 40px; padding: .55rem 1.05rem; font-size: .9rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(200, 255, 62, .0), 0 10px 30px -10px rgba(200, 255, 62, .45); }
.btn--primary:hover { color: var(--accent-ink); box-shadow: 0 0 0 6px rgba(200, 255, 62, .12), 0 16px 40px -12px rgba(200, 255, 62, .6); }
/* shine sweep */
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
/* fill wipe */
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease-out); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.ripple { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .65s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .35s, border-color .35s, transform .45s var(--ease-out); border-bottom: 1px solid transparent; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(6, 7, 10, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); transition: opacity .35s; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 32px; height: 32px; color: var(--text); }
.brand__caret { fill: var(--accent); animation: blink 1.1s steps(1) infinite; }
.brand__name { font: 800 1.3rem/1 var(--font-display); letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: .3rem; list-style: none; }
.nav__link { position: relative; display: block; padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; color: var(--muted); text-decoration: none; transition: color .25s, background-color .25s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Typographic bits ---------- */
.eyebrow, .kicker { font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker { color: var(--accent); margin-bottom: 1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .85rem .45rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200, 255, 62, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 62, 0); } }
.rotator { color: var(--text); display: inline-block; min-width: 9ch; }
.rotator__word { display: inline-block; transition: opacity .35s, transform .35s var(--ease-out), filter .35s; }
.rotator__word.is-out { opacity: 0; transform: translateY(-6px); filter: blur(4px); }

.caret { display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.06em; background: var(--accent); border-radius: 2px; animation: blink 1.05s steps(1) infinite; }
.caret--sm { width: 2px; height: 1em; vertical-align: -.15em; }
@keyframes blink { 50% { opacity: 0; } }

/* Split-text reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .w > span { transform: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-bg {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb--a { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(139, 108, 255, .55), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.orb--b { width: 460px; height: 460px; right: -140px; top: 120px; background: radial-gradient(circle, rgba(63, 224, 255, .35), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }
.spotlight { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 30%), rgba(200, 255, 62, .07), transparent 60%); transition: opacity .4s; }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; margin: 1.4rem 0 1.4rem; line-height: .98; }
.hl { font-style: normal; position: relative; color: var(--accent); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.06em; right: -.02em; bottom: .04em; height: .32em; background: rgba(200, 255, 62, .14); z-index: -1; border-radius: 4px; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta li { display: flex; flex-direction: column; gap: .15rem; }
.hero__meta strong { font: 700 1.7rem/1 var(--font-display); letter-spacing: -.03em; }
.hero__meta span { font-size: .82rem; color: var(--dim); }

/* ---------- Demo window ---------- */
.hero__demo { position: relative; }
.demo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 26, 35, .9), rgba(12, 14, 19, .95));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 120px -40px rgba(139, 108, 255, .35);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease-out);
}
.hero__demo:hover .demo { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.demo__bar { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font: 400 .74rem/1 var(--font-mono); color: var(--dim); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.demo__file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo__status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); }
.demo__led { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background-color .3s, box-shadow .3s; }
.demo[data-state="scan"] .demo__led, .demo[data-state="write"] .demo__led { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.demo[data-state="done"] .demo__led { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.demo__stage { position: relative; padding: clamp(1rem, 3vw, 1.6rem); background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 14px 14px; }
.shot { position: relative; background: #f6f5f1; color: #121418; border-radius: 14px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.shot__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.shot__tag { font: 600 .66rem/1 var(--font-body); letter-spacing: .12em; color: #6a5cff; }
.shot__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #8b6cff, #3fe0ff); }
.shot__title { font: 700 clamp(1.15rem, 2.4vw, 1.75rem)/1.2 var(--font-body); letter-spacing: -.02em; margin-bottom: 1rem; min-height: 1.3em; }
.target { position: relative; display: inline-block; padding: 0 .1em; border-radius: 4px; }
.target::before { content: ""; position: absolute; inset: -6px -8px; border: 1.5px dashed transparent; border-radius: 6px; transition: border-color .3s, background-color .3s; }
.demo.is-selected .target::before { border-color: #6a5cff; background: rgba(106, 92, 255, .08); }
.target__text { position: relative; display: inline-block; transition: filter .35s, opacity .35s; white-space: nowrap; }
.target__text.is-erasing { filter: blur(6px); opacity: 0; }
.target__text .g { color: #6a5cff; }
.target__scan { position: absolute; top: -8px; bottom: -8px; left: -8px; width: 3px; background: linear-gradient(180deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px var(--cyan); opacity: 0; border-radius: 2px; }
.demo.is-scanning .target__scan { animation: scan 1s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 1; left: -8px; } 90% { opacity: 1; } 100% { opacity: 0; left: calc(100% + 8px); } }
.shot__skel { display: grid; gap: 8px; margin-bottom: 1.2rem; }
.shot__skel i { height: 9px; border-radius: 5px; background: #e2e0da; }
.shot__chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: .4rem; border-top: 1px solid #e6e3dc; }
.shot__chart i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8b6cff, #c7bbff); transform-origin: bottom; animation: grow 1.4s var(--ease-out) both; }
.shot__chart i:nth-child(even) { background: linear-gradient(180deg, #121418, #4a4f5a); }
@keyframes grow { from { transform: scaleY(0); } }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: 10px;
  background: rgba(10, 12, 16, .88); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  font: 400 .72rem/1 var(--font-mono); color: var(--text); white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
}
.chip.is-on { opacity: 1; transform: none; }
.chip__k { padding: .2rem .4rem; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.chip--bg .chip__k { background: var(--cyan); }
.chip--font { right: 6%; top: 42%; }
.chip--bg { left: 6%; bottom: 10%; }
.fake-cursor { position: absolute; z-index: 4; left: 0; top: 0; width: 22px; height: 22px; transform: translate(var(--cx, 80%), var(--cy, 85%)); transition: transform .9s var(--ease-out); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.demo__prompt { display: flex; align-items: center; gap: .7rem; margin: 0 clamp(1rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.6rem); padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 400 .82rem/1.2 var(--font-mono); }
.spark { color: var(--accent); }
.demo__mode { padding: .25rem .5rem; border-radius: 6px; background: rgba(139, 108, 255, .18); color: #c9bcff; font-size: .7rem; white-space: nowrap; }
.demo__input { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.kbd { padding: .2rem .45rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); font-size: .72rem; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; margin-top: clamp(3.5rem, 8vw, 6rem); border-block: 1px solid var(--line); 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__track { display: flex; gap: 2rem; width: max-content; padding: 1.15rem 0; animation: marquee 38s linear infinite; font: 600 clamp(1rem, 2vw, 1.35rem)/1 var(--font-display); color: var(--muted); }
.marquee__track span:nth-child(even) { color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Ad slots ---------- */
.ad-slot { position: relative; margin: clamp(2.5rem, 6vw, 4rem) auto; padding: 1.6rem 1rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .015); text-align: center; overflow: hidden; }
.ad-slot__label { position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); font: 400 .64rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ad-slot ins { min-width: 250px; }
.ad-slot--display { min-height: 130px; }
.ad-slot--article { min-height: 160px; margin-block: 2.5rem; }
.ad-slot--multiplex { min-height: 300px; }
/* Collapse the reserved space when AdSense reports no fill */
.ad-slot:has(ins[data-ad-status="unfilled"]) { height: 0; min-height: 0; margin-block: 0; padding-block: 0; border: 0; visibility: hidden; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section__head--left { text-align: left; margin-left: 0; }
.section__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; }
.section__lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: border-color .4s, transform .5s var(--ease-out); }
.step:hover { border-color: rgba(200, 255, 62, .35); transform: translateY(-6px); }
.step__num { position: absolute; top: 1.4rem; right: 1.5rem; font: 500 .8rem/1 var(--font-mono); color: var(--dim); }
.step__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(200, 255, 62, .08); border: 1px solid rgba(200, 255, 62, .25); margin-bottom: 1.4rem; }
.step__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .97rem; }
.steps .step:not(:last-child)::after { content: ""; position: absolute; top: 3.15rem; right: -1.2rem; width: 1.2rem; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* Compare */
.compare-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.compare-copy .section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.ticks { list-style: none; display: grid; gap: .7rem; margin-top: 1.8rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: rgba(200, 255, 62, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c8ff3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.compare { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #f6f5f1; user-select: none; touch-action: pan-y; }
.compare__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2.5rem); background: radial-gradient(circle at 20% 0%, #ece9ff, #f6f5f1 55%); }
.compare__layer--after { clip-path: inset(0 0 0 var(--pos)); background: radial-gradient(circle at 20% 0%, #ecffd0, #f6f5f1 55%); }
.mini-ui { width: min(100%, 420px); padding: clamp(1rem, 3vw, 1.8rem); border-radius: 18px; background: #fff; color: #121418; box-shadow: 0 30px 60px -30px rgba(18, 20, 24, .35); }
.mini-ui__badge { display: inline-block; padding: .25rem .55rem; border-radius: 6px; background: #121418; color: #c8ff3e; font: 600 .62rem/1 var(--font-body); letter-spacing: .12em; }
.mini-ui__title { font: 700 clamp(1.1rem, 2.6vw, 1.7rem)/1.15 var(--font-body); letter-spacing: -.02em; margin: .8rem 0 .5rem; }
.mini-ui__text { font-size: clamp(.8rem, 1.6vw, .95rem); color: #5b606b; margin-bottom: 1.1rem; }
.mini-ui__btn { display: inline-block; padding: .65rem 1.1rem; border-radius: 10px; background: #6a5cff; color: #fff; font: 600 .85rem/1 var(--font-body); }
.compare__tag { position: absolute; top: 1rem; left: 1rem; padding: .35rem .6rem; border-radius: 7px; background: rgba(18, 20, 24, .85); color: #fff; font: 400 .68rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.compare__tag--after { left: auto; right: 1rem; background: var(--accent); color: var(--accent-ink); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 20px rgba(200, 255, 62, .7); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-out); }
.compare:hover .compare__handle span, .compare.is-dragging .compare__handle span { transform: scale(1.12); }
.compare__handle svg { width: 22px; height: 22px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__range:focus-visible + * , .compare:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card { position: relative; padding: 1.8rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .4s, transform .5s var(--ease-out); }
.card::before, .use::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(200, 255, 62, .09), transparent 60%); }
.card:hover::before, .use:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card--lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.card--wide { grid-column: span 2; }
.card h3 { font-size: 1.25rem; margin-bottom: .55rem; position: relative; }
.card--lg h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.card p { color: var(--muted); font-size: .95rem; position: relative; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 1.3rem; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__visual--font { position: absolute; top: 1.6rem; left: 1.8rem; right: 1.8rem; display: flex; gap: .6rem; }
.card__visual--font span { flex: 1; display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--line-2); font: 800 clamp(2.2rem, 5vw, 3.6rem)/1 var(--font-display); background: var(--surface-2); transition: transform .6s var(--ease-out), border-color .4s, color .4s; }
.card__visual--font span:nth-child(2) { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.card__visual--font span:nth-child(3) { font-family: var(--font-mono); font-weight: 500; color: var(--accent); border-color: rgba(200, 255, 62, .4); }
.card--lg:hover .card__visual--font span:nth-child(1) { transform: translateY(-6px) rotate(-4deg); }
.card--lg:hover .card__visual--font span:nth-child(2) { transform: translateY(-10px); }
.card--lg:hover .card__visual--font span:nth-child(3) { transform: translateY(-6px) rotate(4deg); }
.card--wide { display: grid; grid-template-columns: 120px 1fr; column-gap: 1.6rem; align-items: center; }
.card--wide h3, .card--wide p { grid-column: 2; }
.card__visual--layers { grid-row: span 2; position: relative; height: 110px; }
.card__visual--layers i { position: absolute; left: 10px; width: 90px; height: 60px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); transition: transform .6s var(--ease-out); }
.card__visual--layers i:nth-child(1) { top: 0; }
.card__visual--layers i:nth-child(2) { top: 22px; left: 18px; border-color: rgba(139, 108, 255, .5); }
.card__visual--layers i:nth-child(3) { top: 44px; left: 26px; background: rgba(200, 255, 62, .12); border-color: rgba(200, 255, 62, .5); }
.card--wide:hover .card__visual--layers i:nth-child(1) { transform: translateY(-8px); }
.card--wide:hover .card__visual--layers i:nth-child(3) { transform: translateY(8px); }

/* Article */
.section--article { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section--article .section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.prose { font-size: 1.06rem; color: #c9ced8; }
.prose > * + * { margin-top: 1.1rem; }
.prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--text); margin-top: 2.2rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .6rem; }
.prose li::marker { color: var(--accent); }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.use { position: relative; overflow: hidden; padding: 1.8rem 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .5s var(--ease-out), border-color .4s; }
.use:hover { transform: translateY(-6px); border-color: rgba(139, 108, 255, .45); }
.use__tag { position: relative; display: inline-block; padding: .3rem .6rem; border-radius: 999px; border: 1px solid rgba(139, 108, 255, .4); color: #c9bcff; font: 400 .7rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; }
.use h3 { position: relative; font-size: 1.2rem; margin-bottom: .55rem; }
.use p { position: relative; color: var(--muted); font-size: .94rem; }

/* Ethics */
.ethics { display: flex; gap: 1.5rem; align-items: flex-start; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--r-lg); border: 1px solid rgba(200, 255, 62, .25); background: linear-gradient(135deg, rgba(200, 255, 62, .06), rgba(139, 108, 255, .05)); }
.ethics__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(200, 255, 62, .1); }
.ethics__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ethics h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .5rem; }
.ethics p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq__item[open] { border-color: rgba(200, 255, 62, .3); background: var(--surface-2); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; font: 600 1.05rem/1.35 var(--font-body); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease-out), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--accent-ink); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.footnote { margin-top: 1.8rem; font-size: .8rem; color: var(--dim); text-align: center; }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 5vw, 4rem); border-radius: 32px; border: 1px solid var(--line-2); background: var(--surface); }
.cta__glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--a, 0deg) at 50% 50%, rgba(139, 108, 255, .3), rgba(63, 224, 255, .15), rgba(200, 255, 62, .25), rgba(139, 108, 255, .3)); filter: blur(70px); animation: spin 14s linear infinite; opacity: .7; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.cta__title { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; max-width: 15ch; margin: 0 auto 1rem; }
.cta > p { color: var(--muted); max-width: 32rem; margin: 0 auto; }
.signup { display: flex; gap: .6rem; max-width: 480px; margin: 2rem auto 0; padding: .4rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 7, 10, .6); backdrop-filter: blur(10px); }
.signup input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 1rem; font: 400 1rem/1 var(--font-body); }
.signup input::placeholder { color: var(--dim); }
.signup:focus-within { border-color: rgba(200, 255, 62, .6); box-shadow: 0 0 0 4px rgba(200, 255, 62, .1); }
.signup.is-invalid { border-color: #ff6b6b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.signup__msg { min-height: 1.5em; margin-top: .9rem !important; font-size: .9rem; color: var(--accent); }
.signup__msg.is-error { color: #ff8b8b; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 4.5rem); background: var(--bg-2); position: relative; z-index: 2; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__nav h3 { font: 500 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; }
.footer__nav ul { list-style: none; display: grid; gap: .6rem; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.to-top { color: var(--muted); text-decoration: none; }

/* Cookie banner */
.cookie { position: fixed; z-index: 300; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; display: flex; gap: 1rem; align-items: center; padding: 1rem 1rem 1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(16, 19, 26, .92); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); font-size: .88rem; color: var(--muted); animation: up .6s var(--ease-out); }
.cookie[hidden] { display: none; }
.cookie__actions { display: flex; gap: .5rem; flex: none; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Inner (legal / info) pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .grid-bg { mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.04em; margin-top: .8rem; }
.page-hero p { color: var(--muted); margin-top: 1rem; max-width: 40rem; }
.breadcrumbs { font: 400 .8rem/1 var(--font-mono); color: var(--dim); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.page-body { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 8vw, 6rem); }
.page-body .prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.4rem; color: var(--text); }
.page-body .prose a { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.contact-card { padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.contact-card h2 { font-size: 1.2rem !important; margin: 0 0 .5rem !important; }
.contact-card p { color: var(--muted); }
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.not-found h1 { font-size: clamp(5rem, 20vw, 12rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.not-found p { color: var(--muted); margin: 1rem 0 2rem; }
.not-found .hl::after { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lg { grid-row: auto; }
  .uses { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; z-index: 2; }
  .header__inner > .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: stretch; gap: 2rem;
    padding: calc(var(--header-h) + 1rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
    background: rgba(6, 7, 10, .97); backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 44px) 32px); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 32px); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__link { font: 700 clamp(1.8rem, 8vw, 2.6rem)/1.2 var(--font-display); letter-spacing: -.03em; padding: .5rem 0; color: var(--text); background: none !important; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .2s; }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(1) .nav__link { transition-delay: .12s; } .nav.is-open li:nth-child(2) .nav__link { transition-delay: .17s; }
  .nav.is-open li:nth-child(3) .nav__link { transition-delay: .22s; } .nav.is-open li:nth-child(4) .nav__link { transition-delay: .27s; }
  .nav.is-open li:nth-child(5) .nav__link { transition-delay: .32s; }
  .nav__link.is-active { color: var(--accent); }
  .nav__cta { min-height: 54px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .demo { transform: none !important; }
  .hero__demo { max-width: 620px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps .step:not(:last-child)::after { display: none; }
  .compare-wrap { grid-template-columns: 1fr; }
  .compare-copy { text-align: center; }
  .ticks { justify-content: center; text-align: left; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bento, .uses { grid-template-columns: 1fr; }
  .card--lg, .card--wide { grid-column: auto; }
  .card--lg { min-height: 340px; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide h3, .card--wide p { grid-column: auto; }
  .card__visual--layers { grid-row: auto; height: 100px; margin-bottom: 1rem; }
  .hero__meta { gap: 1rem 1.6rem; }
  .hero__meta strong { font-size: 1.45rem; }
  .chip { font-size: .62rem; padding: .4rem .55rem; }
  .chip--font { right: 4%; top: 36%; }
  .demo__file { display: none; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
  .ethics { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; border-radius: 22px; padding: .5rem; }
  .signup input { min-height: 48px; text-align: center; }
  .signup .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }
  .eyebrow { font-size: .7rem; }
  .demo__mode { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
/* Keep gentle fades and the product demo; remove large movement (slides, drift, parallax, tilt, marquee). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .split .w > span { transform: none; opacity: 0; transition: opacity .6s ease; }
  .split.is-in .w > span { opacity: 1; }
  .marquee__track, .orb, .cta__glow { animation: none; }
  .demo, .hero__demo:hover .demo { transform: none; }
  .step:hover, .card:hover, .use:hover { transform: none; }
}

/* Icon sits beside its heading (not stacked in a tile above it) */
.step, .card:not(.card--lg):not(.card--wide) { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.step__icon, .card:not(.card--lg):not(.card--wide) .card__icon { margin-bottom: 0; }
.step h3, .card:not(.card--lg):not(.card--wide) h3 { margin: 0; }
.step p, .card:not(.card--lg):not(.card--wide) p { grid-column: 1 / -1; margin-top: 1rem; }
.step h3 { padding-right: 2rem; }
