/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg-base:        #080c1a;
  --bg-section-alt: #0d1228;
  --bg-card:        #111828;
  --accent-violet:  #7c3aed;
  --accent-blue:    #3b82f6;
  --accent-glow:    rgba(124, 58, 237, 0.22);
  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border-subtle:  rgba(148, 163, 184, 0.08);
  --border-accent:  rgba(124, 58, 237, 0.3);
  --radius:         12px;
  --radius-sm:      8px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

p {
  line-height: 1.7;
}

a {
  color: var(--accent-violet);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.center {
  text-align: center;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-section-alt);
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo:hover {
  text-decoration: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-violet) 0%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 36px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-ghost:hover {
  background: var(--accent-glow);
  color: var(--text-primary);
}

/* ── Labels / eyebrows ──────────────────────────────────────── */
.section-label,
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.85rem;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(124, 58, 237, 0.16) 0%,
    transparent 65%);
  pointer-events: none;
}

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

.hero h1 {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 860px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Section lead ───────────────────────────────────────────── */
.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── Problem cards ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ── Flow diagram ───────────────────────────────────────────── */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.flow-step.highlight {
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.28) 0%,
    rgba(59, 130, 246, 0.22) 100%);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  user-select: none;
}

/* ── Formats grid ───────────────────────────────────────────── */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.format-item:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.format-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 2.5rem;
  max-width: 700px;
}

.step {
  display: flex;
  gap: 1.75rem;
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-violet);
  opacity: 0.45;
  line-height: 1.1;
  flex-shrink: 0;
  width: 44px;
  text-align: right;
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(
    180deg,
    var(--bg-base) 0%,
    rgba(124, 58, 237, 0.07) 50%,
    var(--bg-base) 100%
  );
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.contact-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.contact-email a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero h1 br {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .flow-diagram {
    gap: 0.4rem;
  }

  .flow-step {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .step {
    gap: 1.1rem;
  }

  .step-num {
    font-size: 1.5rem;
    width: 32px;
  }

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