:root {
  --primary-purple: #6B21A8;
  --accent-purple: #9333EA;
  --black: #0A0A0A;
  --white: #F5F5F5;
  --dark-bg: #1a1a2e;
  --card-bg: #2d2d47;

  --bg: var(--black);
  --bg-elevated: #1a1a2e;
  --bg-card: #2d2d47;
  --fg: var(--white);
  --fg-muted: #a0a0b0;
  --accent: var(--primary-purple);
  --accent-light: var(--accent-purple);
  --border: rgba(147,51,234,0.12);
  --glow: rgba(107,33,168,0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(107, 33, 168, 0.2);
}

.navbar-text {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ========== HERO ========== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin-bottom: 3.5rem;
}

/* Flow diagram */
.hero-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-node {
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.flow-node.source {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

.flow-node.engine {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
  color: var(--white);
  box-shadow: 0 0 30px var(--glow);
  font-weight: 600;
}

.flow-node.dest {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.flow-node.dest span {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.flow-arrow {
  display: flex;
  align-items: center;
}

/* ========== PROBLEM ========== */
.problem {
  padding: 6rem 1.5rem;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 960px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.problem-punchline {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  max-width: 640px;
  margin: 0 auto;
}

/* ========== HOW ========== */
.how {
  padding: 6rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.step {
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--accent);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(107,33,168,0.2);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ========== VERTICALS ========== */
.verticals {
  padding: 6rem 1.5rem;
  background: var(--bg-elevated);
}

.verticals h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 3rem;
}

.vert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.vert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.2s;
}

.vert-card:hover {
  transform: translateY(-4px);
}

.vert-icon {
  margin-bottom: 1.2rem;
}

.vert-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.vert-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ========== CLOSING ========== */
.closing {
  padding: 8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========== BUTTONS & INTERACTIVE ========== */
button, a.btn, .btn {
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary, button:not(.btn-secondary) {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107, 33, 168, 0.25);
}

.btn-primary:hover, button:not(.btn-secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107, 33, 168, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

/* ========== MOBILE ========== */
@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding: 3rem 1.25rem;
  }

  .hero-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-node.dest {
    flex-wrap: wrap;
    justify-content: center;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .vert-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .closing {
    padding: 5rem 1.25rem;
  }

  .navbar-text {
    display: none;
  }

  .navbar-logo {
    height: 32px;
  }
}