:root {
  --bg: #0f1412;
  --bg-elevated: #171e1b;
  --surface: #1e2824;
  --ink: #e8efe9;
  --muted: #8a9a90;
  --line: rgba(232, 239, 233, 0.12);
  --accent: #c4f542;
  --accent-dim: #8fb82e;
  --warn: #e8b86d;
  --font-display: "Syne", "Avenir Next", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --max: 68rem;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(196, 245, 66, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(90, 140, 120, 0.12), transparent 45%),
    linear-gradient(180deg, #121916 0%, var(--bg) 40%, #0c100e 100%);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ddff7a;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(15, 20, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand .product-expand {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand .product-meta {
  font-size: 0.68rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
}

.hero .title-lockup {
  margin: 0 0 1rem;
}

.hero .title-lockup h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero .title-expand {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.75) brightness(0.55) contrast(1.05);
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-media .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 18, 0.35) 0%, rgba(15, 20, 18, 0.55) 45%, rgba(15, 20, 18, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 20, 18, 0.55) 0%, transparent 55%);
}

.hero-media .hero-mesh {
  position: absolute;
  inset: 8% 0 0;
  width: 100%;
  height: 92%;
  opacity: 0.85;
  pointer-events: none;
}

.hero-media .hero-mesh svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 3.25rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: #c5d0c8;
  font-size: 1.15rem;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 1%, 0);
  }
}

.hero-mesh .node {
  animation: nodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-mesh .node:nth-child(2n) {
  animation-delay: 0.6s;
}

.hero-mesh .node:nth-child(3n) {
  animation-delay: 1.2s;
}

.hero-mesh .pulse {
  animation: glowPulse 3.6s ease-in-out infinite;
}

.hero-mesh .wave {
  stroke-dasharray: 12 10;
  animation: dashMove 14s linear infinite;
}

.hero-mesh .wave.delay {
  animation-duration: 18s;
  animation-direction: reverse;
}

.hero-mesh .link {
  stroke-dasharray: 4 6;
  animation: dashMove 22s linear infinite;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -120;
  }
}

/* Visual band */
.visual-band {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.visual-band figure {
  margin: 0;
  position: relative;
  background: var(--bg-elevated);
}

.visual-band .channels-frame {
  padding: 1.25rem 0 0.5rem;
}

.visual-band .channels-frame .channels-svg {
  display: block;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: auto;
  aspect-ratio: 640 / 280;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171e1b;
}

.visual-band .channels-frame .ch-wave {
  stroke-dasharray: 8 6;
  animation: dashMove 16s linear infinite;
}

.visual-band .channels-frame .ch-wave:nth-child(2) {
  animation-duration: 20s;
  animation-direction: reverse;
}

.visual-band .channels-frame .ch-wave:nth-child(3) {
  animation-duration: 24s;
}

.visual-band .channels-frame .ch-wave:nth-child(4) {
  animation-duration: 18s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .visual-band .channels-frame .ch-wave {
    animation: none !important;
    stroke-dasharray: none;
  }
}

.visual-band > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img.hero-photo,
  .hero-mesh .node,
  .hero-mesh .pulse,
  .hero-mesh .wave,
  .hero-mesh .link {
    animation: none !important;
  }
}

.visual-caption {
  width: min(100% - 2rem, var(--max));
  margin: -0.25rem auto 0;
  padding: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #12160f;
}

.btn-primary:hover {
  background: #d4ff5c;
  color: #12160f;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(232, 239, 233, 0.35);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.panel li + li {
  margin-top: 0.35rem;
}

/* Status metrics */
.metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric {
  padding: 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric .value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.metric .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.banner {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 184, 109, 0.35);
  background: rgba(232, 184, 109, 0.08);
  color: var(--warn);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-elevated);
}

td code,
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--accent);
}

tr:last-child td {
  border-bottom: none;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(196, 245, 66, 0.35);
  outline-offset: 1px;
}

.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.demo-toast {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 245, 66, 0.35);
  background: rgba(196, 245, 66, 0.08);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.demo-toast.show {
  display: block;
  animation: rise 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page chrome */
.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

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