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

:root {
  --bg:           #f8f7f4;
  --bg-card:      #ffffff;
  --bg-dark:      #1e3a5f;
  --border:       rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text:         #141210;
  --muted:        #605c57;
  --accent:       #1e3a5f;
  --accent-mid:   #2a5298;
  --reach:        #1e3a5f;
  --pulse:        #1a5c38;
  --radar:        #4a2c7a;
  --sans:         'DM Sans', system-ui, sans-serif;
  --serif:        'DM Serif Display', Georgia, serif;
}

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0e1117;
  --bg-card:      #161b24;
  --bg-dark:      #060a0f;
  --border:       rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text:         #e8e4de;
  --muted:        #8c8680;
  --accent:       #4a7ab5;
  --accent-mid:   #6b9fd4;
  --reach:        #5a8ec5;
  --pulse:        #3a9460;
  --radar:        #8a5cc5;
}

.logo-link .logo-dark              { display: none; }
[data-theme="dark"] .logo-link .logo-light { display: none; }
[data-theme="dark"] .logo-link .logo-dark  { display: block; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 500; }

/* ── Layout ────────────────────────────────────────────────── */
header, footer { padding-inline: clamp(1.5rem, 6vw, 5rem); }
main > section { padding-inline: clamp(1.5rem, 6vw, 5rem); }

/* ── Header ────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  display: block;
  height: 40px;
  width: auto;
}

/* Keep legacy .tld used in footer */
.tld { color: var(--accent-mid); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* Show sun in dark mode (click to go light), moon in light mode */
.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-book {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid rgba(30, 58, 95, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-book:hover { background: var(--accent); color: #fff; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem);
  max-width: 860px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1.75rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.9rem 2.25rem;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.button:hover { opacity: 0.88; transform: translateY(-1px); }

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-light {
  background: #ffffff;
  color: var(--accent);
}

/* ── Proof bar ─────────────────────────────────────────────── */
.proof-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 0;
  margin-bottom: clamp(5rem, 10vw, 8rem);
  background: var(--bg-card);
}

.proof-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
}

.proof-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.proof-number {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.proof-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Divisions section ─────────────────────────────────────── */
.divisions-section {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
}

.section-label.light {
  color: rgba(255,255,255,0.5);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.divisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.division {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top-width: 3px;
}

.reach  { border-top-color: var(--reach); }
.pulse  { border-top-color: var(--pulse); }
.radar  { border-top-color: var(--radar); }

.division-tag-row {
  margin-bottom: 0.25rem;
}

.division-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

.reach-badge { background: rgba(30,58,95,0.08);  color: var(--reach); }
.pulse-badge { background: rgba(26,92,56,0.08);  color: var(--pulse); }
.radar-badge { background: rgba(74,44,122,0.08); color: var(--radar); }

.division h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.division p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.division-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.division-features li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.division-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--border-strong);
  font-size: 0.75rem;
}

/* ── Differentiator ────────────────────────────────────────── */
.differentiator {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(5rem, 10vw, 8rem);
  margin-bottom: 0;
}

.diff-content {
  max-width: 640px;
}

.diff-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2rem;
  margin-top: 0.75rem;
}

.diff-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.diff-emphasis {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-block: 2rem !important;
}

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: var(--bg-dark);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.cta-inner {
  max-width: 640px;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: #f0ede8;
  margin-bottom: 1.25rem;
  margin-top: 0.75rem;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(240,237,232,0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-email {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(240,237,232,0.45);
}

.cta-email a {
  color: rgba(240,237,232,0.7);
  border-bottom: 1px solid rgba(240,237,232,0.2);
  transition: color 0.2s;
}
.cta-email a:hover { color: #f0ede8; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.footer-wordmark .tld { color: var(--muted); }

.footer-location {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-right a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .proof-bar {
    flex-direction: column;
  }
  .proof-divider {
    width: 100%;
    height: 1px;
  }
  .proof-item {
    padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
