:root {
  --bg: #07080d;
  --bg-elev: #0e1018;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f2f3f7;
  --muted: #8b90a3;
  --dim: #5b6073;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --glow: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 35%, #22d3ee 100%);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 92, 246, .45); }

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

/* Header — no bar, floats over the hero */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.03em; display: inline-flex; align-items: center; }
.wordmark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--violet); margin-left: 3px; transform: translateY(4px); }
.header-link { font-size: .92rem; color: var(--muted); transition: color .2s; }
.header-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: .98rem;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-light {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 30px rgba(0, 0, 0, .25);
}
.btn-light:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 40px rgba(139, 92, 246, .35); }
.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 18vh; text-align: center; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.nebula {
  position: absolute; left: 50%; top: -22%; width: min(1200px, 120vw); height: 70%; transform: translateX(-50%);
  border-radius: 50%; filter: blur(40px);
  background: radial-gradient(closest-side, rgba(109, 40, 217, .6), rgba(14, 116, 144, .16) 60%, transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: translateX(-50%) scale(1.12); opacity: .75; } }
.stars { position: absolute; inset: 0; }
.s1 {
  opacity: .8; background-size: 300px 300px; animation: rise1 40s linear infinite;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 230px 200px, rgba(196,181,253,.8), transparent),
    radial-gradient(1px 1px at 60px 250px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 280px 40px, rgba(165,243,252,.7), transparent);
}
.s2 {
  background-size: 460px 460px; animation: rise2 26s linear infinite;
  background-image:
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(196,181,253,.9), transparent),
    radial-gradient(1.5px 1.5px at 330px 60px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 210px 380px, rgba(165,243,252,.9), transparent),
    radial-gradient(1.5px 1.5px at 420px 290px, rgba(255,255,255,.7), transparent);
}
.s3 {
  background-size: 700px 700px; animation: rise3 16s linear infinite;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, .9));
  background-image:
    radial-gradient(2.5px 2.5px at 150px 200px, rgba(167,139,250,1), transparent),
    radial-gradient(2px 2px at 520px 480px, rgba(34,211,238,1), transparent),
    radial-gradient(2.5px 2.5px at 600px 120px, rgba(255,255,255,.9), transparent);
}
@keyframes rise1 { to { background-position: 0 -300px; } }
@keyframes rise2 { to { background-position: 0 -460px; } }
@keyframes rise3 { to { background-position: 0 -700px; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 62%, rgba(7, 8, 13, .7), transparent 75%);
}

.eyebrow { font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1 { font-family: var(--display); font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0 0 26px; }
h1 .dim { color: rgba(242, 243, 247, .55); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 140px 0; position: relative; }
@media (max-width: 760px) { section { padding: 96px 0; } }
.label { font-size: .82rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 20px; }
h2 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin: 0 0 22px; }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 0; }

/* Manifesto */
.manifesto { border-top: 1px solid var(--line); }
.manifesto p.big {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500;
  max-width: 1000px; margin: 0; color: var(--dim);
}
.manifesto p.big strong { color: var(--text); font-weight: 500; }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); margin-top: 64px; }
.cell {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; border-radius: 24px; padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .3s;
}
.cell::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(139, 92, 246, .14), transparent 45%);
}
.cell:hover { border-color: var(--line-strong); }
.cell:hover::before { opacity: 1; }
.cell h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; font-weight: 600; margin: 0 0 8px; position: relative; }
.cell p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 440px; position: relative; }
.cell .num { position: absolute; top: 28px; left: 32px; font-size: .8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.c-research { grid-column: span 4; }
.c-design { grid-column: span 2; }
.c-build { grid-column: span 2; }
.c-grow { grid-column: span 4; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento .cell { grid-column: auto; } }

.viz { flex: 1; display: flex; align-items: center; justify-content: center; margin: 40px 0 28px; position: relative; }
/* research: bars with one outlier */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; width: 100%; max-width: 520px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #23263a, #151724); }
.bars span.hi { background: var(--glow); box-shadow: 0 0 30px rgba(139, 92, 246, .55); position: relative; }
.bars span.hi::after { content: "outlier"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: .75rem; color: #c4b5fd; white-space: nowrap; }
/* design: phone */
.phone {
  width: 112px; height: 190px; border-radius: 26px; border: 1px solid var(--line-strong); padding: 8px;
  background: #0a0b11; box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.phone-screen { height: 100%; border-radius: 19px; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, #171a28, #10121b); }
.phone-screen i { display: block; height: 8px; border-radius: 4px; background: #262a3d; }
.phone-screen i:first-child { width: 60%; height: 10px; background: #c4b5fd; opacity: .8; }
.phone-screen i.card { height: 46px; border-radius: 10px; background: linear-gradient(135deg, rgba(139,92,246,.55), rgba(34,211,238,.35)); }
.phone-screen i.s { width: 75%; }
/* build: platform chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 250px; }
.chip { font-size: .8rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: #c9ccd8; background: rgba(255, 255, 255, .02); }
.chip.on { border-color: rgba(167, 139, 250, .5); color: #ddd6fe; background: rgba(139, 92, 246, .12); }
/* grow: line chart */
.chart { width: 100%; max-width: 600px; height: 150px; overflow: visible; }

/* CTA */
.cta { text-align: center; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -320px; transform: translateX(-50%);
  width: 1000px; height: 600px; background: radial-gradient(closest-side, rgba(139, 92, 246, .3), rgba(34, 211, 238, .08) 60%, transparent);
}
.cta h2 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.4rem); }
.cta .sub { margin: 0 auto 44px; }
.mail { font-size: clamp(1.3rem, 3.5vw, 2rem); letter-spacing: -.02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .25s; }
.mail:hover { border-color: #a78bfa; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { margin: 0 0 14px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-grid p { margin: 0; line-height: 1.8; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { margin-top: 14px; max-width: 280px; }
.foot-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: .85rem; }

/* Legal pages */
.legal { padding: 160px 0 110px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); text-align: left; margin: 0 0 10px; }
.legal .updated { color: var(--muted); margin: 0 0 48px; }
.legal h2 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; margin: 44px 0 10px; }
.legal p, .legal li { color: #c3c6d3; }
.legal a { color: #c4b5fd; }

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

/* Soft glows behind the glass tiles */
.how { isolation: isolate; }
.how::before {
  content: ""; position: absolute; z-index: -1; inset: 30% 0 0 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 25% 40%, rgba(109, 40, 217, .28), transparent 70%),
    radial-gradient(35% 30% at 78% 75%, rgba(34, 211, 238, .14), transparent 70%);
  filter: blur(20px);
}
