/* StreamLux marketing site — streamlux.io */
:root {
  color-scheme: dark;
  --bg: #050409;
  --bg-elevated: #0c0a14;
  --surface: rgba(22, 14, 48, 0.72);
  --border: rgba(155, 92, 246, 0.22);
  --text: #f4f0ff;
  --muted: rgba(244, 240, 255, 0.72);
  --muted-dim: rgba(244, 240, 255, 0.5);
  --purple: #9b5cf6;
  --cyan: #0cf0f6;
  --gold: #e8c547;
  --gradient: linear-gradient(135deg, #9b5cf6 0%, #0cf0f6 100%);
  --gradient-gold: linear-gradient(135deg, #e8c547 0%, #f59e0b 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Background mesh */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(12, 240, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(232, 197, 71, 0.08), transparent 50%),
    var(--bg);
}

/* Typography */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark.lg { font-size: clamp(2rem, 5vw, 2.75rem); }
h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.6;
}
.muted { color: var(--muted); }
.accent-cyan { color: var(--cyan); }
.accent-gold { color: var(--gold); }

/* Layout */
.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 4, 9, 0.85);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .wordmark { font-size: 1.35rem; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-desktop a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(155, 92, 246, 0.15);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(8, 6, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(155, 92, 246, 0.18);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #0c0a1a;
  box-shadow: 0 8px 32px rgba(155, 92, 246, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-gold {
  background: var(--gradient-gold);
  color: #1a1206;
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(12, 240, 246, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin-inline: auto; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: rgba(155, 92, 246, 0.2);
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Screenshot gallery */
.screenshots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.screenshot-item {
  scroll-snap-align: start;
  min-width: 0;
}
.screenshot-item img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.screenshot-item:hover img { transform: scale(1.02); }
.screenshot-item figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted-dim);
  text-align: center;
}
@media (max-width: 1000px) {
  .screenshots {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.feature-row.reverse .feature-img { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-img img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-img,
  .feature-row.reverse .feature-copy { order: unset; }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(155, 92, 246, 0.08);
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.9rem; color: var(--muted); }

/* Coming soon banner */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(232, 197, 71, 0.12);
  border: 1px solid rgba(232, 197, 71, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Contact */
.contact-card {
  max-width: 32rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-email {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
}
.contact-email a { color: inherit; }

/* Page header */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  text-align: center;
}
.page-hero .lead { margin-inline: auto; }

/* Prose */
.prose { max-width: 42rem; }
.prose p { color: var(--muted); margin: 0 0 1.1rem; }
.prose ul {
  color: var(--muted);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}
.prose li { margin-bottom: 0.45rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}
.prose ol {
  color: var(--muted);
  padding-left: 1.35rem;
  margin: 0 0 1.25rem;
}
.prose ol li { margin-bottom: 0.45rem; }
.prose a { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* Legal documents */
.legal-doc {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.legal-updated {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 92, 246, 0.2), transparent 60%),
    var(--surface);
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid p { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  margin: 0 0 0.75rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-dim);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
