:root {
  color-scheme: dark;
  --ink: #f5f2f7;
  --muted: #a4a0ad;
  --dim: #6f6b78;
  --bg: #07090f;
  --panel: #0d1018;
  --panel-2: #121621;
  --line: rgba(255, 255, 255, .1);
  --pink: #ff4fa3;
  --pink-soft: #ff87bf;
  --cyan: #63efff;
  --black: #05060a;
  --max: 1240px;
  --header: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 9%, rgba(255, 79, 163, .1), transparent 32rem),
    radial-gradient(circle at 15% 30%, rgba(99, 239, 255, .055), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--cyan);
  color: var(--black);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  height: var(--header);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: visible;
  fill: none;
  stroke: var(--pink);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 7px rgba(255,79,163,.35));
}

.brand-mark path:last-child { stroke: var(--cyan); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.nav-link {
  padding: 8px 13px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}

.nav-link:hover { color: var(--ink); }

.nav-link.is-active {
  background: var(--pink);
  color: var(--black);
  box-shadow: 0 0 18px rgba(255,79,163,.22);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr);
  gap: clamp(42px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - var(--header));
  padding: 76px 0 106px;
}

.eyebrow, .kicker {
  margin: 0 0 22px;
  color: var(--pink-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255,79,163,.1), 0 0 16px var(--pink);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 27px;
  font-size: clamp(3.6rem, 6.8vw, 7.4rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .9;
}

.accent {
  color: var(--pink);
  text-shadow: 0 0 30px rgba(255,79,163,.23);
}

.headline-line { display: block; }

.hero-copy, .signal-panel { min-width: 0; }

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: #c0bcc6;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, border-color .2s, background-color .2s;
}

.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--pink); background: var(--pink); color: var(--black); }
.button-primary:hover { background: var(--pink-soft); }
.button-quiet:hover { border-color: rgba(99,239,255,.55); }

.microcopy { margin: 16px 0 0; color: var(--dim); font-size: .78rem; }

.signal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(145deg, rgba(18,22,33,.94), rgba(8,10,17,.96));
  box-shadow: 0 34px 100px rgba(0,0,0,.38), 0 0 0 1px rgba(255,79,163,.025) inset;
}

.signal-panel::before {
  position: absolute;
  content: "";
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,79,163,.09), transparent 31%, transparent 72%, rgba(99,239,255,.055));
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .66rem;
  letter-spacing: .14em;
}

.panel-live { color: var(--cyan); }
.panel-live i { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

.chart {
  position: relative;
  height: 370px;
  overflow: hidden;
  padding: 0;
  background: #060a10;
}

.chart::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,9,15,.06) 55%, rgba(6,9,15,.72)),
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(6,9,15,.12) 3px 4px);
}

.chart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .84;
  transform: scale(1.01);
}

.chart-scan {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 18%;
  border-right: 1px solid rgba(99,239,255,.65);
  background: linear-gradient(90deg, transparent, rgba(99,239,255,.055));
  filter: drop-shadow(0 0 8px rgba(99,239,255,.45));
  animation: field-scan 7s linear infinite;
}

@keyframes field-scan { to { transform: translateX(660%); } }

.chart-axis {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 17px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .58rem;
  letter-spacing: .1em;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metric-row div { padding: 17px 18px; border-right: 1px solid var(--line); }
.metric-row div:last-child { border-right: 0; }
.metric-row span { display: block; margin-bottom: 4px; color: var(--dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .58rem; letter-spacing: .12em; }
.metric-row strong { font-size: .78rem; font-weight: 750; }

.product, .principles, .release { padding: 120px 0; border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .kicker { align-self: start; }
.section-heading h2, .release-card h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.5vw, 5rem); letter-spacing: -.055em; line-height: 1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}

.feature {
  position: relative;
  min-height: 310px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(13,16,24,.8);
}

.feature::after {
  position: absolute;
  content: "";
  right: -90px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.07);
  transform: rotate(45deg);
}

.feature-index { display: block; margin-bottom: 80px; color: var(--pink); font-family: "SFMono-Regular", Consolas, monospace; font-size: .7rem; }
.feature h3 { margin-bottom: 13px; font-size: 1.35rem; letter-spacing: -.025em; }
.feature p { max-width: 42ch; margin: 0; color: var(--muted); font-size: .93rem; }

.scan-line { position: absolute; right: 30px; bottom: 29px; left: 30px; height: 34px; border-bottom: 1px solid rgba(99,239,255,.18); }
.scan-line i { position: absolute; bottom: -1px; left: 0; width: 34%; height: 1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: scan 4s ease-in-out infinite alternate; }

@keyframes scan { to { transform: translateX(190%); } }

.section-heading.compact { grid-template-columns: .55fr 1.45fr; align-items: start; }
.section-heading.compact h2 { max-width: 720px; }

.principle-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principle-list li { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.principle-list > li > span { color: var(--pink); font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; }
.principle-list div { display: grid; grid-template-columns: .7fr 1fr; gap: 40px; }
.principle-list h3 { margin: 0; font-size: 1.2rem; }
.principle-list p { max-width: 52ch; margin: 0; color: var(--muted); }

.release-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255,79,163,.35);
  background: linear-gradient(130deg, rgba(255,79,163,.075), rgba(13,16,24,.86) 38%, rgba(99,239,255,.04));
}

.release-card h2 { margin-bottom: 25px; }
.release-card > div > p:last-child { max-width: 58ch; margin: 0; color: var(--muted); }
.release-state { display: flex; flex-direction: column; justify-content: center; }

.release-node {
  position: relative;
  padding: 16px 20px 16px 42px;
  border-left: 1px solid rgba(255,255,255,.16);
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.release-node::before { position: absolute; content: ""; top: 21px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: #3f4149; }
.release-node.is-complete { color: var(--muted); }
.release-node.is-complete::before { background: var(--cyan); box-shadow: 0 0 10px rgba(99,239,255,.5); }
.release-node.is-current { color: var(--ink); }
.release-node.is-current::before { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,79,163,.1), 0 0 14px var(--pink); }

.site-footer {
  display: grid;
  grid-template-columns: .6fr .9fr 1.5fr;
  gap: 30px;
  align-items: start;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 50px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .77rem;
}

.site-footer p { margin: 0; }
.footer-brand { color: var(--ink); }
.legal { text-align: right; }
.legal span { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 90px; }
  .signal-panel { max-width: 760px; }
  .section-heading { grid-template-columns: .7fr 1.3fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: 1 / -1; }
  .release-card { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  :root { --header: 70px; }
  .site-header, .section, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .brand-mark { width: 28px; height: 28px; }
  .brand > span { display: none; }
  .primary-nav { flex: 1; min-width: 0; margin-left: 12px; overflow-x: auto; }
  .nav-link { padding: 7px; font-size: .56rem; }
  .hero { gap: 54px; padding: 72px 0 90px; }
  h1 { font-size: clamp(2.85rem, 13vw, 4.2rem); }
  .hero-lede { font-size: 1rem; }
  .button { width: 100%; }
  .chart { height: 280px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-row div:last-child { border-bottom: 0; }
  .product, .principles, .release { padding: 90px 0; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 8px; }
  .section-heading > p:last-child { grid-column: auto; margin-top: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature { min-height: 270px; padding: 27px; }
  .principle-list li { grid-template-columns: 45px 1fr; gap: 16px; }
  .principle-list div { grid-template-columns: 1fr; gap: 9px; }
  .release-card { padding: 30px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
