:root {
  --bg-deep: #0B1426;
  --bg-card: #111D33;
  --bg-surface: #162240;
  --fg: #E8ECF2;
  --fg-muted: #8896AB;
  --fg-dim: #5A6B82;
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --accent-soft: #FCD34D;
  --success: #10B981;
  --danger: #EF4444;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ===== NAV ===== */
.nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span {
  color: var(--accent);
}
.nav-tag {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-text .lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat {
  text-align: left;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dashboard mockup */
.hero-dashboard {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dash-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--success);
}
.dash-live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.dash-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-metric {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 1rem;
}
.dash-metric-label {
  font-size: 0.7rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.dash-metric-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}
.dash-metric-value.green { color: var(--success); }
.dash-metric-value.amber { color: var(--accent); }
.dash-feed {
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 1rem;
}
.dash-feed-title {
  font-size: 0.7rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-dot.booked { background: var(--success); }
.feed-dot.invoiced { background: var(--accent); }
.feed-dot.followed { background: #8B5CF6; }
.feed-text {
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.feed-text strong {
  color: var(--fg);
  font-weight: 500;
}
.feed-time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--fg-dim);
  flex-shrink: 0;
}

/* ===== PAIN SECTION ===== */
.pain {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pain-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.pain-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.pain-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.pain-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}
.pain-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.pain-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pain-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.how-header {
  text-align: center;
  margin-bottom: 3rem;
}
.how-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-glow) 100%);
}
.how-step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 3rem;
  height: 3rem;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.how-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.how-step p {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ===== VERTICALS ===== */
.verticals {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.verticals-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.verticals-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.verticals-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.vertical-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.vertical-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,0.2);
}
.vertical-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.vertical-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== ECONOMICS ===== */
.economics {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.economics .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.economics-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.economics-text p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.econ-compare {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.econ-row {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.econ-row.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(245,158,11,0.05));
}
.econ-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.econ-label strong {
  color: var(--fg);
  font-weight: 600;
}
.econ-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}
.econ-price.red { color: var(--danger); }
.econ-price.green { color: var(--success); }

/* ===== CLOSING ===== */
.closing {
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.closing h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}
.closing h2 em {
  font-style: normal;
  color: var(--accent);
}
.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}
.footer p {
  color: var(--fg-dim);
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-dashboard {
    order: -1;
  }
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .how-steps::before {
    display: none;
  }
  .economics .container {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
  .dash-row {
    flex-direction: column;
  }
}