/* ── Design tokens, pulled from the Run42 app's constants/theme.ts ──────── */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;

  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);

  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-inner.narrow {
  max-width: 720px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 18px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  transition: border-color 0.15s ease;
}

.nav-cta:hover {
  border-color: var(--primary-light);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-secondary) 55%, var(--primary-dark) 160%);
  padding: var(--space-xxl) var(--space-lg) calc(var(--space-xxl) * 1.4);
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
}

.btn-large {
  font-size: 18px;
  padding: 16px 36px;
}

/* ── Problem section ─────────────────────────────────────────────────── */
.problem {
  padding: var(--space-xxl) 0;
  text-align: center;
}

.problem h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.problem p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.problem-punch {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 19px !important;
  margin-top: var(--space-lg);
}

/* ── Section headings (shared) ───────────────────────────────────────── */
.usps h2,
.how-it-works h2,
.features h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.usps {
  padding: var(--space-xxl) 0;
  background: var(--bg-secondary);
}

/* ── Card grid ────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.card-icon-1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.card-icon-2 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.card-icon-3 { background: linear-gradient(135deg, #10b981, #34d399); }
.card-icon-4 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card p em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* ── How it works ─────────────────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-xxl) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Features ─────────────────────────────────────────────────────────── */
.features {
  padding: var(--space-xxl) 0;
  background: var(--bg-secondary);
}

.features-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
}

.feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-top: 8px;
}

.feature h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final-cta {
  padding: var(--space-xxl) 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: var(--space-xl);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: var(--space-xs);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text-secondary);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .problem h2,
  .usps h2,
  .how-it-works h2,
  .features h2,
  .final-cta h2 {
    font-size: 26px;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    font-size: 13px;
    padding: 6px 12px;
  }
}
