:root {
  color-scheme: dark;
  --nav-theme: 28 90% 58%;
  --nav-theme-light: 39 96% 68%;
  --bg: 20 18% 7%;
  --bg-soft: 22 16% 10%;
  --panel: 24 14% 12%;
  --panel-2: 25 13% 15%;
  --line: 30 15% 24%;
  --text: 38 28% 92%;
  --muted: 33 12% 66%;
  --danger: 6 76% 59%;
  --success: 144 48% 52%;
  --shadow: 0 24px 70px hsl(0 0% 0% / .34);
  --radius: 18px;
  --content: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --nav-theme: 24 82% 42%;
  --nav-theme-light: 35 92% 55%;
  --bg: 40 31% 96%;
  --bg-soft: 36 28% 92%;
  --panel: 40 48% 99%;
  --panel-2: 36 28% 94%;
  --line: 29 18% 80%;
  --text: 22 28% 14%;
  --muted: 25 12% 40%;
  --shadow: 0 22px 55px hsl(24 35% 20% / .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 4%, hsl(var(--nav-theme) / .12), transparent 32rem),
    linear-gradient(180deg, hsl(var(--bg-soft)), hsl(var(--bg)) 36rem);
  color: hsl(var(--text));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: hsl(var(--nav-theme-light)); }
img { max-width: 100%; }
button, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: hsl(var(--nav-theme));
  color: #1d1006;
  padding: .7rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--line) / .78);
  background: hsl(var(--bg) / .82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: var(--content);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, hsl(var(--nav-theme-light)), hsl(var(--nav-theme)));
  box-shadow: 0 0 30px hsl(var(--nav-theme) / .3);
  color: #241104;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: hsl(var(--muted));
  font-weight: 700;
  font-size: .93rem;
}

.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .language-select {
  border: 1px solid hsl(var(--line));
  background: hsl(var(--panel));
  color: hsl(var(--text));
  border-radius: 11px;
  min-height: 40px;
}
.icon-button { width: 40px; cursor: pointer; }
.language-select { padding: 0 10px; }
.menu-button { display: none; }

.shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 54px;
  align-items: center;
  padding: 70px 0 50px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 12px;
  color: hsl(var(--nav-theme-light));
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 18px; }
h3 { font-size: 1.25rem; margin: 0 0 10px; }

.hero-description {
  max-width: 720px;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  color: hsl(var(--muted));
  margin: 22px 0 0;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid hsl(var(--line));
  background: hsl(var(--panel));
}
.button-primary {
  border-color: transparent;
  background: linear-gradient(145deg, hsl(var(--nav-theme-light)), hsl(var(--nav-theme)));
  color: #241104;
  box-shadow: 0 14px 30px hsl(var(--nav-theme) / .18);
}
.button:hover { transform: translateY(-1px); color: inherit; }

.hero-art {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}
.elevator {
  width: min(100%, 360px);
  aspect-ratio: .78;
  position: relative;
  border: 2px solid hsl(var(--line));
  border-radius: 34px 34px 18px 18px;
  background:
    linear-gradient(90deg, transparent 49.5%, hsl(var(--line)) 50%, transparent 50.5%),
    linear-gradient(160deg, hsl(var(--panel-2)), hsl(var(--bg)));
  box-shadow: var(--shadow), inset 0 0 70px hsl(0 0% 0% / .4);
}
.elevator::before {
  content: "DEEP LAYERS";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  color: hsl(var(--muted));
  white-space: nowrap;
}
.spark {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 98px;
  height: 98px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7ca, hsl(var(--nav-theme-light)) 30%, hsl(var(--nav-theme)) 62%, transparent 65%);
  filter: drop-shadow(0 0 35px hsl(var(--nav-theme-light) / .7));
  animation: pulse 3.2s ease-in-out infinite;
}
.spark::after {
  content: "";
  position: absolute;
  inset: -54px;
  border: 1px solid hsl(var(--nav-theme) / .33);
  border-radius: 50%;
}
.floor-meter {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}
.floor-meter span { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--line)); }
.floor-meter span:first-child, .floor-meter span:nth-child(2) { background: hsl(var(--nav-theme)); box-shadow: 0 0 12px hsl(var(--nav-theme)); }

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .84; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid hsl(var(--line));
  border-radius: var(--radius);
  background: hsl(var(--line));
  box-shadow: var(--shadow);
}
.stat-strip span { padding: 16px 12px; text-align: center; background: hsl(var(--panel)); font-weight: 800; font-size: .91rem; }

.section { padding: 76px 0 0; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading p { color: hsl(var(--muted)); margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .fact-card, .source-card {
  border: 1px solid hsl(var(--line));
  background: linear-gradient(155deg, hsl(var(--panel-2)), hsl(var(--panel)));
  border-radius: var(--radius);
  box-shadow: 0 16px 45px hsl(0 0% 0% / .09);
}
.card { padding: 24px; }
.card-number { color: hsl(var(--nav-theme-light)); font-weight: 950; font-size: .8rem; letter-spacing: .14em; }
.card p, .fact-card p, .source-card p { color: hsl(var(--muted)); margin-bottom: 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.about-copy p { color: hsl(var(--muted)); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-card { padding: 18px; }
.fact-label { display: block; font-size: .74rem; color: hsl(var(--muted)); text-transform: uppercase; letter-spacing: .1em; }
.fact-value { display: block; margin-top: 4px; font-weight: 900; }

.video-card { overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: var(--radius); background: hsl(var(--panel)); }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-caption { padding: 14px 18px; color: hsl(var(--muted)); font-size: .9rem; }

.final-cta {
  padding: 54px;
  border-radius: 28px;
  border: 1px solid hsl(var(--nav-theme) / .34);
  background:
    radial-gradient(circle at 88% 20%, hsl(var(--nav-theme) / .23), transparent 17rem),
    linear-gradient(140deg, hsl(var(--panel-2)), hsl(var(--panel)));
  box-shadow: var(--shadow);
}
.final-cta p { color: hsl(var(--muted)); max-width: 720px; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 46px; align-items: start; }
.article { min-width: 0; }
.breadcrumbs { color: hsl(var(--muted)); font-size: .85rem; margin-bottom: 24px; }
.article-header { padding: 26px 0 34px; border-bottom: 1px solid hsl(var(--line)); }
.article-header h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 920px; }
.article-lede { font-size: 1.16rem; color: hsl(var(--muted)); max-width: 800px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; color: hsl(var(--muted)); font-size: .85rem; margin-top: 20px; }
.answer-box, .notice {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid hsl(var(--nav-theme) / .35);
  background: hsl(var(--nav-theme) / .08);
}
.answer-box strong { color: hsl(var(--nav-theme-light)); }
.notice { border-color: hsl(var(--danger) / .32); background: hsl(var(--danger) / .08); }
.article-section { padding-top: 34px; }
.article-section h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.article-section p { color: hsl(var(--muted)); }
.article-section p:first-of-type { color: hsl(var(--text)); }
.article ul, .article ol { color: hsl(var(--muted)); padding-left: 1.35rem; }
.article li + li { margin-top: .55rem; }
.inline-link { color: hsl(var(--nav-theme-light)); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid hsl(var(--line)); border-radius: 14px; background: hsl(var(--panel)); }
.table-wrap table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; font-size: .92rem; }
.table-wrap th, .table-wrap td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid hsl(var(--line)); }
.table-wrap thead th { color: hsl(var(--nav-theme-light)); background: hsl(var(--panel-2)); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap tbody th { color: hsl(var(--text)); min-width: 120px; }
.table-wrap td { color: hsl(var(--muted)); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

.faq { border-top: 1px solid hsl(var(--line)); padding: 20px 0; }
.faq h3 { font-size: 1.05rem; }
.faq p { color: hsl(var(--muted)); margin-bottom: 0; }

.sidebar { position: sticky; top: 98px; display: grid; gap: 16px; }
.sidebar-card { padding: 20px; border: 1px solid hsl(var(--line)); border-radius: var(--radius); background: hsl(var(--panel)); }
.sidebar-card h2 { font-size: 1rem; letter-spacing: -.01em; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; color: hsl(var(--muted)); }
.sidebar-card li + li { margin-top: 10px; }
.sidebar-card a { display: block; }
.evidence-card { border-color: hsl(var(--nav-theme) / .34); background: hsl(var(--nav-theme) / .07); }
.evidence-card p { color: hsl(var(--muted)); font-size: .9rem; }
.evidence-card > a { color: hsl(var(--nav-theme-light)); font-weight: 850; }

.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.source-card { padding: 20px; }
.source-card a { color: hsl(var(--nav-theme-light)); font-weight: 850; }

.locale-banner { padding: 14px 18px; border: 1px solid hsl(var(--line)); border-radius: 12px; background: hsl(var(--panel)); color: hsl(var(--muted)); margin-bottom: 22px; }

.site-footer { border-top: 1px solid hsl(var(--line)); background: hsl(var(--bg-soft)); }
.footer-grid { max-width: var(--content); margin: 0 auto; padding: 52px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
.footer-grid h2 { font-size: 1rem; letter-spacing: -.01em; }
.footer-grid p, .footer-grid li { color: hsl(var(--muted)); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-bottom { max-width: var(--content); margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid hsl(var(--line)); color: hsl(var(--muted)); font-size: .82rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; }
  .elevator { max-width: 280px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip span:last-child { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-wrap { padding: 0 16px; }
  .menu-button { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    padding: 16px;
    border: 1px solid hsl(var(--line));
    border-radius: 14px;
    background: hsl(var(--panel));
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links[data-open="true"] { display: flex; }
  .language-select { max-width: 68px; }
  .shell { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; gap: 22px; }
  .hero-art { min-height: 290px; }
  .elevator { max-width: 230px; }
  .card-grid, .fact-grid, .source-grid, .sidebar { grid-template-columns: 1fr; }
  .final-cta { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
