/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LIGHT MODE (default) ── */
:root {
  --bg-0:         #f8f9fb;
  --bg-1:         #ffffff;
  --bg-2:         #f1f4f8;
  --bg-3:         #e8edf4;
  --bg-card:      rgba(255, 255, 255, 0.92);
  --saffron:      #e8650a;
  --saffron-lt:   #f97316;
  --saffron-glow: rgba(232, 101, 10, 0.12);
  --gold:         #b07d0a;
  --gold-lt:      #d4960e;
  --green:        #16a34a;
  --green-dk:     #15803d;
  --green-glow:   rgba(22, 163, 74, 0.1);
  --text-1:       #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --text-saffron: #e8650a;
  --border-1:     rgba(15, 23, 42, 0.09);
  --border-2:     rgba(232, 101, 10, 0.22);
  --border-hover: rgba(232, 101, 10, 0.5);
  --r-sm:         6px;
  --r-md:         10px;
  --r-lg:         16px;
  --r-xl:         24px;
  --shadow-card:  0 1px 4px rgba(15,23,42,0.08), 0 0 0 1px rgba(15,23,42,0.05);
  --shadow-glow:  0 0 40px rgba(232,101,10,0.07);
  --nav-bg:       rgba(255,255,255,0.88);
  --nav-bg-scrolled: rgba(255,255,255,0.98);
}

/* ── DARK MODE ── */
html.dark {
  --bg-0:         #0a0c10;
  --bg-1:         #10141c;
  --bg-2:         #151b26;
  --bg-3:         #1a2130;
  --bg-card:      rgba(21, 27, 38, 0.85);
  --saffron:      #f97316;
  --saffron-lt:   #fb923c;
  --saffron-glow: rgba(249, 115, 22, 0.18);
  --gold:         #e6a817;
  --gold-lt:      #fbbf24;
  --green:        #22c55e;
  --green-dk:     #16a34a;
  --green-glow:   rgba(34, 197, 94, 0.14);
  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #475569;
  --text-saffron: #f97316;
  --border-1:     rgba(248, 248, 248, 0.07);
  --border-2:     rgba(249, 115, 22, 0.2);
  --border-hover: rgba(249, 115, 22, 0.5);
  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-glow:  0 0 40px rgba(249,115,22,0.08);
  --nav-bg:       rgba(10, 12, 16, 0.82);
  --nav-bg-scrolled: rgba(10, 12, 16, 0.97);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--saffron); }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 64px);
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-1);
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled { background: var(--nav-bg-scrolled); border-bottom-color: rgba(232, 101, 10, 0.15); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: relative;
  width: 52px; height: 28px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 3px;
}
.theme-toggle:hover { border-color: var(--border-2); }
.theme-toggle-knob {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.3s;
  user-select: none;
  pointer-events: none;
}
html.dark .theme-toggle { background: var(--bg-3); }
html.dark .theme-toggle-knob {
  transform: translateX(24px);
  background: #1a2130;
}
.theme-toggle-track {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; pointer-events: none;
  font-size: 10px; opacity: 0.5;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
/* White tile: the logo's saffron/green swoosh disappears on an orange ground
   (~1.2:1), and the navy mark disappears on the dark nav with no tile (~1.45:1). */
.nav-emblem {
  width: 34px; height: 34px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
  overflow: hidden;
}
html.dark .nav-emblem { border-color: rgba(255,255,255,0.12); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.nav-emblem img { width: 26px; height: 26px; object-fit: contain; display: block; }
.nav-name { display: flex; flex-direction: column; line-height: 1.1; }
.nav-name .primary { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text-1); letter-spacing: 0.02em; }
.nav-name .secondary { font-size: 0.6rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 16px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  letter-spacing: 0.03em; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); background: rgba(255,255,255,0.05); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-tag { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 500; color: var(--text-3); border: 1px solid var(--border-1); border-radius: 99px; padding: 4px 12px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); } }

.nav-cta {
  font-size: 0.75rem; font-weight: 600; padding: 7px 18px; border-radius: var(--r-sm);
  background: var(--saffron); color: #fff; text-decoration: none; letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(249,115,22,0.25);
}
.nav-cta:hover { background: var(--saffron-lt); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249,115,22,0.35); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--r-sm); }
.hamburger span { display: block; height: 1.5px; border-radius: 2px; background: var(--text-2); transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 12, 16, 0.98); backdrop-filter: blur(20px);
  z-index: 999; padding: 28px clamp(16px, 4vw, 40px);
  flex-direction: column; gap: 0;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-nav-links { list-style: none; border-top: 1px solid var(--border-1); }
.mobile-nav-links a { display: block; padding: 18px 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text-1); text-decoration: none; border-bottom: 1px solid var(--border-1); transition: color 0.2s, padding-left 0.2s; }
.mobile-nav-links a:hover { color: var(--saffron); padding-left: 10px; }
.mobile-cta-wrap { padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.mobile-cta-wrap .nav-cta { text-align: center; padding: 14px; font-size: 0.85rem; }

/* ═══════════ SHARED TYPOGRAPHY ═══════════ */
.section-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron); margin-bottom: 10px; }
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
h1 .accent { color: var(--saffron); }
h1 .muted { color: var(--text-2); }
h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-lead { font-size: 0.95rem; line-height: 1.8; color: var(--text-2); max-width: 520px; font-weight: 400; margin-bottom: 48px; }

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: #fff;
  padding: 13px 28px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--saffron), #ea580c);
  box-shadow: 0 4px 20px rgba(249,115,22,0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--text-1);
  padding: 13px 28px; border-radius: var(--r-md); border: 1px solid var(--border-1);
  background: rgba(255,255,255,0.03); transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--border-2); background: rgba(249,115,22,0.05); transform: translateY(-2px); }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--bg-1); border-top: 1px solid var(--border-1); padding: 64px clamp(16px, 5vw, 80px) 28px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.8rem; line-height: 1.75; color: var(--text-3); max-width: 260px; }
.footer-tricolor { display: flex; height: 3px; border-radius: 99px; overflow: hidden; margin-top: 18px; max-width: 120px; }
.footer-tricolor span { flex: 1; }
.tc-s { background: #FF9933; } .tc-w { background: rgba(255,255,255,0.6); } .tc-g { background: #138808; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-1); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.78rem; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid var(--border-1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.72rem; color: var(--text-3); }
.footer-legal { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--saffron); }

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ═══════════ SIMPLE CONTENT PAGES (privacy/terms/about/contact) ═══════════ */
.page-hero { padding: calc(64px + 64px) clamp(16px, 5vw, 80px) 48px; max-width: 820px; }
.page-content { padding: 0 clamp(16px, 5vw, 80px) 96px; max-width: 820px; }
.page-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px; color: var(--text-1); }
.page-content p { font-size: 0.9rem; line-height: 1.85; color: var(--text-2); margin-bottom: 14px; }
.page-content ul { margin: 0 0 14px 20px; color: var(--text-2); font-size: 0.9rem; line-height: 1.85; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--saffron); }
.page-meta { font-size: 0.75rem; color: var(--text-3); margin-bottom: 8px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; color: #fff;
  padding: 13px 28px; border-radius: var(--r-md); margin-top: 8px;
  background: linear-gradient(135deg, var(--saffron), #ea580c);
  box-shadow: 0 4px 20px rgba(249,115,22,0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.contact-email:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.4); }

/* ═══════════ RESPONSIVE (shared chrome) ═══════════ */
@media (max-width: 860px) {
  .nav-links, .nav-tag, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }
}
@media (max-width: 560px) {
  h1 { font-size: 2.2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
