/* TOKENS */
:root {
  --bg:       #FFFFFF;
  --bg-alt:   #F7F5F1;
  --border:   #E4E0D8;
  --text-1:   #1A1814;
  --text-2:   #4A4845;
  --text-3:   #8A8680;
  --accent:   #1558A0;
  --accent-bg:#EAF1FA;
  --mock-bg:  #F0EDE8;
  --mock-bd:  #C0BCB5;
  --font:     'DM Sans', system-ui, sans-serif;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --r:        6px;
  --r-lg:     12px;
}
[data-theme="dark"] {
  --bg:       #111110;
  --bg-alt:   #191917;
  --border:   #2A2925;
  --text-1:   #EDEAE2;
  --text-2:   #C9B88A;
  --text-3:   #6B6558;
  --accent:   #5BA4E6;
  --accent-bg:rgba(91,164,230,0.1);
  --mock-bg:  #1C1C1A;
  --mock-bd:  #2F2E2A;
}

/* DARK MODE - IFRAMES */
[data-theme="dark"] iframe {
  background: #111110;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .nav { background: rgba(17,17,16,0.92); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem; height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 400; color: var(--text-2);
  border: 0.5px solid var(--border); border-radius: var(--r);
  padding: 5px 12px 5px 9px; background: none;
  transition: all 0.2s; justify-self: start; white-space: nowrap;
}
.nav-back:hover { background: var(--bg-alt); color: var(--text-1); }
.nav-back svg { width: 12px; height: 12px; flex-shrink: 0; }
.nav-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  justify-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme-btn {
  background: none; border: 0.5px solid var(--border); border-radius: var(--r);
  padding: 5px 13px; font-size: 12px; font-weight: 400; color: var(--text-2);
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.theme-btn:hover { background: var(--bg-alt); color: var(--text-1); }
.theme-icon { width: 13px; height: 13px; }
.lang-btn { min-width: 42px; justify-content: center; }

/* HERO */
.hero { max-width: 1100px; margin: 0 auto; padding: 4.5rem 2rem 2.5rem; }
.hero-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::after { content:''; display:inline-block; width:32px; height:0.5px; background:var(--border); }
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.25rem; max-width: 820px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--text-2); }
.hero-desc { font-size: 1rem; font-weight: 300; color: var(--text-2); max-width: 620px; line-height: 1.75; margin-bottom: 2.25rem; }

/* TABS */
.tabs-wrap {
  position: sticky; top: 56px; z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .tabs-wrap { background: rgba(17,17,16,0.92); }
.tabs {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: none;
  padding: 14px 18px 14px 0; margin-right: 22px;
  font-size: 12px; font-weight: 400; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; position: relative;
  transition: color 0.2s; letter-spacing: 0.005em;
}
.tab-num { font-variant-numeric: tabular-nums; color: var(--text-3); }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--text-1); font-weight: 600; }
.tab.active .tab-num { color: var(--accent); }
.tab.active::after {
  content: ''; position: absolute; left: 0; right: 22px;
  bottom: -0.5px; height: 1.5px; background: var(--text-1);
}

/* SECTIONS */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem 1rem; }
.section { display: none; animation: fadeIn 0.35s var(--ease); }
.section.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.sec-title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; }
.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem; align-items: start;
}
.sec-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.sec-lead { font-size: 1.0625rem; font-weight: 300; color: var(--text-1); line-height: 1.6; letter-spacing: -0.005em; }
.sec-copy p { font-size: 0.9375rem; font-weight: 300; color: var(--text-2); line-height: 1.7; }
.kicker { font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: -0.5rem; }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.bullets li { display: flex; gap: 0.75rem; font-size: 0.9375rem; font-weight: 300; color: var(--text-2); line-height: 1.6; }
.bullets li::before { content:''; flex-shrink:0; width:14px; height:1px; background:var(--text-3); margin-top:0.75em; }
.bullets li strong { color: var(--text-1); font-weight: 400; }

/* METRICS */
.metrics-row {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 0.5rem;
}
.metric { background: var(--bg); padding: 1rem 1.25rem; }
.metric-val { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-1); line-height: 1.1; margin-bottom: 4px; }
.metric-lbl { font-size: 11px; color: var(--text-3); line-height: 1.4; }

/* SECTION NAV */
.sec-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3.5rem; padding-top: 1.75rem;
  border-top: 0.5px solid var(--border); gap: 1rem;
}
.sec-nav-spacer { flex: 0 0 180px; min-width: 180px; }
.sec-nav-btn {
  background: none; border: 0.5px solid var(--border); border-radius: var(--r);
  padding: 10px 16px; font-size: 13px; font-weight: 400; color: var(--text-1);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 180px; transition: all 0.2s; text-align: left;
}
.sec-nav-btn:hover:not(:disabled) { background: var(--bg-alt); border-color: var(--text-3); }
.sec-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nav-hint { font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.nav-lbl { font-size: 14px; font-weight: 600; color: var(--text-1); }
.sec-nav-btn.next { text-align: right; align-items: flex-end; }

/* FOOTER */
.footer { border-top: 0.5px solid var(--border); margin-top: 4rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.footer-sub { font-size: 12px; font-weight: 300; color: var(--text-3); margin-top: 2px; }
.footer-right { font-size: 12px; color: var(--text-3); text-align: right; }
.footer-contact { font-size: 13px; color: var(--accent); }
.footer-legal {
  flex-basis: 100%;
  width: 100%;
  max-width: 760px;
  margin: 0.35rem auto 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
  text-align: center;
  align-self: center;
}
