/* ─── Theme Tokens ───────────────────────────────────────── */
/* Default = dark mode */
:root {
  --bg:            #111111;
  --bg-subtle:     #1a1a1a;
  --bg-card:       #222222;
  --border:        #2a2a2a;
  --text:          #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.5);

  --orange:        #ea580c;
  --orange-dark:   #9a3412;
  --orange-mid:    #c2410c;
  --orange-light:  rgba(234, 88, 12, 0.12);
  --orange-border: rgba(234, 88, 12, 0.3);

  /* Static — use where white/black is always intentional */
  --white:         #ffffff;
  --black:         #111111;

  --max-width:     1100px;
  --section-pad:   80px 24px;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg:            #ffffff;
  --bg-subtle:     #f3f4f6;
  --bg-card:       #ffffff;
  --border:        #e5e7eb;
  --text:          #111111;
  --text-muted:    #5e6778; /* darkened from #6b7280 to clear WCAG AA 4.5:1 on white */
  --orange-light:  #fff7ed;
  --orange-border: #fed7aa;
}

/* ─── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  overflow: visible;
  text-decoration: none;
}

/* ─── Body scroll lock (mobile menu open) ────────────────── */
body.menu-open { overflow: hidden; }

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}
.btn:hover { opacity: 0.88; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary-large {
  background: var(--orange);
  color: var(--white);
  padding: 16px 36px;
  font-size: 17px;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 8px;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); opacity: 1; }

/* ─── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}

/* ─── Nav links (shared) ─────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }
.nav-link--active { color: var(--orange) !important; }
.nav-link:focus-visible { outline: none; color: var(--orange); }

/* ─── Hamburger ──────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.nav-hamburger:hover { border-color: var(--orange); color: var(--orange); }
.nav-hamburger:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }

.nav-hamburger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open { display: flex; }

  .nav-link {
    padding: 11px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav-link:last-child { border-bottom: none; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 28px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-link:hover { color: var(--text); }
