:root {
  --bg: #07060c;
  --bg-2: #0d0b16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f1ff;
  --muted: #a39fbd;
  --dim: #6d6889;

  /* ring palette — indigo (logo) sweeping to its complement, amber */
  --c1: #4f46ff;
  --c2: #7b3cff;
  --c3: #b537f2;
  --c4: #f0359b;
  --c5: #ff4f6e;
  --c6: #ff7a3d;
  --c7: #ffb938;
  --spectrum: linear-gradient(90deg, var(--c1), var(--c3) 30%, var(--c4) 55%, var(--c6) 80%, var(--c7));

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
::selection { background: var(--c4); color: #fff; }

/* film grain across everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn.w { width: 100%; }
.btn-glow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, var(--c1), var(--c3) 45%, var(--c4) 75%, var(--c6));
  background-size: 100% 100%, 180% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 8px 30px -8px rgba(240, 53, 155, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: sheen 6s ease-in-out infinite alternate;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 40px -8px rgba(240, 53, 155, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14); }
@keyframes sheen { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 100% 0; } }
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-nav {
  padding: 0 18px; font-weight: 500; color: #dcd8f0;
  background: rgba(12, 10, 22, 0.35);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.btn-nav::before { /* spectrum hairline, revealed on hover */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.4s var(--ease);
  background: linear-gradient(100deg, var(--c1), var(--c3), var(--c4), var(--c6), var(--c7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-nav:hover { color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px transparent, 0 8px 24px -10px rgba(240, 53, 155, 0.55); }
.btn-nav:hover::before { opacity: 1; }
/* spectrum outline, always on; the gradient flows around on hover */
.btn-outline {
  color: #fff; background: rgba(12, 10, 22, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(240, 53, 155, 0.45);
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(100deg, var(--c1), var(--c3), var(--c4), var(--c6), var(--c7), var(--c6), var(--c4), var(--c3), var(--c1));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.07); box-shadow: 0 12px 32px -10px rgba(240, 53, 155, 0.7), 0 0 22px -6px rgba(123, 60, 255, 0.6); }
.btn-outline:hover::before { animation: outline-flow 1.6s linear infinite; }
@keyframes outline-flow { to { background-position: 200% 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1200px, 100% - 24px); height: 64px; padding: 0 12px 0 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 20px; border: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}
.nav.scrolled {
  background: rgba(12, 10, 22, 0.62);
  border-color: var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav-logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 14px rgba(79, 70, 255, 0.45)); }
.nav-logo { justify-self: start; }
.nav-links { display: flex; gap: 6px; }
.nav > .btn { justify-self: end; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--bg); }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.rings-fallback {
  position: absolute; inset: 0; z-index: -1; display: none;
  background: repeating-radial-gradient(ellipse at 50% 46%, var(--bg) 0 3px, var(--c1) 3px 22px, var(--bg) 22px 25px, var(--c3) 25px 44px, var(--bg) 44px 47px, var(--c4) 47px 66px, var(--bg) 66px 69px, var(--c6) 69px 88px, var(--bg) 88px 91px, var(--c7) 91px 110px);
  opacity: 0.55;
}
.no-webgl .rings-fallback { display: block; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(7, 6, 12, 0.55) 75%, rgba(7, 6, 12, 0.95) 100%),
    linear-gradient(180deg, rgba(7, 6, 12, 0.55) 0%, transparent 18%, transparent 70%, rgba(7, 6, 12, 0.9) 94%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3vh, 34px);
  padding: 96px 16px 64px; text-align: center;
}
.hero-eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #e9e6ff;
  background: rgba(10, 8, 20, 0.62); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c7); box-shadow: 0 0 0 0 rgba(255, 185, 56, 0.7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 185, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 185, 56, 0); } }
.logo-wrap { width: min(74vw, 820px, 95vh * 1.25); aspect-ratio: 1600 / 735; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.logo-wrap:focus { outline: none; }
.logo-wrap:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 8px; border-radius: 24px; }
.hero-logo { width: 100%; height: 100%; will-change: transform; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)); }
.hero-capsule {
  display: flex; align-items: center; gap: 22px; padding: 10px 10px 10px 26px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 16, 36, 0.78), rgba(10, 8, 20, 0.72));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.hero-capsule p { margin: 0; font-size: 15px; color: #d9d5f0; white-space: nowrap; line-height: 1.2; }
.hero-ctas { display: flex; gap: 8px; }
.grad-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; padding: 26px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee-row { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font: 600 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -0.02em; color: #cfcbe6; }
.marquee i { width: 16px; height: 16px; border-radius: 50%; flex: none; background: radial-gradient(circle, var(--c7) 0 22%, var(--bg) 23% 34%, var(--c4) 35% 58%, var(--bg) 59% 70%, var(--c1) 71%); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 170px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow.center { justify-content: center; }
.ring-dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, var(--c7) 0 25%, transparent 26% 40%, var(--c4) 41% 62%, transparent 63% 76%, var(--c1) 77%); box-shadow: 0 0 12px rgba(240, 53, 155, 0.6); }
.h2 { margin: 0; font: 600 clamp(40px, 6.4vw, 84px)/0.98 var(--display); letter-spacing: -0.035em; }
.dim { color: var(--dim); }
.lede { margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 580px; line-height: 1.55; }
.section-head.center .lede { margin-inline: auto; }

.mesh { position: absolute; pointer-events: none; filter: blur(80px); opacity: 0.4; z-index: 0; }
.mesh-a { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -18vw; top: 0;
  background: radial-gradient(circle at 30% 30%, rgba(79, 70, 255, 0.55), transparent 55%), radial-gradient(circle at 70% 60%, rgba(181, 55, 242, 0.4), transparent 55%); }
.mesh-b { width: 80vw; height: 50vw; left: 10vw; top: 20%;
  background: radial-gradient(circle at 25% 50%, rgba(240, 53, 155, 0.35), transparent 55%), radial-gradient(circle at 75% 50%, rgba(255, 122, 61, 0.3), transparent 55%); }

/* manifesto */
.manifesto { padding-top: clamp(110px, 14vw, 180px); }
.manifesto-text { margin: 0; font: 500 clamp(30px, 4.6vw, 64px)/1.12 var(--display); letter-spacing: -0.03em; max-width: 1100px; }
.manifesto-text .w { opacity: 0.14; transition: none; }
.manifesto-text em { font-style: normal; }
.manifesto-text em .w { background: var(--spectrum); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- platform cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 28%, transparent), transparent 60%);
}
.card::after { /* colored top edge */
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0.8;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.num { font: 500 13px/1 var(--mono); color: var(--c); letter-spacing: 0.1em; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 30px -10px var(--c); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 10px; font: 600 24px/1.15 var(--display); letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- workflow ---------- */
.wf-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.wf-sticky { position: sticky; top: 110px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.steps::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; left: 6px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--p, 0)); border-radius: 2px;
  background: linear-gradient(180deg, var(--c1), var(--c3), var(--c4), var(--c6), var(--c7)); box-shadow: 0 0 14px rgba(240, 53, 155, 0.7); }
.step { position: relative; min-height: 46vh; padding: 4px 0 40px; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.step:last-child { min-height: 30vh; }
.step.on { opacity: 1; }
.step::before { content: ''; position: absolute; left: -34px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: 0.5s var(--ease); }
.step.on::before { border-color: #fff; background: var(--c4); box-shadow: 0 0 0 5px rgba(240, 53, 155, 0.18), 0 0 20px var(--c4); }
.step-n { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.14em; }
.step h3 { margin: 12px 0 12px; font: 600 clamp(32px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 420px; }

/* app mock — layered surfaces */
.app {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #141124, #0c0a16);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.app-glow { position: absolute; inset: -40% -20% auto; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 60, 255, 0.28), transparent); filter: blur(20px); }
.app-bar { position: relative; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-title { font-weight: 600; color: #e4e0f7; }
.app-badge { margin-left: auto; font: 500 11px/1 var(--mono); padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.app-body { position: relative; display: grid; grid-template-columns: 150px 1fr 150px; min-height: 400px; }
.app-side, .app-chan { padding: 16px 12px; background: rgba(0, 0, 0, 0.18); }
.app-side { border-right: 1px solid var(--line); }
.app-chan { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.side-h { margin: 6px 6px 8px; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.side-h b { color: var(--c7); font-weight: 500; }
.app-side a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side a.on { background: rgba(255, 255, 255, 0.07); color: #fff; }
.app-side .side-h:nth-of-type(2) { margin-top: 20px; }
.intake { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.chip { font: 500 11px/1 var(--mono); padding: 7px 8px; border-radius: 8px; color: #fff; background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.app-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.versions span { font: 500 11px/1 var(--mono); padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--dim); border: 1px solid var(--line); }
.versions span.on { color: #fff; border-color: transparent; background: linear-gradient(90deg, color-mix(in srgb, var(--c2) 50%, transparent), color-mix(in srgb, var(--c4) 40%, transparent)); }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; }
.rows li.ai { background: linear-gradient(90deg, rgba(240, 53, 155, 0.14), rgba(255, 122, 61, 0.06)); border-color: rgba(240, 53, 155, 0.35); }
.rows li.ai small { color: #ffb3d6; }
.art { width: 34px; height: 34px; border-radius: 8px; flex: none; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 40%), linear-gradient(135deg, var(--ta), var(--tb)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.meta b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta small { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font: 500 11px/1 var(--mono); color: var(--c7); padding: 6px 7px; border-radius: 7px; background: rgba(255, 185, 56, 0.1); }
.editor { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.ed-h { margin: 0 0 6px; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.ed-t { margin: 0; color: #e6e2f8; font-size: 13px; line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--c4); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ch { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; color: var(--muted); transition: 0.5s var(--ease); }
.ch i { width: 26px; height: 15px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); position: relative; transition: 0.5s var(--ease); }
.ch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: 0.5s var(--ease); }
.ship { margin-top: auto; height: 36px; border: 0; border-radius: 10px; font: 600 12.5px/1 var(--body); color: #fff; background: rgba(255, 255, 255, 0.08); transition: 0.6s var(--ease); }

/* focus states driven by the active step */
.app [class^='app-'], .app .intake, .app .versions, .app .rows, .app .editor { transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.app .intake .chip { transition: transform 0.6s var(--ease), opacity 0.6s; }
.app[data-step='1'] .intake .chip { animation: pop 0.7s var(--ease) both; }
.app[data-step='1'] .intake .chip:nth-child(2) { animation-delay: 0.12s; }
.app[data-step='1'] .intake .chip:nth-child(3) { animation-delay: 0.24s; }
@keyframes pop { from { transform: translateX(-12px) scale(0.9); opacity: 0; } }
.app:not([data-step='1']) .intake { opacity: 0.35; }
.app:not([data-step='2']) .versions, .app:not([data-step='2']) .rows li.ai { filter: saturate(0.3); opacity: 0.55; }
.app[data-step='2'] .rows li.ai { animation: nudge 0.9s var(--ease) both; }
@keyframes nudge { 0% { transform: translateY(40px); } 100% { transform: none; } }
.app:not([data-step='3']) .editor { opacity: 0.45; }
.app[data-step='3'] .editor { border-color: rgba(181, 55, 242, 0.5); box-shadow: 0 0 0 4px rgba(181, 55, 242, 0.12); }
.app[data-step='4'] .ch { color: #fff; background: color-mix(in srgb, var(--c) 16%, transparent); }
.app[data-step='4'] .ch i { background: var(--c); box-shadow: 0 0 12px var(--c); }
.app[data-step='4'] .ch i::after { left: 13px; }
.app[data-step='4'] .ch:nth-of-type(2), .app[data-step='4'] .ch:nth-of-type(2) i, .app[data-step='4'] .ch:nth-of-type(2) i::after { transition-delay: 0.08s; }
.app[data-step='4'] .ch:nth-of-type(3), .app[data-step='4'] .ch:nth-of-type(3) i, .app[data-step='4'] .ch:nth-of-type(3) i::after { transition-delay: 0.16s; }
.app[data-step='4'] .ch:nth-of-type(4), .app[data-step='4'] .ch:nth-of-type(4) i, .app[data-step='4'] .ch:nth-of-type(4) i::after { transition-delay: 0.24s; }
.app[data-step='4'] .ch:nth-of-type(5), .app[data-step='4'] .ch:nth-of-type(5) i, .app[data-step='4'] .ch:nth-of-type(5) i::after { transition-delay: 0.32s; }
.app[data-step='4'] .ship { background: linear-gradient(100deg, var(--c1), var(--c4), var(--c6)); box-shadow: 0 10px 30px -8px rgba(240, 53, 155, 0.7); transition-delay: 0.4s; }

/* ---------- channels hub ---------- */
.hub { position: relative; height: 520px; max-width: 1000px; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hub-lines .base { stroke: rgba(255, 255, 255, 0.08); }
.hub-lines .flow { stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.hub-core { position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; margin: -110px 0 0 -110px; display: grid; place-items: center; }
.hub-core img { position: relative; width: 112px; z-index: 2; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8)); }
.core-ring { position: absolute; border-radius: 50%; inset: 0; }
.core-ring.r1 { inset: 30px; background: radial-gradient(circle, var(--bg) 60%, transparent 61%), conic-gradient(from 0deg, var(--c1), var(--c3), var(--c4), var(--c6), var(--c7), var(--c4), var(--c1)); animation: spin 8s linear infinite; box-shadow: 0 0 40px rgba(181, 55, 242, 0.5); }
.core-ring.r2 { inset: 18px; border: 1px solid rgba(255, 255, 255, 0.12); }
.core-ring.r3 { inset: -10px; border: 1px dashed rgba(255, 255, 255, 0.1); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-node {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(22, 18, 38, 0.92), rgba(12, 10, 22, 0.92));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 8%, transparent), 0 16px 40px -12px color-mix(in srgb, var(--c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 10px;
}
.hub-node::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 30px;
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat svg { width: 150px; height: 150px; transform: rotate(-90deg); overflow: visible; }
.stat circle { fill: none; stroke-width: 5; }
.stat .track { stroke: rgba(255, 255, 255, 0.06); }
.stat .bar { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; filter: drop-shadow(0 0 8px var(--c)); }
.stat b { position: absolute; top: 34px; left: 0; right: 0; height: 150px; display: grid; place-items: center; font: 600 46px/1 var(--display); letter-spacing: -0.03em; }
.stat p { margin: 22px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.plan.featured { background: linear-gradient(180deg, rgba(123, 60, 255, 0.16), rgba(240, 53, 155, 0.04) 60%, rgba(255, 255, 255, 0.01)); border-color: transparent; transform: translateY(-12px); }
.plan-border { position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), var(--c1), var(--c3), var(--c4), var(--c6), var(--c7), var(--c4), var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --a: 360deg; } }
.plan-tag { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.featured .plan-tag { color: var(--c7); }
.plan h3 { margin: 0; font: 600 30px/1 var(--display); letter-spacing: -0.02em; }
.price { margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 600 52px/1 var(--display); letter-spacing: -0.04em; }
.price span { color: var(--muted); font-size: 14px; }
.plan-d { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #dcd8ef; }
.plan li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: radial-gradient(circle, var(--c7) 0 22%, transparent 24%), conic-gradient(var(--c1), var(--c4), var(--c6), var(--c1)); -webkit-mask: radial-gradient(circle, #000 22%, transparent 24% 44%, #000 46% 62%, transparent 64%); mask: radial-gradient(circle, #000 22%, transparent 24% 44%, #000 46% 62%, transparent 64%); }
.plan .btn { margin-top: auto; }
.fine { margin: 26px 0 0; text-align: center; font: 400 12px/1 var(--mono); color: var(--dim); }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 16px; overflow: hidden; isolation: isolate; }
.cta-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(7, 6, 12, 0.8) 80%, var(--bg)),
    linear-gradient(180deg, var(--bg), transparent 22%, transparent 78%, var(--bg)); }
.cta-card {
  position: relative; z-index: 2; width: min(640px, 100%); padding: clamp(36px, 5vw, 56px); border-radius: 32px; text-align: center;
  background: linear-gradient(180deg, rgba(18, 14, 32, 0.9), rgba(9, 8, 18, 0.94));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.cta-card .h2 { font-size: clamp(40px, 6vw, 72px); }
.cta-card .lede { margin-inline: auto; }
.join { margin-top: 32px; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); }
.join input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: 400 15px var(--body); padding: 0 16px; }
.join input::placeholder { color: var(--dim); }
.join .t2 { display: none; }
.join.done .t1 { display: none; }
.join.done .t2 { display: inline; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: linear-gradient(180deg, var(--bg), #05040a); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot-brand img { width: 150px; margin-bottom: 16px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; max-width: 280px; }
.foot-h { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.foot-grid a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; transition: color 0.3s; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.credit {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); background: rgba(255, 255, 255, 0.03); transition: color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.credit::before { /* flowing spectrum outline */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(100deg, var(--c1), var(--c3), var(--c4), var(--c6), var(--c7), var(--c6), var(--c4), var(--c3), var(--c1));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: outline-flow 4s linear infinite;
}
.credit b { font-weight: 600; color: var(--ink); }
.credit span { display: inline-block; font-size: 12px; transition: transform 0.4s var(--ease); }
.credit:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); box-shadow: 0 6px 20px -8px rgba(240, 53, 155, 0.6); }
.credit:hover::before { animation-duration: 1.6s; }
.credit:hover span { transform: translate(2px, -2px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .wf-grid { grid-template-columns: 1fr; }
  .wf-sticky { position: relative; top: 0; }
  .step { min-height: 0; padding-bottom: 36px; opacity: 1; }
  .plan.featured { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { height: 56px; }
  .nav-logo img { height: 32px; }
  .logo-wrap { width: min(92vw, 95vh * 1.25); }
  .hero-capsule { flex-direction: column; border-radius: 26px; padding: 20px; gap: 16px; }
  .hero-capsule p { text-align: center; font-size: 15px; white-space: normal; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; padding: 0 12px; }
  .cards, .plans, .stats { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-chan { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .app-chan .side-h, .app-chan .ship { grid-column: 1 / -1; }
  .hub { height: 560px; }
  .hub-core { top: 50%; scale: 0.75; }
  .hub-node { font-size: 12px; padding: 9px 12px; }
  .hub-node:nth-child(3) { left: 26%; top: 5%; }
  .hub-node:nth-child(4) { left: 26%; top: 17%; }
  .hub-node:nth-child(5) { left: 26%; top: 83%; }
  .hub-node:nth-child(6) { left: 74%; top: 5%; }
  .hub-node:nth-child(7) { left: 74%; top: 17%; }
  .hub-node:nth-child(8) { left: 74%; top: 83%; }
  .hub-node:nth-child(9) { left: 50%; top: 95%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .join { flex-direction: column; border-radius: 20px; }
  .join input { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .manifesto-text .w { opacity: 1; }
}
