:root {
  --bg: #05080f;
  --bg-elevated: #0b1120;
  --bg-panel: #0f1729;
  --text: #e8edf7;
  --muted: #8b9cb8;
  --dim: #5a6d8a;
  --accent: #3ee0cf;
  --accent-dim: rgba(62, 224, 207, 0.15);
  --accent-glow: rgba(62, 224, 207, 0.45);
  --gold: #c9a962;
  --gold-dim: rgba(201, 169, 98, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 4.5rem;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10000;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 8, 15, 0.92);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: rotate(45deg);
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}

.site-nav {
  display: none;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

.header-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}
.header-cta:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 6rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 224, 207, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 207, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, black, transparent);
}

.hero__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(62, 224, 207, 0.04) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: scan 8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes scan {
  0%, 100% { background-position: 0 -100%; }
  50% { background-position: 0 100%; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--block { width: 100%; }

/* Telemetry */
.telemetry {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 5rem;
  z-index: 2;
  width: min(320px, 40vw);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(8px);
  display: none;
}
.telemetry__label {
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
}
.telemetry__stream {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 120px;
  overflow: hidden;
}
.telemetry__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--dim);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Metrics */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.metrics__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.metric {
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
  border-right: 1px solid var(--border);
  text-align: center;
}
.metric:last-child { border-right: none; }
.metric__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.metric__suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}
.metric__label {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28ch;
  margin-inline: auto;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}
.section--dark {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.section--accent {
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(62, 224, 207, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(201, 169, 98, 0.05), transparent),
    var(--bg);
}
.section--engage {
  background: var(--bg-elevated);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}
.section__desc em { color: var(--text); font-style: normal; font-weight: 500; }

.section__intro { margin-bottom: 3.5rem; }

.section__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Panels */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.panel__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.panel p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.panel__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.panel__tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(62, 224, 207, 0.2);
}

.pull-quote {
  margin: 4rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
}

/* Node viz */
.node-viz {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-viz__core {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-dim);
  color: var(--accent);
}
.node-viz__ring {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.node-viz__ring--1 { width: 55%; height: 55%; }
.node-viz__ring--2 { width: 75%; height: 75%; animation-direction: reverse; animation-duration: 45s; }
.node-viz__ring--3 { width: 95%; height: 95%; animation-duration: 60s; border-style: dashed; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }

.node-viz__nodes {
  position: absolute;
  inset: 0;
}
.node-viz__nodes span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  white-space: nowrap;
  animation: nodePulse 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
.node-viz__nodes span:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.node-viz__nodes span:nth-child(2) { top: 22%; right: 0; }
.node-viz__nodes span:nth-child(3) { bottom: 22%; right: 2%; }
.node-viz__nodes span:nth-child(4) { bottom: 5%; left: 50%; transform: translateX(-50%); }
.node-viz__nodes span:nth-child(5) { bottom: 22%; left: 0; }
.node-viz__nodes span:nth-child(6) { top: 22%; left: 2%; }
@keyframes nodePulse {
  0%, 100% { border-color: var(--border); color: var(--muted); }
  50% { border-color: var(--accent); color: var(--accent); }
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-list li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.feature-list li:hover { border-left-color: var(--accent); }
.feature-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.showcase__card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}
.showcase__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.showcase__frame {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.showcase__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  z-index: 2;
}
.showcase__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 2rem;
}
.showcase__bars span {
  width: 12px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px 2px 0 0;
  animation: barGrow 2s ease-in-out infinite;
}
.showcase__bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.showcase__bars span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.showcase__bars span:nth-child(3) { height: 80%; animation-delay: 0.3s; }
.showcase__bars span:nth-child(4) { height: 45%; animation-delay: 0.45s; }
.showcase__bars span:nth-child(5) { height: 65%; animation-delay: 0.6s; }
@keyframes barGrow {
  0%, 100% { opacity: 0.5; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.showcase__frame--gen .showcase__pulse {
  position: absolute;
  inset: 30%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 60px var(--gold-dim);
  animation: pulse 3s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.showcase__frame--stream .showcase__wave {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(62, 224, 207, 0.08) 20px,
    rgba(62, 224, 207, 0.08) 22px
  );
  animation: wave 4s linear infinite;
}
@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(44px); }
}

/* Solutions */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.solution {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.3s;
}
.solution:hover { border-color: rgba(201, 169, 98, 0.35); }
.solution__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.solution__tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.solution__scope {
  font-size: 0.75rem;
  color: var(--dim);
}
.solution h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}
.solution p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.solution__note {
  font-size: 0.82rem !important;
  color: var(--dim) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

.disclaimer {
  margin: 3rem 0 0;
  font-size: 0.8rem;
  color: var(--dim);
  max-width: 65ch;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

/* Engage */
.section__engage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}
.engage__steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.engage__steps li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.engage__steps span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}
.engage__card {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  padding: 2.5rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.engage__card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.engage__card > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.engage__fine {
  margin: 1rem 0 0 !important;
  font-size: 0.78rem !important;
  color: var(--dim) !important;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer__inner { max-width: var(--max); margin: 0 auto; }
.logo--footer { justify-content: center; margin-bottom: 0.75rem; }
.site-footer__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.5rem;
}
.site-footer__legal {
  font-size: 0.78rem;
  color: var(--dim);
  margin: 0;
  max-width: 50ch;
  margin-inline: auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .telemetry { display: block; }
}

@media (max-width: 900px) {
  .section__split,
  .section__engage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .engage__card { position: static; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .header-cta { display: none; }
  .hero__title { max-width: none; }
  .telemetry { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scan, .hero__scroll-line::after, .node-viz__ring,
  .node-viz__nodes span, .showcase__bars span, .showcase__pulse,
  .showcase__wave { animation: none !important; }
}