/* ─── TOKENS ─────────────────────────────── */
:root {
  --bg: #F5F5F5;
  --card-bg: #FFFFFF;
  --text: #0D0D0D;
  --text-muted: #6E6E6E;
  --accent: #0A369D;
  --border: #DCDCDC;
  --btn-bg: #0D0D0D;
  --btn-text: #FFFFFF;
  --chip-bg: #E2E6F2;
  --chip-text: #0A369D;
  --stats-bg: #0D0D0D;
  --stats-text: #FFFFFF;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.dark {
  --bg: #0A0A0A;
  --card-bg: #141414;
  --text: #E5E5E5;
  --text-muted: #808080;
  --accent: #5B8BD6;
  --border: #252525;
  --btn-bg: #E5E5E5;
  --btn-text: #0A0A0A;
  --chip-bg: #1E1E1E;
  --chip-text: #5B8BD6;
  --stats-bg: #E5E5E5;
  --stats-text: #0A0A0A;
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAVIGATION ─────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: 68px;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
  display: flex;
  align-items: center;
  padding: 0 max(56px, calc((100% - 1100px) / 2));
  transition: background 0.3s ease;
}
#nav.stuck {
  background: var(--bg);
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.nav-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.nav-logo:hover .nav-mark { box-shadow: 0 0 0 6px rgba(10,54,157,0.12); }
.nav-links {
  display: flex; gap: 0; list-style: none; align-items: center;
  flex: 1;
}
.nav-links li a {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}
.nav-links li a:hover { color: var(--text); }
.nav-links li a.nav-active { color: var(--accent); }
.nav-links li:has(.nav-login) {
  margin-left: auto;
}
.nav-btn {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border-radius: 9999px !important;
  padding: 10px 28px !important;
  margin-left: 8px;
  transition: opacity 0.2s, transform 0.15s !important;
}
.nav-btn:hover { opacity: 0.85 !important; transform: translateY(-1px) !important; }
.nav-login {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text) !important;
  padding: 10px 28px;
  border-radius: 9999px;
  border: 2px solid var(--text) !important;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s !important;
  letter-spacing: 0.2px;
}
.nav-login:hover { opacity: 0.7 !important; }

/* ─── DARK MODE TOGGLE ───────────────────── */
.theme-toggle {
  background: none;
  border: 2px solid var(--text);
  border-radius: 9999px;
  color: var(--text);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-left: 8px;
  order: 10;
  flex-shrink: 0;
}

/* ─── PAGE HEADER ────────────────────────── */
.page-header {
  background: var(--bg);
  position: relative; overflow: hidden;
  padding: 140px 0 80px;
}
.page-header::before {
  display: none;
}
.strata {
  display: none;
}
.header-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 0 56px;
}
.header-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.header-eyebrow::before {
  display: none;
}
.header-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 18px;
}
.header-h1 em {
  font-style: normal;
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
.header-sub {
  font-size: 16px; font-weight: 400; line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
}

/* ─── SECTION UTILS ─────────────────────── */
.sec {
  padding: 100px 0;
}
.inner {
  max-width: 1100px; margin: 0 auto; padding: 0 56px;
}
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { display: none; }
.sec-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
}
.sec-h2 em { font-style: normal; color: var(--accent); }
.accent { color: var(--accent); }

/* ─── ABOUT ──────────────────────────────── */
.about { background: var(--card-bg); color: var(--text); }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px; align-items: start;
}
.about .eyebrow { color: var(--text-muted); }
.about .sec-h2 { color: var(--text); margin-bottom: 28px; }
.about-body {
  font-size: 16px; line-height: 1.75;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-pillars { margin-top: 44px; }
.pillar {
  display: grid; grid-template-columns: 60px 1fr 2fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pillar:first-child { border-top: 2px solid var(--border); }
.p-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.p-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.p-body { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* About right panel */
.about-panel {
  position: sticky; top: 100px;
}
.ap-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.ap-card::before {
  display: none;
}
.ap-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.ap-big { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 58px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; }
.ap-big sup { font-size: 24px; color: var(--accent); vertical-align: top; margin-top: 10px; display: inline-block; }
.ap-caption { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.ap-divider { height: 1px; background: var(--border); margin: 22px 0; }
.ap-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.ap-mini-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; }
.ap-mini-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.ap-note {
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px; font-weight: 600;
  line-height: 1.5;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}
.ft-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px; margin-bottom: 56px;
}
.ft-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.ft-logo-m {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #FFFFFF;
}
.ft-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; margin-bottom: 22px; }
.ft-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--chip-text);
  font-size: 11px; padding: 6px 12px; border-radius: 20px;
}
.ft-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 10px; }
.ft-col a { font-size: 13.5px; color: var(--text-muted); transition: color 0.2s; }
.ft-col a:hover { color: var(--text); }
.ft-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: start;
  gap: 20px; flex-wrap: wrap;
}
.ft-copy { font-size: 12px; color: var(--text-muted); }
.ft-disc { font-size: 12px; color: var(--text-muted); max-width: 520px; text-align: right; line-height: 1.55; }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.r { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.r.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ─── HAMBURGER ─────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 8px;
  z-index: 600;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-open .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  #nav { padding: 0 28px; }
  .nav-hamburger { display: flex; }
  .theme-toggle { order: 0; margin-left: auto; margin-right: 8px; }
  .nav-links {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    opacity: 0.97;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0;
    z-index: 550;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li a {
    font-size: 18px !important;
    padding: 16px 24px !important;
  }
  .nav-links li:has(.nav-login) { margin-left: 0; }
  .nav-links li a.nav-login { margin-top: 12px; }
  .nav-links li a.nav-btn { margin-top: 8px; margin-left: 0 !important; }
  .inner { padding: 0 28px; }
  .header-inner { padding: 0 28px; }
  .page-header { padding: 100px 0 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-panel { position: static; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .ft-grid { grid-template-columns: 1fr; }
}
