/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F0F4FB;
  --bg-subtle: #F8FAFC;

  --blue: #2A3F77;
  --blue-hover: #1E2F5C;
  --blue-dim: rgba(42,63,119,0.08);
  --blue-light: rgba(42,63,119,0.14);

  --text: #1A1A2E;
  --text-body: #333333;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);

  --red: #6B1A1A;
  --red-dim: rgba(107,26,26,0.07);
  --green: #059669;
  --green-dim: rgba(5,150,105,0.07);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max-w: 1160px;
  --section-gap: clamp(56px, 7vw, 100px);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
ul { list-style: none; }

/* ─── UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section { padding: var(--section-gap) 0; }
.section--dark {
  background: var(--bg-alt);
  position: relative;
}
/* First block after hero — overlaps the darkened hero bottom with rounded top corners */
#pain.section--dark {
  background: transparent;
  margin-top: -70px;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 10;
}
#pain.section--dark::before {
  content: '';
  position: absolute;
  top: 69px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #020129 0%, #020129 25%, rgba(2,1,41,0.15) 60%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}
#pain.section--dark .container {
  background: #FFFFFF;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.08);
  padding-top: calc(var(--section-gap) * 0.7);
  padding-bottom: calc(var(--section-gap) * 0.7);
  max-width: 100%;
  width: calc(100% - clamp(24px, 4vw, 64px));
  margin: 0 auto;
}
@media (max-width: 700px) {
  #pain.section--dark { margin-top: -48px; }
  #pain.section--dark::before { top: 47px; }
  #pain.section--dark .container { border-radius: 28px 28px 0 0; width: calc(100% - 16px); }
}
.section--surface {
  background: var(--bg);
  position: relative;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.4;
}
.section-eyebrow .eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--blue);
}
.section-body {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Highlight text */
.highlight {
  color: #2A3F77;
  font-weight: 700;
  background: rgba(221, 229, 244, 0.5);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease-out-expo);
  position: relative;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(42,63,119,0.25);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 28px rgba(42,63,119,0.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

