/* ================= Theme tokens ================= */
:root {
  --bg: #fbfaf8;
  --bg-2: #f3f1ed;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --text: #0b0b0f;
  --muted: #55555f;
  --faint: #8e8e98;
  --border: rgba(11, 11, 15, .08);
  --border-strong: rgba(11, 11, 15, .15);
  --a1: #5b5bf6;
  --a2: #c026d3;
  --a3: #f97316;
  --ink: #0b0b0f;
  --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 18px 40px -18px rgba(20, 20, 40, .22);
  --shadow-lg: 0 2px 4px rgba(20, 20, 40, .05), 0 40px 80px -30px rgba(20, 20, 40, .35);
  --aurora: .5;
  --dot: rgba(11, 11, 15, .09);
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 52%, var(--a3));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --extrude: #d6d6e0;
  --btn-depth: #000;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080b; --bg-2: #0e0e13; --surface: #111117; --surface-2: #16161d;
    --text: #f5f5f7; --muted: #a3a3ad; --faint: #6b6b76;
    --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .16);
    --a1: #818cf8; --a2: #e879f9; --a3: #fb923c;
    --ink: #f5f5f7; --on-ink: #08080b;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .8);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 90px -30px rgba(0, 0, 0, .9);
    --aurora: .38; --dot: rgba(255, 255, 255, .07);
    --extrude: #2b2b36; --btn-depth: #9b9ba8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08080b; --bg-2: #0e0e13; --surface: #111117; --surface-2: #16161d;
  --text: #f5f5f7; --muted: #a3a3ad; --faint: #6b6b76;
  --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .16);
  --a1: #818cf8; --a2: #e879f9; --a3: #fb923c;
  --ink: #f5f5f7; --on-ink: #08080b;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 90px -30px rgba(0, 0, 0, .9);
  --aurora: .38; --dot: rgba(255, 255, 255, .07);
  --extrude: #2b2b36; --btn-depth: #9b9ba8;
  color-scheme: dark;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ================= Base ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--a2) 30%, transparent); }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 em, h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.skip:focus { top: 12px; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ================= Buttons ================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 5px 0 color-mix(in srgb, var(--btn-depth) 55%, var(--a1)), var(--shadow); }
.btn-ink:hover { box-shadow: 0 5px 0 color-mix(in srgb, var(--btn-depth) 55%, var(--a1)), 0 0 0 4px color-mix(in srgb, var(--a1) 22%, transparent), var(--shadow); }
.btn-ink:active, .btn-grad:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--btn-depth) 55%, var(--a1)); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-grad { color: #fff; background: var(--grad); background-size: 200% 100%; box-shadow: 0 5px 0 color-mix(in srgb, var(--a2) 55%, #000), 0 10px 30px -10px color-mix(in srgb, var(--a2) 70%, transparent); animation: gradShift 6s ease-in-out infinite; }
.btn-grad:hover { box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--a2) 90%, transparent); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.icon-btn:active { transform: scale(.92); }

/* ================= Nav ================= */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding: 0 16px; pointer-events: none; }
.nav-inner {
  pointer-events: auto; max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 16px; border-radius: 999px;
  border: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s, max-width .5s var(--ease);
}
.nav.scrolled .nav-inner {
  max-width: 980px; background: color-mix(in srgb, var(--surface) 72%, transparent); border-color: var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.brand img { border-radius: 50%; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-20deg) scale(1.08); }
.brand b { color: var(--a2); }
.nav-links { position: relative; display: flex; margin: 0 auto; }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.hover-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle svg { display: none; }
.theme-toggle[data-mode="system"] .i-system, .theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { display: block; animation: popIn .4s var(--ease); }
@media (max-width: 880px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

/* ================= Hero ================= */
.hero { position: relative; padding: 140px 20px 0; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; pointer-events: none; opacity: var(--aurora); filter: blur(80px) saturate(140%); }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: normal; }
.aurora span:nth-child(1) { width: 46%; height: 60%; left: 4%; top: 6%; background: var(--a1); animation: drift1 18s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 40%; height: 55%; right: 6%; top: 0; background: var(--a2); animation: drift2 22s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 34%; height: 46%; left: 38%; top: 30%; background: var(--a3); opacity: .8; animation: drift3 20s ease-in-out infinite; }
.aurora span:nth-child(4) { width: 28%; height: 40%; left: 18%; top: 44%; background: #22d3ee; opacity: .55; animation: drift2 26s ease-in-out infinite reverse; }
.dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
}
.badge:hover { color: var(--text); border-color: var(--text); }
.badge svg { transition: transform .3s var(--ease); }
.badge:hover svg { transform: translateX(3px); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; flex-shrink: 0; }
.hero-title { margin: 24px 0 22px; font-size: clamp(44px, 6.1vw, 84px); line-height: .98; font-weight: 700; letter-spacing: -.055em; }
.hero-title > span { display: block; }
.hero-title > span:not(.flip-line) { text-shadow: 1px 1px 0 var(--extrude), 2px 2px 0 var(--extrude), 3px 3px 0 var(--extrude), 4px 4px 0 var(--extrude), 5px 5px 0 var(--extrude), 8px 14px 24px rgba(20, 20, 40, .18); }
.hero-title em { font-size: 1.08em; letter-spacing: -.02em; }
.flip-line { min-height: 1.05em; }
.flip { display: inline-block; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease-in-out infinite; padding-right: .08em; }
.flip.in { animation: chIn .7s var(--ease) both, gradShift 6s ease-in-out infinite; }
.flip.out { animation: flipOut .35s var(--ease) forwards; }
.hero-sub { max-width: 540px; font-size: clamp(16.5px, 1.7vw, 19px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.hero-proof b { color: var(--text); font-weight: 600; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.avatars { display: flex; }
.avatars span { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--bg); font-size: 12px; font-weight: 700; color: #fff; background: var(--a1); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--a2); }
.avatars span:nth-child(3) { background: var(--a3); }

.rise { animation: rise 1s var(--d, 0s) var(--ease) both; }

/* 3D scene */
#hero3d { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.has-3d .hero-visual { pointer-events: none; }
.has-3d .stack { display: none; }
.drag-hint { display: none; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.drag-hint span { display: inline-block; animation: spin 4s linear infinite; }
.has-3d .drag-hint { display: block; }
@media (hover: none) { .drag-hint { display: none !important; } }

/* Card stack (fallback when WebGL is unavailable) */
.hero-visual { position: relative; height: 480px; perspective: 1200px; }
.stack { position: absolute; inset: 30px 30px 50px; transform-style: preserve-3d; transition: transform .3s ease-out; }
.stack-card {
  --p: 0; position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 28px 28px 20px; border-radius: 28px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transform: translateY(calc(var(--p) * -22px)) scale(calc(1 - var(--p) * .06)); opacity: calc(1 - var(--p) * .28);
  z-index: calc(10 - var(--p)); transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.stack-card[data-p="4"], .stack-card[data-p="5"] { opacity: 0; }
.stack-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.stack-card figcaption { margin-top: 12px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.stack-card figcaption::after { content: "Logo design"; font-weight: 500; color: var(--faint); }
.stack-card.fling { animation: fling .7s var(--ease) forwards; }
.stack-card.no-tr { transition: none; }
.float-chip {
  position: absolute; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: bob 6s ease-in-out infinite;
}
.chip-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 11px; color: #fff; background: #22c55e; }
.chip-a { left: -14px; bottom: 6px; }
.chip-b { right: -4px; top: 20px; animation-delay: -3s; }
.chip-b .chip-icon { background: var(--grad); }

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; max-width: 420px; width: 100%; margin: 10px auto 0; }
}

/* Brand strip + marquee */
.brand-strip { max-width: 1160px; margin: 70px auto 0; text-align: center; }
.brand-strip p { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-strip .marquee-track { gap: 56px; }
.brand-strip .marquee-track span { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--faint); white-space: nowrap; transition: color .3s; }
.brand-strip .marquee-track span:nth-child(even) { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 25px; }
.brand-strip .marquee-track span:hover { color: var(--text); }

/* ================= Sections ================= */
.section { position: relative; max-width: 1160px; margin: 0 auto; padding: 130px 20px 0; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--a1); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow.center { display: flex; justify-content: center; }
h2 { margin: 14px 0 0; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.02; font-weight: 700; letter-spacing: -.05em; }
h2 em { font-size: 1.08em; }
.lead { margin-top: 16px; font-size: 17.5px; color: var(--muted); }
.lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--a2); text-underline-offset: 3px; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Stats */
.stats { max-width: 1160px; margin: 90px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 24px; border-left: 1px solid var(--border-strong); }
.stat strong { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 30px; } }

/* ================= Services (sticky scroll) ================= */
.services { display: grid; grid-template-columns: 380px 1fr; gap: 70px; align-items: start; }
.svc-side { position: sticky; top: 120px; }
.svc-list { list-style: none; margin-top: 36px; display: grid; gap: 2px; }
.svc-list a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; font-size: 16px; font-weight: 500; color: var(--faint); transition: color .3s, background .3s; }
.svc-list a span { font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.svc-list a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease); }
.svc-list a:hover { color: var(--muted); }
.svc-list a.active { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.svc-list a.active::before { transform: scaleY(1); }
.svc-panels { display: grid; gap: 22px; }
.panel {
  border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; transition: opacity .6s var(--ease), border-color .4s;
}
.js .panel { opacity: .45; }
.js .panel.active { opacity: 1; border-color: var(--border-strong); }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 55%); mix-blend-mode: soft-light; }
.panel:hover::after { opacity: 1; }
.panel-visual { position: relative; height: 270px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 70%), var(--surface-2); border-bottom: 1px solid var(--border); }
.panel-copy { padding: 26px 30px 30px; }
.panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.panel p { margin-top: 8px; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--border-strong); }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 10px; }
  .svc-side { position: static; }
  .svc-list { display: none; }
  .js .panel { opacity: 1; }
  .cta-floor { animation: none; }
  .quote[data-pos="-1"], .quote[data-pos="1"] { opacity: 0; }
}

.tilt3d { transform-style: preserve-3d; will-change: transform; }
.plan.tilt3d .price { transform: translateZ(50px); }
.plan.tilt3d .btn { transform: translateZ(30px); }
.plan.tilt3d .btn:active { transform: translateZ(30px) translateY(4px); }
.plan.tilt3d .plan-badge { transform: translateZ(70px); }
.plan.tilt3d h3 { transform: translateZ(24px); }

/* Visual: orbit */
.v-orbit img { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 0 50px color-mix(in srgb, var(--a2) 60%, transparent); }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin linear infinite; }
.ring i { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.r1 { width: 140px; height: 140px; margin: -70px; animation-duration: 14s; }
.r2 { width: 200px; height: 200px; margin: -100px; animation-duration: 20s; animation-direction: reverse; }
.r2 i { top: auto; bottom: -13px; }
.r3 { width: 260px; height: 260px; margin: -130px; animation-duration: 28s; }
/* Visual: system */
.v-system { grid-template-columns: auto auto; gap: 22px 30px; align-content: center; }
.sys-swatches { display: flex; }
.sys-swatches span { width: 54px; height: 54px; border-radius: 50%; margin-left: -12px; border: 3px solid var(--surface-2); animation: swatch 4s var(--ease) infinite; }
.sys-swatches span:first-child { margin-left: 0; background: var(--a1); }
.sys-swatches span:nth-child(2) { background: var(--a2); animation-delay: .15s; }
.sys-swatches span:nth-child(3) { background: var(--a3); animation-delay: .3s; }
.sys-swatches span:nth-child(4) { background: var(--text); animation-delay: .45s; }
.sys-type { display: flex; flex-direction: column; }
.sys-type b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 64px; line-height: 1; }
.sys-type span { font-size: 12px; color: var(--faint); }
.sys-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 44px); gap: 8px; justify-content: center; }
.sys-grid i { height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); animation: gridPulse 3s ease-in-out infinite; }
.sys-grid i:nth-child(2) { animation-delay: .2s; } .sys-grid i:nth-child(3) { animation-delay: .4s; } .sys-grid i:nth-child(4) { animation-delay: .6s; } .sys-grid i:nth-child(5) { animation-delay: .8s; } .sys-grid i:nth-child(6) { animation-delay: 1s; }
@media (max-width: 520px) {
  .v-system { gap: 18px 16px; }
  .sys-swatches span { width: 40px; height: 40px; margin-left: -10px; }
  .sys-type b { font-size: 46px; }
  .sys-grid { grid-template-columns: repeat(6, 32px); gap: 6px; }
  .morph span { font-size: 60px; }
}
/* Visual: redesign morph */
.morph { position: relative; width: 300px; height: 90px; display: grid; place-items: center; }
.morph span { position: absolute; font-size: 72px; line-height: 1; }
.morph .old { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--faint); text-shadow: 3px 3px 0 color-mix(in srgb, var(--a3) 40%, transparent); animation: morphOld 5s var(--ease) infinite; }
.morph .new { font-weight: 800; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: morphNew 5s var(--ease) infinite; }
.morph-label { position: absolute; bottom: 26px; display: flex; gap: 10px; font-size: 12px; font-weight: 600; }
.morph-label span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); }
.morph-label span:first-child { animation: labelA 5s infinite; }
.morph-label span:last-child { animation: labelB 5s infinite; }
/* Visual: business card */
.v-card { perspective: 900px; }
.biz-card { position: relative; width: 250px; height: 150px; transform-style: preserve-3d; animation: cardFlip 7s var(--ease) infinite; }
.biz-card > div { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-lg); }
.biz-front { display: flex; align-items: center; justify-content: center; gap: 12px; background: #0b0b0f; color: #fff; }
.biz-front img { width: 44px; height: 44px; border-radius: 50%; }
.biz-front b { letter-spacing: .14em; font-size: 15px; }
.biz-back { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; gap: 2px; background: var(--grad); color: #fff; transform: rotateY(180deg); font-size: 13px; }
.biz-back b { font-size: 17px; }
/* Visual: cube */
.v-cube { perspective: 700px; }
.cube { position: relative; width: 96px; height: 96px; transform-style: preserve-3d; animation: cube 12s linear infinite; }
.cube span { position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--a2) 80%, transparent); background: color-mix(in srgb, var(--a1) 12%, transparent); box-shadow: inset 0 0 30px color-mix(in srgb, var(--a3) 30%, transparent); }
.cube span:nth-child(1) { transform: translateZ(48px); } .cube span:nth-child(2) { transform: rotateY(180deg) translateZ(48px); }
.cube span:nth-child(3) { transform: rotateY(90deg) translateZ(48px); } .cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(48px); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(48px); } .cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(48px); }
.panel:hover .cube { animation-duration: 4s; }
/* Visual: terminal */
.v-terminal { place-items: stretch; padding: 26px; }
.v-terminal > * { background: #0b0b0f; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px 14px 0 0; border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.term-bar i:nth-child(2) { background: #f59e0b; } .term-bar i:nth-child(3) { background: #22c55e; }
.term-bar span { margin-left: 8px; font: 12px "JetBrains Mono", ui-monospace, monospace; color: #71717a; }
.typer { margin: 0; padding: 14px 16px; border-radius: 0 0 14px 14px; border: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .06); font: 13px/1.8 "JetBrains Mono", ui-monospace, monospace; color: #d4d4d8; white-space: pre-wrap; min-height: 170px; }
.typer .ok { color: #4ade80; }
.typer .caret { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: #f5f5f7; animation: blink 1s steps(1) infinite; }

/* ================= Work (horizontal scroll) ================= */
.work { position: relative; margin-top: 130px; }
.work-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-head { max-width: 1160px; width: 100%; margin: 0 auto 40px; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.work-hint { font-size: 14px; color: var(--faint); white-space: nowrap; }
.work-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.work-viewport { overflow: hidden; }
html:not(.js) .work-viewport { overflow-x: auto; }
.work-track { display: flex; gap: 22px; width: max-content; padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); will-change: transform; }
.work-card {
  position: relative; flex-shrink: 0; width: clamp(280px, 30vw, 380px); border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .5s var(--ease), border-color .3s;
}
.work-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.work-img { position: relative; aspect-ratio: 1 / .9; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--a1) 14%, transparent), transparent 70%), var(--surface-2); }
.work-img img { position: absolute; inset: 34px; width: calc(100% - 68px); height: calc(100% - 68px); object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .25)); transition: transform .9s var(--ease); }
.work-card:hover .work-img img { transform: scale(1.08) rotate(-2deg); }
.work-card figcaption { padding: 20px 24px 24px; }
.work-card figcaption span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--a1); }
.work-card h3 { margin: 4px 0 2px; font-size: 19px; letter-spacing: -.03em; }
.work-card p { font-size: 14px; color: var(--muted); }
.work-cta { display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: var(--ink); color: var(--on-ink); border: 0; }
.work-cta span { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.05em; }
.work-cta em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work-cta b { font-size: 16px; }
.work.ring-mode .work-viewport { overflow: visible; perspective: 2000px; height: min(500px, 62vh); }
.work.ring-mode .work-track { position: relative; width: var(--card-w); height: 100%; margin: 0 auto; padding: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--radius) * -1)) rotateY(var(--spin, 0deg)); }
.work.ring-mode .work-card { position: absolute; top: 0; left: 0; width: var(--card-w); height: 100%; transform: rotateY(var(--a)) translateZ(var(--radius)); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease), border-color .3s, opacity .3s; }
.work.ring-mode .work-card:hover { transform: rotateY(var(--a)) translateZ(calc(var(--radius) + 40px)); }
.work.ring-mode .work-img { aspect-ratio: auto; height: 62%; }
.work.native .work-pin { position: static; height: auto; }
.work.native .work-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: none; }
.work.native .work-viewport::-webkit-scrollbar { display: none; }
.work.native .work-card { scroll-snap-align: center; }
.work.native .work-hint { display: none; }

/* ================= Process (timeline) ================= */
.timeline { position: relative; max-width: 900px; margin: 0 auto; display: grid; gap: 30px; }
.timeline-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: var(--border-strong); border-radius: 2px; }
.timeline-line span { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); border-radius: 2px; box-shadow: 0 0 16px color-mix(in srgb, var(--a2) 60%, transparent); }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.tl-dot { grid-column: 2; position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; font: 600 13px "JetBrains Mono", ui-monospace, monospace; background: var(--surface); border: 1px solid var(--border-strong); transition: background .6s, color .6s, border-color .6s, box-shadow .6s; }
.tl-step.lit .tl-dot { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--a2) 18%, transparent); }
.tl-card { grid-column: 3; grid-row: 1; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tl-step:nth-child(odd) .tl-card { grid-column: 1; }
.tl-card h3 { font-size: 20px; letter-spacing: -.03em; }
.tl-card p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .timeline-line { left: 26px; }
  .tl-step { grid-template-columns: 52px 1fr; gap: 18px; }
  .tl-dot { grid-column: 1; }
  .tl-card, .tl-step:nth-child(odd) .tl-card { grid-column: 2; }
}

/* Tools */
.tools { padding: 130px 0 0; }
.tools .eyebrow { margin-bottom: 26px; }
.tools .marquee-track span { padding: 12px 22px; border-radius: 999px; font-weight: 500; white-space: nowrap; color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: color .2s, border-color .2s; }
.tools .marquee-track span:hover { color: var(--text); border-color: var(--border-strong); }

/* ================= Pricing ================= */
.seg { position: relative; display: inline-flex; margin-top: 28px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.seg button { position: relative; z-index: 1; padding: 8px 20px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--on-ink); }
.seg i { font-style: normal; font-size: 11.5px; margin-left: 4px; padding: 2px 7px; border-radius: 999px; color: #16a34a; background: rgba(34, 197, 94, .14); }
.seg-pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .5s var(--ease), opacity .9s var(--ease) var(--d, 0s); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a1) 10%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }
.plan.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--angle), var(--a1), var(--a2), var(--a3), var(--a1)) border-box; border: 2px solid transparent; animation: spinAngle 6s linear infinite; box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--a2) 60%, transparent); }
.plan-badge { position: absolute; top: -13px; right: 26px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.plan h3 { font-size: 20px; letter-spacing: -.03em; }
.plan-desc { margin-top: 6px; font-size: 14.5px; color: var(--muted); min-height: 70px; }
.price { display: flex; align-items: baseline; margin: 22px 0; font-weight: 700; }
.price sup { align-self: flex-start; margin-top: 10px; font-size: 22px; }
.price span { display: inline-block; font-size: 64px; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span.flip-num { animation: numIn .55s var(--ease); }
.price small { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--faint); }
.plan .btn { width: 100%; }
.features { list-style: none; display: grid; gap: 11px; margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--border-strong); }
.features li { position: relative; padding-left: 28px; font-size: 14.5px; }
.features li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #22c55e 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.features li.no { color: var(--faint); }
.features li.no::before { background: color-mix(in srgb, var(--text) 6%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e98' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.guarantee { margin-top: 30px; text-align: center; font-size: 14.5px; color: var(--muted); }
.guarantee span { color: #16a34a; font-weight: 700; margin-right: 4px; }
.guarantee a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--a2); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ================= Testimonials ================= */
.testimonials { overflow-x: hidden; overflow-x: clip; }
@media (min-width: 900px) { .testimonials { -webkit-mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent); } }
.quote-stage { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.quote-mark { display: block; height: 70px; font-family: "Instrument Serif", Georgia, serif; font-size: 160px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quotes { display: grid; gap: 20px; perspective: 1400px; transform-style: preserve-3d; }
.quote {
  padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.js .quote { grid-area: 1 / 1; opacity: 0; pointer-events: none; }
.quote[data-pos="0"] { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.quote[data-pos="-1"] { opacity: .45; filter: blur(1.5px); transform: translateX(-68%) translateZ(-280px) rotateY(40deg); }
.quote[data-pos="1"] { opacity: .45; filter: blur(1.5px); transform: translateX(68%) translateZ(-280px) rotateY(-40deg); }
.quote p { font-size: clamp(18px, 2.2vw, 25px); line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
@media (max-width: 899px) { .quote[data-pos="-1"], .quote[data-pos="1"] { opacity: 0; } }
.quote footer { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; text-align: left; }
.quote b { display: block; }
.quote small { color: var(--faint); font-size: 13.5px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--grad); flex-shrink: 0; }
.quote-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.quote-dots { display: flex; gap: 8px; }
.quote-dots button { position: relative; width: 28px; height: 6px; border: 0; border-radius: 6px; cursor: pointer; overflow: hidden; background: var(--border-strong); }
.quote-dots button span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.quote-dots button[aria-selected="true"] span { animation: dotFill var(--dur, 6s) linear forwards; }
.quote-stage.paused .quote-dots button[aria-selected="true"] span { animation-play-state: paused; }

/* ================= FAQ ================= */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item h3 { font-size: inherit; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border: 0; background: none; text-align: left; font-size: 18px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; }
.plus { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .plus { background: var(--ink); color: var(--on-ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item button[aria-expanded="true"] .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.js .faq-a { grid-template-rows: 0fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 50px 24px 0; color: var(--muted); }
.faq-a a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--a2); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 30px; } .faq-side { position: static; } }

/* ================= CTA ================= */
.cta { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: clamp(32px, 6vw, 70px); border-radius: 36px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.cta .aurora { inset: -40% -20%; height: auto; opacity: calc(var(--aurora) * .9); }
.cta-floor {
  position: absolute; left: -40%; right: -40%; bottom: -2%; height: 62%; z-index: -1; pointer-events: none;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; opacity: .55;
  background-image: linear-gradient(color-mix(in srgb, var(--a1) 55%, transparent) 1.5px, transparent 1.5px), linear-gradient(90deg, color-mix(in srgb, var(--a1) 55%, transparent) 1.5px, transparent 1.5px);
  background-size: 52px 52px; animation: floor 2.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%); mask-image: linear-gradient(to top, #000 15%, transparent 95%);
}
.cta h2 { margin-top: 12px; }
.cta-points { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cta-points li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: #fff; background: var(--grad); flex-shrink: 0; }
.contact-form { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.contact-form label span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 15px; border-radius: 14px; font-size: 15px; resize: vertical; outline: none;
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.contact-form .btn { margin-top: 4px; }
.form-status { min-height: 1.3em; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; gap: 30px; } }

/* ================= Footer ================= */
.site-footer { position: relative; max-width: 1160px; margin: 130px auto 0; padding: 60px 20px 0; border-top: 1px solid var(--border-strong); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; }
.footer-grid p { margin-top: 14px; max-width: 320px; font-size: 14.5px; color: var(--muted); }
.footer-grid .status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.footer-grid h4 { margin-bottom: 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.footer-grid div > a:not(.brand) { display: block; width: fit-content; padding: 4px 0; font-size: 14.5px; color: var(--muted); background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .35s var(--ease); }
.footer-grid div > a:not(.brand):hover { color: var(--text); background-size: 100% 1px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; font-size: 13.5px; color: var(--faint); }
.footer-bottom a:hover { color: var(--text); }
.wordmark {
  --mx: 50%; --my: 50%;
  margin: 18px 0 -0.2em; text-align: center; font-weight: 800; line-height: 1; letter-spacing: -.07em; user-select: none;
  font-size: clamp(70px, 18vw, 250px);
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--a2), var(--a1) 35%, transparent 65%), linear-gradient(color-mix(in srgb, var(--text) 9%, transparent), color-mix(in srgb, var(--text) 9%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 18px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ================= Command palette ================= */
.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 0; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s both; }
.palette-box { position: relative; width: min(580px, 100%); overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: popIn .3s var(--ease) both; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--faint); }
.palette-input input { flex: 1; height: 56px; border: 0; outline: none; background: none; font-size: 16px; }
kbd { padding: 2px 7px; border-radius: 6px; font: 11px "JetBrains Mono", ui-monospace, monospace; color: var(--muted); border: 1px solid var(--border-strong); }
.palette-list { list-style: none; max-height: 360px; overflow-y: auto; padding: 8px; }
.palette-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.palette-list li small { font-size: 12px; color: var(--faint); }
.palette-list li[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.palette-list .empty { justify-content: center; cursor: default; }

/* ================= Legal pages ================= */
.legal { position: relative; max-width: 760px; margin: 0 auto; padding: 140px 20px 0; isolation: isolate; }
.legal .aurora { height: 600px; inset: -30% -40% auto; opacity: calc(var(--aurora) * .6); }
.legal-back { display: table; margin-bottom: 26px; font-size: 14px; color: var(--muted); transition: color .2s; }
.legal-back:hover { color: var(--text); }
.legal h1 { margin: 14px 0 6px; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -.05em; }
.legal-updated { font-size: 14px; color: var(--faint); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 34px; }
.legal-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border-strong); transition: color .2s, border-color .2s; }
.legal-tabs a:hover { color: var(--text); border-color: var(--text); }
.legal-tabs a[aria-current="page"] { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.legal-intro { padding-bottom: 28px; font-size: 18px; border-bottom: 1px solid var(--border-strong); }
.legal section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.legal section p { color: var(--muted); }
.legal ul { display: grid; gap: 8px; margin: 12px 0 0 20px; color: var(--muted); }
.legal ul li::marker { color: var(--a2); }
.legal-page .site-footer { margin-top: 80px; padding-bottom: 40px; }

/* ================= Keyframes ================= */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes chIn { from { opacity: 0; transform: translateY(.4em) rotate(8deg); filter: blur(6px); } }
@keyframes flipOut { to { opacity: 0; transform: translateY(-.3em); filter: blur(8px); } }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, 10%) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-14%, 12%) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10%, -14%) scale(1.2); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAngle { to { --angle: 360deg; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fling { to { transform: translate(60%, -30%) rotate(14deg) scale(.9); opacity: 0; } }
@keyframes swatch { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
@keyframes gridPulse { 0%, 100% { background: var(--surface); } 50% { background: color-mix(in srgb, var(--a1) 25%, var(--surface)); } }
@keyframes morphOld { 0%, 35% { opacity: 1; transform: none; filter: none; } 50%, 85% { opacity: 0; transform: scale(.9); filter: blur(10px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes morphNew { 0%, 35% { opacity: 0; transform: scale(1.1); filter: blur(10px); } 50%, 85% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: scale(1.1); filter: blur(10px); } }
@keyframes labelA { 0%, 40%, 95%, 100% { color: var(--text); border-color: var(--text); } 50%, 85% { color: var(--faint); border-color: var(--border-strong); } }
@keyframes labelB { 0%, 40%, 95%, 100% { color: var(--faint); border-color: var(--border-strong); } 50%, 85% { color: var(--text); border-color: var(--text); } }
@keyframes cardFlip { 0%, 40% { transform: rotateY(0) rotateX(8deg); } 50%, 90% { transform: rotateY(180deg) rotateX(8deg); } 100% { transform: rotateY(360deg) rotateX(8deg); } }
@keyframes cube { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes numIn { from { opacity: 0; transform: translateY(-40%); filter: blur(4px); } }
@keyframes dotFill { to { transform: scaleX(1); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes floor { to { background-position: 0 52px; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-6px); } }

.motion .reveal { transition: none; }
.motion .plan { transition: border-color .3s; }
.motion .wordmark { transform-style: preserve-3d; will-change: transform; }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .panel { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .morph .old { display: none; }
  .morph .new { opacity: 1 !important; filter: none !important; transform: none !important; }
}
