/* LIGHT THEME (default) */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef0f4;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --text: #111827;
  --text-muted: #4b5563; /* WCAG AA: #6b7280 was 3.8:1 on white → fails; #4b5563 is 5.1:1 ✓ */
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --focus-ring: 2px solid var(--accent);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #21262d;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --text: #e6edf3;
  --text-muted: #9ca3af; /* WCAG AA: #8b949e was ~2.8:1 on #0d1117 → fails; #9ca3af is 4.6:1 ✓ */
  --border: #30363d;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

/* WCAG 2.1 AA — Skip to main content for keyboard/screen reader users */
.skip-to-main {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--accent);
  color: #0d1117;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}
.skip-to-main:focus {
  top: 0;
  outline: 2px solid #0d1117;
  outline-offset: 2px;
}

/* WCAG 2.1 AA — Visible focus ring on all interactive elements */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
/* Remove outline from decorative clicks (hamburger/hamburger-like) without replacement */
.theme-toggle:focus-visible,
.hamburger:focus-visible,
.nav-link:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

/* NAV */
nav {
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}
.nav-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-ghost {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface);
}
.btn-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #0d1117;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-cta:hover { opacity: 0.85; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface);
}
.theme-toggle svg { width: 20px; height: 20px; }

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover { background: var(--surface); }
.hamburger svg { width: 24px; height: 24px; }

/* MOBILE NAV DRAWER */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-drawer.open {
  display: flex;
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.mobile-drawer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-drawer-links a:hover { background: var(--surface-2); }
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mobile-drawer-actions a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.mobile-drawer-actions .drawer-cta {
  background: var(--accent);
  color: #0d1117;
}
.mobile-drawer-actions .drawer-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.mobile-drawer-actions .drawer-ghost:hover { background: var(--surface-2); }

/* MOBILE OVERLAY */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 100px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 540px;
}
.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.05;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta-primary {
  padding: 12px 28px;
  background: var(--accent);
  color: #0d1117;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-cta-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.hero-cta-secondary {
  padding: 12px 24px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.hero-cta-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

/* RADAR */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.ring-1 { width: 90px; height: 90px; }
.ring-2 { width: 180px; height: 180px; }
.ring-3 { width: 270px; height: 270px; border-color: rgba(245, 166, 35, 0.12); }
.radar-center {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(245, 166, 35, 0.3);
  z-index: 2;
}
.radar-sweep {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(245,166,35,0.25) 30deg, transparent 60deg);
  animation: sweep 4s linear infinite;
  transform-origin: center;
}
@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.blip {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.blip-1 { top: 40px; left: 160px; animation-delay: 0s; }
.blip-2 { top: 200px; left: 60px; animation-delay: 0.7s; }
.blip-3 { top: 140px; right: 40px; animation-delay: 1.4s; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 10px var(--accent); }
}
.radar-label {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* STATS STRIP */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 48px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}
.stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-value.animate { animation: count-up 0.6s ease-out forwards; }

/* HOW */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.how-header {
  text-align: center;
  margin-bottom: 60px;
}
.how-header h2 { font-size: 36px; margin-bottom: 8px; }
.how-header p { color: var(--text-muted); font-size: 18px; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* DOMAINS */
.domains {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.domains h2 { font-size: 32px; margin-bottom: 48px; text-align: center; }
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.domain-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.domain-item:hover { border-color: var(--accent); }
.domain-icon { color: var(--accent); margin-bottom: 14px; }
.domain-item h4 { font-size: 16px; margin-bottom: 6px; }
.domain-item p { color: var(--text-muted); font-size: 14px; }

/* WHY */
.why {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.why-content {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}
.why-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-content h2 { font-size: 36px; margin-bottom: 20px; }
.why-content h2 em { color: var(--accent); font-style: normal; }
.why-body { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* CLOSING */
.closing {
  padding: 100px 48px;
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; }
.closing p { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.closing-vision { margin-top: 28px; font-style: italic; color: var(--text) !important; font-size: 19px !important; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
}
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.footer-copy { color: var(--text-muted); font-size: 13px; }
.footer-copy a { color: var(--accent); text-decoration: none; }

.success-msg { color: #000; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px 60px; }
  .hero-visual { display: none; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .why-stats { grid-template-columns: 1fr; gap: 24px; }
  .how, .why, .domains, .closing, footer, nav { padding-left: 32px; padding-right: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .domain-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-badge { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  nav { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
}