/* ============================================================
   Synthloom — Marketing Site Stylesheet
   Palette: Near-black / off-white / electric indigo accent
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09090b;
  --surface: #111115;
  --surface-alt: #0f0f12;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e4e4e7;
  --muted: #71717a;
  --accent: #7c6ff7;
  --accent-light: #a89af9;
  --accent-glow: rgba(124, 111, 247, 0.18);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;

  --section-py: 120px;
  --max-w: 1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 36px rgba(168, 154, 249, 0.3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.btn--nav {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 8px 18px;
  font-size: 13px;
}

.btn--nav:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--large {
  font-size: 16px;
  padding: 14px 32px;
}

/* ── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── DOCS BANNER ─────────────────────────────────────────── */

.docs-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,111,247,0.06) 0%, transparent 60%);
}

.docs-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.docs-banner-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.docs-banner-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.docs-banner-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin: 0;
}

/* ── FOOTER LINKS ────────────────────────────────────────── */

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Fine dot-grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(124, 111, 247, 0.3);
  background: rgba(124, 111, 247, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  color: #fff;
  max-width: 820px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent-light);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 72px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  padding: 24px 40px;
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────── */

.section {
  padding: var(--section-py) 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--alt {
  max-width: 100%;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-py) 32px;
}

.section--alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  color: #fff;
  max-width: 640px;
  margin-bottom: 64px;
}

/* ── FEATURES GRID ───────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── PLATFORM GRID ───────────────────────────────────────── */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.platform-block {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.platform-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── PIPELINE ────────────────────────────────────────────── */

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-step {
  flex: 1;
  min-width: 148px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}

.pipeline-step:hover {
  border-color: rgba(124, 111, 247, 0.4);
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pipeline-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-size: 18px;
  margin-top: 34px;
}

/* ── CTA SECTION ─────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: var(--section-py) 32px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .hero-stat-row {
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    flex-direction: column;
    gap: 8px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    margin-top: 0;
    padding: 4px 0;
  }

  .pipeline-step {
    min-width: unset;
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── SCROLL-IN ANIMATION ─────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
