/* StreamScreen brand — enterprise / serious */
:root {
  --navy: #0f2c59;
  --navy-deep: #0b2248;
  --surface: #0a1628;
  --surface-2: #0d1c32;
  --surface-3: #12243f;
  --teal: #00a8a8;
  --teal-dark: #008f8f;
  --teal-muted: #3d9e9e;
  --gray: #94a3b8;
  --gray-muted: #7b8ba3;
  --text: #e8eef7;
  --text-dim: #a8b6cc;
  --white: #ffffff;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.22);
  --radius: 6px;
  --radius-sm: 4px;
  --max: 1040px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: #5fd4d4;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .btn {
  margin-left: 0.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1rem;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-3);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(232, 238, 247, 0.22);
}

.btn-ghost:hover {
  background: rgba(232, 238, 247, 0.06);
  color: var(--white);
  border-color: rgba(232, 238, 247, 0.38);
}

/* Hero — denser, darker */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 168, 168, 0.05), transparent 42%),
    linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 48%, var(--navy-deep) 100%);
  color: var(--text);
  padding: 3.25rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 168, 0.1);
  border: 1px solid rgba(0, 168, 168, 0.28);
  color: #7fdada;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--white);
  max-width: 18ch;
}

.hero p.lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 36rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.hero-actions .btn-primary {
  min-width: 9.5rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.trust-row li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.55rem;
}

.trust-row li:not(:last-child)::after {
  content: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  color: rgba(168, 182, 204, 0.75);
  font-size: 0.8rem;
}

.hero-meta a {
  color: #7fdada;
}

.hero-meta a:hover {
  color: var(--white);
}

.hero-card {
  background: rgba(18, 36, 63, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.hero-card img.logo-hero {
  width: min(100%, 220px);
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  opacity: 0.96;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat {
  text-align: center;
  padding: 0.7rem 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 0.84rem;
  color: #7fdada;
  letter-spacing: -0.015em;
  margin-bottom: 0.12rem;
}

.stat span {
  font-size: 0.7rem;
  color: var(--gray-muted);
  line-height: 1.3;
}

/* Sections */
section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.features {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.feature {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.feature:hover {
  border-color: rgba(0, 168, 168, 0.35);
  background: #152846;
}

.feature .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(0, 168, 168, 0.12);
  color: var(--teal);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.feature h3 {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--white);
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* How it works */
.how {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.05rem;
  box-shadow: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  border: 1px solid rgba(0, 168, 168, 0.35);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
  color: var(--white);
}

.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 58%, #0a4545);
  color: var(--white);
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.cta p {
  margin: 0;
  color: rgba(232, 238, 247, 0.78);
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cta .btn-primary {
  background: var(--teal);
}

.cta .btn-primary:hover {
  background: var(--teal-dark);
}

/* Footer */
.site-footer {
  background: #070f1a;
  color: rgba(168, 182, 204, 0.78);
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
}

.footer-brand img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.05rem;
}

.footer-links a {
  color: rgba(168, 182, 204, 0.78);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #7fdada;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.55);
}

/* Mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.75rem 0 2.9rem;
  }

  .hero h1 {
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.3rem);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    margin-left: 0;
    width: 100%;
  }

  .nav {
    position: relative;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2.75rem 0;
  }
}
