:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #181824;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-bright: #60a5fa;
  --green: #22c55e;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1120px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.logo-loop {
  color: var(--accent);
  font-size: 26px;
  margin-right: 4px;
}
.nav-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  padding: 100px 32px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Flow diagram */
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.flow-node {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 220px;
}
.flow-node-input {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-bright);
}
.flow-node-ai {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}
.flow-node-output {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg-muted);
  font-size: 13px;
  max-width: 160px;
}
.flow-arrow, .flow-arrow-split {
  color: var(--fg-muted);
  font-size: 20px;
  line-height: 1;
}
.flow-arrow-split {
  display: flex;
  gap: 80px;
}
.flow-row {
  display: flex;
  gap: 16px;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 80px 32px;
  background: var(--bg-elevated);
}
.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.problem h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 48px;
  line-height: 1.15;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.problem-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.problem-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- SERVICES ---- */
.services {
  padding: 100px 32px;
}
.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.services-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-item {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.service-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
}
.service-icon {
  font-size: 28px;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
}
.service-item h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.service-item p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- HOW ---- */
.how {
  padding: 100px 32px;
  background: var(--bg-elevated);
}
.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.how-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: start;
}
.how-step:last-child {
  border-bottom: none;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: rgba(59, 130, 246, 0.25);
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.step-content p {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 560px;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 32px;
  text-align: center;
}
.closing-inner {
  max-width: 780px;
  margin: 0 auto;
}
.closing h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.closing-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}
.closing-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 220px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-email {
  font-size: 14px;
  color: var(--accent);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .hero {
    padding: 64px 20px 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .how-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .step-num {
    font-size: 36px;
  }
  .closing-stats {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .nav-tagline {
    display: none;
  }
  .flow-arrow-split {
    gap: 40px;
  }
  .problem, .services, .how, .closing {
    padding: 64px 20px;
  }
}