:root {
  --bg: #05030c;
  --ink: #130a2e;
  --white: #ffffff;
  --cyan: #3ee8ff;
  --magenta: #ff3cad;
  --violet: #b44aff;
  --muted: rgba(255, 255, 255, 0.78);
  --dim: rgba(255, 255, 255, 0.55);
  --line: rgba(62, 232, 255, 0.22);
  --line-m: rgba(255, 60, 173, 0.28);
  --card: rgba(8, 6, 22, 0.66);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

.stage-video, .stage-still {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 32% 28%;
  background-size: cover; background-position: 32% 28%;
  z-index: 0; pointer-events: none;
}
.is-sub .stage-still { opacity: 0.35; filter: saturate(1.25); }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 18% 30%, rgba(62, 232, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 70% at 82% 14%, rgba(255, 60, 173, 0.16), transparent 58%),
    linear-gradient(90deg, rgba(5, 3, 12, 0.35) 0%, rgba(5, 3, 12, 0.7) 50%, rgba(5, 3, 12, 0.9) 100%);
}
.is-sub .veil { background: linear-gradient(180deg, rgba(5, 3, 12, 0.7), rgba(5, 3, 12, 0.92)); }

main, .footer { position: relative; z-index: 2; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  transition: background 0.25s, backdrop-filter 0.25s;
}
.nav.is-scrolled { background: rgba(5, 3, 12, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-size: 17px; text-decoration: none; font-weight: 500; }
.brand span { font-family: var(--mono); color: var(--cyan); margin-left: 4px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a:not(.btn) {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--cyan); }

/* type */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px; text-shadow: 0 0 18px rgba(62, 232, 255, 0.45);
}
h1, h2 { font-family: var(--mono); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
h1 { font-size: clamp(38px, 6vw, 76px); max-width: 16ch; }
h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 24ch; margin-bottom: 8px; }
.glow { background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 40rem; font-size: 17px; line-height: 1.62; color: var(--muted); }
.lead strong { color: var(--white); font-weight: 500; }
.lead.small { font-size: 15px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.96px; text-transform: uppercase; color: var(--magenta); }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cyan); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.small { font-size: 12.5px; color: var(--dim); }

/* buttons */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pills.col { flex-direction: column; margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 47px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  transition: background 0.2s, color 0.2s;
}
.btn-sm { min-height: 36px; padding: 8px 18px; font-size: 11.5px; }
.btn-block { width: 100%; margin-top: 20px; }
.btn-ghost { color: var(--white); background: transparent; box-shadow: inset 0 0 0 1px rgba(62, 232, 255, 0.85); }
.btn-ghost:hover { background: rgba(62, 232, 255, 0.12); }
.btn-solid { color: var(--ink); background: var(--white); }
.btn-solid:hover { background: var(--cyan); }

/* hero */
.hero { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 64px; }
.hero-inner { margin-left: auto; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; margin-top: 56px; }
.stat {
  font-family: var(--mono); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(90deg, var(--cyan) 0%, #fff 45%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.stat span { display: block; margin-top: 10px; font-family: Inter, sans-serif; font-size: 13.5px; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--muted); -webkit-text-fill-color: var(--muted); }

/* sections */
.band { padding-top: 96px; padding-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.even { align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2.tight { gap: 14px; }
.grid-2.three .card:last-child { grid-column: 1 / -1; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.grid-2 .card:nth-child(4n+2), .grid-2 .card:nth-child(4n+3), .subgrid .card:nth-child(even) { border-color: var(--line-m); }
.card h3 { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 8px; }
.card p, .card li { font-size: 14px; line-height: 1.55; color: var(--muted); }

.path { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.path span {
  font-family: var(--mono); font-size: 12.5px; padding: 9px 14px; border: 1px solid rgba(62, 232, 255, 0.35);
  border-radius: 999px; background: rgba(62, 232, 255, 0.08);
}
.path i { font-style: normal; color: var(--magenta); align-self: center; font-family: var(--mono); }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; counter-reset: t; }
.timeline li { position: relative; padding: 22px 18px 20px; border-top: 2px solid var(--cyan); background: var(--card); border-radius: 0 0 12px 12px; backdrop-filter: blur(12px); }
.timeline li:nth-child(even) { border-top-color: var(--magenta); }
.timeline b { font-family: var(--mono); font-size: 13px; display: block; margin-bottom: 10px; }
.timeline p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.list { list-style: none; margin-top: 26px; }
.list li { padding: 12px 0 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); line-height: 1.5; position: relative; }
.list li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.list b { color: var(--white); font-weight: 500; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.grid-3 .card:nth-child(even) { border-color: var(--line-m); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.product { text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.product:hover { border-color: var(--cyan); transform: translateY(-2px); }
.products .product:nth-child(-n+2) { border-color: var(--line-m); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.timeline.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fit { margin-top: 24px; }
.fit ul { padding-left: 1.1em; margin-top: 12px; }
.fit li + li { margin-top: 6px; }
.kicker.cyan { color: var(--cyan); }
.quote { margin-top: 36px; max-width: 46rem; font-family: var(--mono); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; letter-spacing: -0.02em; border-left: 2px solid var(--magenta); padding-left: 22px; }
.quote cite { display: block; margin-top: 12px; font-family: Inter, sans-serif; font-style: normal; font-size: 13px; color: var(--dim); }

/* roles */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 26px; }
.filter {
  font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgba(8, 6, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.filter b { color: var(--dim); font-weight: 500; margin-left: 4px; }
.filter:hover { border-color: var(--cyan); color: var(--white); }
.filter.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.filter.is-on b { color: var(--ink); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card {
  display: flex; flex-direction: column; text-decoration: none; padding: 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.role-card[hidden] { display: none; }
.role-card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 0 32px rgba(62, 232, 255, 0.16); }
.role-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lang { font-family: var(--mono); font-size: 10.5px; color: var(--dim); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; padding: 3px 7px; }
.role-card h3 { font-family: var(--mono); font-size: 20px; letter-spacing: -0.03em; margin: 14px 0 4px; }
.role-product { font-size: 12.5px; color: var(--cyan); margin-bottom: 12px; }
.role-card p { font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.role-go { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--white); }

.cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-color: var(--line-m); }
.cta .lead { margin-top: 16px; }

/* role page */
.role-hero { padding-top: 130px; padding-bottom: 40px; }
.role-hero h1 { font-size: clamp(34px, 5vw, 64px); max-width: 20ch; }
.role-hero .chips span { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); background: rgba(62, 232, 255, 0.06); }
.back { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--dim); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--cyan); }
.role-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 80px; }
.jd-section { padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.jd-section:first-child { border-top: 0; padding-top: 10px; }
.jd-section > p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 44rem; }
.jd-section > p + p { margin-top: 14px; }
.jd-section > ul { list-style: none; max-width: 46rem; }
.jd-section > ul li { position: relative; padding: 9px 0 9px 22px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.jd-section > ul li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.subgrid .card ul { padding-left: 1.1em; }
.subgrid .card li + li { margin-top: 7px; }
.subgrid .card p { margin-bottom: 8px; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.side-card .kicker { margin-bottom: 14px; }
.terms dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--cyan); margin-top: 14px; }
.terms dt:first-child { margin-top: 0; }
.terms dd { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.note { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--magenta); background: rgba(255, 60, 173, 0.08); font-size: 13.5px; line-height: 1.5; }
.product-links { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.product-links a, .text-link { color: var(--cyan); text-decoration: none; }
.text-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; }

.footer { border-top: 1px solid var(--line); background: rgba(5, 3, 12, 0.85); margin-top: 64px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: 13px; color: var(--dim); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--cyan); }

@media (max-width: 1080px) {
  .roles { grid-template-columns: 1fr 1fr; }
  .timeline, .timeline.six, .grid-3 { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .role-layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 1080px) {
  .hero-inner { margin-left: 0; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 14px 16px; }
  .nav-links a:not(.btn) { display: none; }
  .split, .cta, .grid-2, .subgrid, .roles, .timeline, .timeline.six, .grid-3, .products { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { padding: 24px; }
  .band { padding-top: 64px; }
  .stage-video { display: none; }
  .veil { background: linear-gradient(180deg, rgba(5, 3, 12, 0.55) 0%, rgba(5, 3, 12, 0.88) 60%); }
  body:not(.is-sub) { background: var(--bg) url(unicorn-hero-v17-poster.webp) 32% 0 / cover fixed; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .role-card { transition: none; }
}
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); max-width: 18ch; }
