:root {
  --bg: #06060f;
  --bg-elevated: #0c0c1a;
  --bg-panel: #12122a;
  --text: #eceaf8;
  --muted: #9490b8;
  --dim: #5c5878;
  --accent: #7c5cff;
  --accent-dim: rgba(124, 92, 255, 0.14);
  --accent-glow: rgba(124, 92, 255, 0.5);
  --hot: #ff6b4a;
  --hot-dim: rgba(255, 107, 74, 0.12);
  --cyan: #3ee0cf;
  --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.035;
  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;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--hot));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

.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(6, 6, 15, 0.75);
  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(6, 6, 15, 0.94);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.logo__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  box-shadow: 0 0 16px var(--accent-glow);
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.site-nav { display: none; gap: 1.75rem; }
.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  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.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  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 {
  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) 7rem;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 60% 45%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

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

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

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--muted);
  max-width: 50ch;
  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.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  color: #fff;
}
.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 {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 5.5rem;
  z-index: 2;
  width: min(340px, 42vw);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--dim);
  background: rgba(12, 12, 26, 0.82);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(8px);
  display: none;
}
.telemetry__label {
  color: var(--cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
}
.telemetry__stream {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 110px;
  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); }
}

.channel-strip {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 1.5rem;
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.channel-strip__item {
  color: var(--dim);
  padding: 0.25rem 0;
  border-left: 2px solid var(--border);
  padding-left: 0.6rem;
  transition: all 0.3s;
}
.channel-strip__item--active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  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 {
  border-block: 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));
}
.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.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__label {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28ch;
  margin-inline: auto;
}

.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 55% 45% at 15% 25%, rgba(124, 92, 255, 0.08), transparent),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(255, 107, 74, 0.06), 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.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 1rem;
}

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

.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.section__intro { margin-bottom: 3.5rem; }

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

.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;
}

.chat-demo {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(124, 92, 255, 0.1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.chat-demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.chat-demo__messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-demo__msg {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-demo__msg--user {
  align-self: flex-end;
  background: var(--accent-dim);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: var(--text);
}
.chat-demo__msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}
.chat-demo__msg--typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}
.chat-demo__msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 1.2s ease infinite;
}
.chat-demo__msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-demo__msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.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: rgba(124, 92, 255, 0.35);
  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.1rem;
  margin: 0 0 0.75rem;
}
.panel p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.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.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 255, 0.22);
}

.wave-viz {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.wave-viz__bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
}
.wave-viz__bars span {
  width: 4px;
  height: 20%;
  background: linear-gradient(180deg, var(--hot), var(--accent));
  border-radius: 2px;
  animation: waveBar 1.2s ease-in-out infinite;
}
.wave-viz__bars span:nth-child(1) { animation-delay: 0s; }
.wave-viz__bars span:nth-child(2) { animation-delay: 0.08s; }
.wave-viz__bars span:nth-child(3) { animation-delay: 0.16s; }
.wave-viz__bars span:nth-child(4) { animation-delay: 0.24s; }
.wave-viz__bars span:nth-child(5) { animation-delay: 0.32s; }
.wave-viz__bars span:nth-child(6) { animation-delay: 0.4s; }
.wave-viz__bars span:nth-child(7) { animation-delay: 0.32s; }
.wave-viz__bars span:nth-child(8) { animation-delay: 0.24s; }
.wave-viz__bars span:nth-child(9) { animation-delay: 0.16s; }
.wave-viz__bars span:nth-child(10) { animation-delay: 0.08s; }
.wave-viz__bars span:nth-child(11) { animation-delay: 0.2s; }
.wave-viz__bars span:nth-child(12) { animation-delay: 0.28s; }
@keyframes waveBar {
  0%, 100% { height: 20%; opacity: 0.5; }
  50% { height: 100%; opacity: 1; }
}
.wave-viz__caption {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.dial-viz {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dial-viz__core {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--hot);
  box-shadow: 0 0 40px var(--hot-dim);
  color: var(--hot);
}
.dial-viz__ring {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  animation: spin 35s linear infinite;
}
.dial-viz__ring--1 { width: 55%; height: 55%; }
.dial-viz__ring--2 { width: 85%; height: 85%; animation-direction: reverse; animation-duration: 50s; border-style: dashed; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }

.dial-viz__nodes { position: absolute; inset: 0; }
.dial-viz__nodes span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.55rem;
  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.55s);
}
.dial-viz__nodes span:nth-child(1) { top: 4%; left: 50%; transform: translateX(-50%); }
.dial-viz__nodes span:nth-child(2) { top: 20%; right: 0; }
.dial-viz__nodes span:nth-child(3) { bottom: 20%; right: 2%; }
.dial-viz__nodes span:nth-child(4) { bottom: 4%; left: 50%; transform: translateX(-50%); }
.dial-viz__nodes span:nth-child(5) { bottom: 20%; left: 0; }
.dial-viz__nodes span:nth-child(6) { top: 20%; left: 2%; }
@keyframes nodePulse {
  0%, 100% { border-color: var(--border); color: var(--muted); }
  50% { border-color: var(--hot); color: var(--hot); }
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.integration {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.3s;
}
.integration:hover { border-color: rgba(124, 92, 255, 0.3); }
.integration h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.integration p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.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.74rem;
  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;
}

.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.68rem;
  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 auto;
  max-width: 52ch;
}

.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);
}

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

@media (max-width: 900px) {
  .section__split,
  .section__split--reverse .section__visual,
  .section__engage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section__split--reverse .section__visual { order: 0; }
  .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; }
  .telemetry, .channel-strip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line::after, .wave-viz__bars span, .dial-viz__ring,
  .dial-viz__nodes span, .chat-demo__msg--typing span { animation: none !important; }
}