:root {
  --bg: #050810;
  --bg-soft: #0c1222;
  --fg: #ffffff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.06);
  --accent-a: #38bdf8;
  --accent-b: #34d399;
  --accent-c: #22d3ee;
  --stream-glow: rgba(56, 189, 248, 0.5);
}

* { box-sizing: border-box; }

img {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

/* Data Stream Background Animation */
.data-stream-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.data-stream-bg::before {
  display: none;
}

.stream-particle {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-a), transparent);
  filter: blur(1px);
  animation: stream-down linear infinite;
  opacity: 0.15;
}

@keyframes stream-down {
  from { transform: translateY(-100px); }
  to { transform: translateY(110vh); }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: 
    rgba(0, 0, 0, 0.45),
    radial-gradient(circle at 50% 50%, rgba(5, 8, 16, 0.2) 0%, rgba(5, 8, 16, 0.9) 100%),
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(52, 211, 153, 0.15) 0%, transparent 50%);
}

.shell {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img { 
  height: 40px; 
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4)) brightness(1.2);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav a:hover, .nav a.active {
  color: var(--accent-a);
  text-shadow: 0 0 15px var(--stream-glow);
}

.mini-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.mini-cta:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 0 88px;
}

.page-hero {
  min-height: 60vh;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-a);
  font-weight: 800;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s forwards 0.2s;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(to bottom, var(--fg), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fade-up 0.8s forwards 0.4s;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

.lead {
  max-width: 600px;
  margin: 32px auto;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  opacity: 0;
  animation: fade-up 0.8s forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.8s forwards 0.8s;
}

.btn {
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-a);
}

/* The Stream Layout */
.stream-section {
  position: relative;
  padding: 120px 0;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-intro p:last-child {
  margin: 20px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.stream-path {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.stream-node {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 100px;
}

.stream-node:nth-child(even) {
  justify-content: flex-start;
}

.node-content {
  width: 45%;
  background: rgba(12, 18, 34, 0.6);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 32px;
  backdrop-filter: blur(20px);
  position: relative;
  transition: transform 0.5s, border-color 0.5s, box-shadow 0.5s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.node-content:hover {
  border-color: var(--accent-a);
  transform: translateY(-5px);
}

.node-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-a);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-a);
  transform: translateY(-50%);
}

.stream-node:nth-child(odd) .node-dot { left: calc(-5% - 6px); }
.stream-node:nth-child(even) .node-dot { right: calc(-5% - 6px); }

.node-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.node-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 16px 0;
}

.node-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.node-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.node-features li {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Stats Section */
.summary-stream {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: rgba(12, 18, 34, 0.4);
  backdrop-filter: blur(15px);
  margin-top: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-item h4 {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(to right, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: rgba(12, 18, 34, 0.6);
  backdrop-filter: blur(20px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    padding: 16px 18px;
  }
  .brand img {
    height: 34px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    margin-left: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 8, 16, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav a {
    display: block;
    width: 100%;
    font-size: 1rem;
  }
  .mini-cta {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .topbar {
    padding: 14px 16px;
  }
  .hero,
  .page-hero {
    min-height: auto;
    padding: 24px 0 56px;
  }
  .eyebrow {
    letter-spacing: 0.28em;
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
    line-height: 1.02;
  }
  .lead {
    margin: 24px auto;
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .stream-section {
    padding: 80px 0;
  }
  .section-intro {
    margin-bottom: 42px;
  }
  .stream-path {
    left: 18px;
    transform: none;
  }
  .stream-node {
    justify-content: flex-start !important;
    margin-bottom: 48px;
    padding-left: 48px;
  }
  .node-content {
    width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
  }
  .node-dot {
    left: -30px !important;
    right: auto !important;
  }
  .node-content h3 {
    font-size: 1.45rem;
  }
  .summary-stream {
    padding: 72px 0;
    margin-top: 32px;
  }
  .stats-grid {
    gap: 24px;
    margin-top: 36px;
  }
  .stat-item p {
    letter-spacing: 0.03em;
    text-transform: none;
  }
  .footer {
    padding: 56px 0 32px;
  }
  .footer-info {
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .topbar {
    padding: 18px 24px;
  }
  .nav-panel {
    left: 24px;
    right: 24px;
  }
  .hero,
  .page-hero {
    min-height: auto;
    padding: 40px 0 64px;
  }
  h1 {
    font-size: clamp(2.4rem, 8vw, 4.25rem);
  }
  .stream-node {
    margin-bottom: 72px;
  }
  .stream-path {
    left: 24px;
    transform: none;
  }
  .stream-node {
    justify-content: flex-start !important;
    padding-left: 60px;
  }
  .node-content {
    width: 100%;
    padding: 32px;
  }
  .node-dot { left: -42px !important; right: auto !important; }
  .footer-info { gap: 18px 32px; }
}
