:root {
  --bg: #08080A;
  --bg-card: #0F0F12;
  --white: #FAFAFA;
  --text: #B4B4BC;
  --text-muted: #71717A;
  --text-dim: #3F3F46;
  --border: #1A1A1F;
  --accent: #FACC15;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 80px;
  -webkit-font-smoothing: antialiased;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Page fade-in */
.page {
  max-width: 560px;
  width: 100%;
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── TOP BAR ─── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}
.logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.logo:hover { opacity: 1; }

.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0;
}
.lang-btn {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn:last-child { border-right: none; }
.lang-btn.active { color: var(--white); background: rgba(255,255,255,0.04); }
.lang-btn:hover { color: var(--text-muted); }

/* ─── PROGRESS ─── */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
  transition: width 0.3s ease;
}

/* ─── TYPOGRAPHY ─── */
.label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  display: block;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}

p { margin-bottom: 24px; }
strong { color: var(--white); font-weight: 500; }
em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.06em;
}

/* ─── QUOTE ─── */
.quote {
  position: relative;
  padding: 28px 0 28px 24px;
  margin: 36px 0;
}
.quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.quote p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ─── COST STACK ─── */
.stack { margin: 40px 0; }
.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.stack-label { color: var(--text-muted); font-size: 0.88rem; }
.stack-value { font-family: var(--mono); color: var(--text-dim); font-size: 0.82rem; }
.stack-total {
  border-bottom: none;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #27272A;
}
.stack-total .stack-label { color: var(--white); font-weight: 400; }
.stack-total .stack-value { color: var(--accent); font-size: 0.95rem; }

/* ─── COMPARISON ─── */
.comparison {
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.comp-col { background: var(--bg); padding: 28px 24px; }
.comp-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.comp-label.old { color: var(--text-dim); }
.comp-label.new { color: var(--accent); }
.comp-item { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 9px; line-height: 1.5; }
.comp-col:last-child .comp-item { color: var(--text); }

/* ─── PILLARS ─── */
.pillar { margin-bottom: 44px; }
.pillar-num {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.pillar-name { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 10px; }
.pillar-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.85; }
.pillar + .pillar { padding-top: 44px; border-top: 1px solid var(--border); }

/* ─── BIG TEXT ─── */
.big-text {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.1;
  margin: 52px 0;
}

/* ─── NAVIGATION ─── */
.page-nav {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.nav-back {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text-muted); }
.nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  transition: gap 0.3s;
}
.nav-next:hover { gap: 14px; }

/* ─── FINAL CTA ─── */
.final { text-align: center; }
.cta-question {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  margin: 48px 0 36px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 17px 44px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--accent);
  filter: blur(20px);
  opacity: 0.25;
  z-index: -1;
}
.cta-btn:hover { transform: translateY(-2px); }
.or-link {
  display: block;
  margin-top: 28px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.or-link:hover { color: var(--text-muted); }

/* ─── LANGUAGE VISIBILITY ─── */
[data-lang] { display: none; }
[data-lang].show { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  body { padding: 88px 24px 64px; }
  .topbar { padding: 14px 20px; }
  .comparison { grid-template-columns: 1fr; }
}
