/* ═══════════════════════════════════════════════════════════════
   WTN MARKET — ARCTIC DARK TERMINAL DESIGN SYSTEM
   wtnmarket.cc
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #07090F;
  color: #D8E4F0;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Aurora Layer ─────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,180,140,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(60,100,200,0.07) 0%, transparent 55%);
}

/* ── Z-index layers ───────────────────────────────────────────── */
/* header must sit above main — fixed nav lives inside header's stacking context */
header.site-header { position: relative; z-index: 200; }
main, footer, .z1 { position: relative; z-index: 1; }

:root {
  --nav-height: 80px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E8F0FF;
}

h1 {
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #B8CCEE;
}

p {
  font-size: 14px;
  line-height: 1.9;
  color: #8A9DB8;
  letter-spacing: 0.02em;
  max-width: 620px;
}

p strong { font-weight: 700; color: #D8E4F0; }

a { color: #B8CCEE; text-decoration: none; transition: color 150ms; }
a:hover { color: #E8F0FF; }

/* ── Navigation ───────────────────────────────────────────────── */
.site-nav {
  background: rgba(7,9,15,0.95);
  border-bottom: 1px solid rgba(184,204,238,0.07);
  padding: 10px 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.nav-logo {
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E8F0FF;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 8px;
  letter-spacing: 0.28em;
  color: #4A5870;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(184,204,238,0.2);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #B8CCEE;
  transition: transform 150ms, opacity 150ms;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 201;
}

.nav-links a {
  font-family: monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A9DB8;
  transition: color 150ms;
  text-decoration: none;
  padding-bottom: 2px;
}

.nav-links a:hover { color: #E8F0FF; }
.nav-links a.active { color: #E8F0FF; border-bottom: 1px solid rgba(184,204,238,0.4); }

.nav-cta {
  background: #E8F0FF;
  color: #07090F !important;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background 150ms;
  display: inline-block;
}

.nav-cta:hover { background: #B8CCEE; color: #07090F !important; }

/* ── Hero Zone ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 50px) 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.sys-init {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A5870;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-init .prompt { color: #3D5A8A; }
.sys-init .status-online { color: #4DCFFF; }

.hero-heading-line1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.08;
  color: #E8F0FF;
}

.hero-heading-line2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.08;
  color: #7A9ACC;
}

/* ── Terminal Output Block ────────────────────────────────────── */
.terminal-block {
  border-left: 2px solid rgba(77,207,255,0.3);
  padding-left: 20px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-line {
  font-family: monospace;
  font-size: 13px;
  line-height: 2.0;
  color: #4A5870;
}

.terminal-line .t-prompt { color: #3D5A8A; }
.terminal-line.active { color: #8A9DB8; }
.terminal-line.current { color: #B8CCEE; }

.cursor-blink {
  color: #4DCFFF;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── CTA Buttons ──────────────────────────────────────────────── */
.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.btn-primary {
  background: #E8F0FF;
  color: #07090F;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 150ms;
}

.btn-primary:hover { background: #B8CCEE; color: #07090F; }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(184,204,238,0.3);
  color: #B8CCEE;
  font-family: monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}

.btn-secondary:hover { border-color: rgba(184,204,238,0.6); color: #E8F0FF; }

/* ── Stat Strip ───────────────────────────────────────────────── */
.stat-strip {
  background: #0D1018;
  border-top: 1px solid rgba(184,204,238,0.07);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
}

.stat-col {
  padding: 28px 48px;
  border-right: 1px solid rgba(184,204,238,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-col:last-child { border-right: none; }

.stat-label {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A5870;
}

.stat-value {
  font-family: monospace;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: #E8F0FF;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── Section Headings ─────────────────────────────────────────── */
.section-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.section-marker {
  color: #3D5A8A;
  font-family: monospace;
  font-size: 20px;
  font-weight: 400;
}

.section-heading-row h2 {
  color: #E8F0FF;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Two-Column Editorial ─────────────────────────────────────── */
.editorial-two-col {
  padding: 100px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.editorial-panel-left {
  background: #111520;
  border: 1px solid rgba(184,204,238,0.1);
  padding: 40px 44px;
  position: relative;
}

.editorial-panel-right {
  background: #0A0D15;
  border: 1px solid rgba(184,204,238,0.12);
  overflow: hidden;
}

.panel-inner-strip {
  background: #111520;
  border-bottom: 1px solid rgba(184,204,238,0.08);
  padding: 8px 16px;
  font-family: monospace;
  font-size: 10px;
  color: #4A5870;
  display: flex;
  align-items: center;
  gap: 10px;
}

.corner-bracket {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(184,204,238,0.4);
  border-left: 1px solid rgba(184,204,238,0.4);
}

/* ── Feature Grid ─────────────────────────────────────────────── */
.section-padded {
  padding: 80px 56px;
  position: relative;
  z-index: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,204,238,0.06);
}

.feature-cell {
  background: #07090F;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 200ms;
}

.feature-cell:hover { background: #0D1018; }

.cell-label {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A5870;
}

.cell-heading {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B8CCEE;
}

.cell-body {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.85;
  color: #4A5870;
  max-width: none;
}

.cell-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* ── Panel Badge ──────────────────────────────────────────────── */
.panel-badge {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A5870;
  border: 1px solid rgba(184,204,238,0.1);
  padding: 3px 8px;
  display: inline-block;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section-alt {
  background: #0A0D15;
  border-top: 1px solid rgba(184,204,238,0.06);
  border-bottom: 1px solid rgba(184,204,238,0.06);
}

/* ── News Cards ───────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,204,238,0.06);
}

.news-card {
  background: #07090F;
  transition: background 200ms;
  display: flex;
  flex-direction: column;
}

.news-card:hover { background: #0D1018; }

.news-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-date {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A5870;
}

.news-title {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B8CCEE;
  line-height: 1.4;
}

.news-excerpt {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #4A5870;
  max-width: none;
}

.news-link {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A9ACC;
  margin-top: auto;
  transition: color 150ms;
}

.news-link:hover { color: #E8F0FF; }

/* ── FAQ Section ──────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(184,204,238,0.06);
  max-width: 800px;
}

.faq-item {
  background: #07090F;
}

.faq-item summary {
  padding: 20px 28px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8CCEE;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 150ms;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #3D5A8A; font-size: 18px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: #E8F0FF; }
.faq-item[open] { background: #0D1018; }

.faq-answer {
  padding: 0 28px 24px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #8A9DB8;
  max-width: none;
}

/* ── Harm Reduction / OPSEC panels ───────────────────────────── */
.info-panel {
  background: #111520;
  border: 1px solid rgba(184,204,238,0.1);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-panel h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.info-panel p { max-width: none; font-size: 13px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(184,204,238,0.06);
}

.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,204,238,0.06);
}

/* ── Mirror / Onion Link ──────────────────────────────────────── */
.onion-box {
  background: #0A0D15;
  border: 1px solid rgba(184,204,238,0.12);
  border-left: 2px solid rgba(77,207,255,0.4);
  padding: 24px 28px;
  font-family: monospace;
  font-size: 13px;
  color: #B8CCEE;
  word-break: break-all;
  cursor: pointer;
  position: relative;
  transition: border-color 150ms;
}

.onion-box:hover { border-color: rgba(77,207,255,0.7); }

.onion-copy-hint {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3D5A8A;
  margin-top: 8px;
}

.copied-notice {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4DCFFF;
  display: none;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(184,204,238,0.1);
  margin-bottom: 0;
  overflow-x: auto;
}

.tab-btn {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A5870;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}

.tab-btn:hover { color: #8A9DB8; }
.tab-btn.active { color: #E8F0FF; border-bottom-color: rgba(184,204,238,0.4); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Diagrams / Charts ────────────────────────────────────────── */
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-label {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A5870;
  width: 120px;
  flex-shrink: 0;
}

.chart-bar-outer {
  flex: 1;
  height: 6px;
  background: rgba(184,204,238,0.06);
}

.chart-bar-inner {
  height: 100%;
  background: rgba(184,204,238,0.25);
  transition: width 600ms;
}

.chart-val {
  font-family: monospace;
  font-size: 11px;
  color: #7A9ACC;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ── PGP Box ──────────────────────────────────────────────────── */
.pgp-box {
  background: #0A0D15;
  border: 1px solid rgba(184,204,238,0.1);
  border-left: 2px solid rgba(77,207,255,0.3);
  padding: 20px 24px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #4A5870;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

/* ── Inline code / highlight ──────────────────────────────────── */
code {
  font-family: monospace;
  font-size: 12px;
  background: #111520;
  border: 1px solid rgba(184,204,238,0.1);
  padding: 2px 6px;
  color: #B8CCEE;
}

/* ── Lists ────────────────────────────────────────────────────── */
ul.styled-list, ol.styled-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

ul.styled-list li::before {
  content: '> ';
  color: #3D5A8A;
}

ul.styled-list li, ol.styled-list li {
  font-family: monospace;
  font-size: 13px;
  color: #8A9DB8;
  line-height: 1.7;
}

ol.styled-list { counter-reset: item; }
ol.styled-list li { counter-increment: item; }
ol.styled-list li::before {
  content: counter(item, decimal-leading-zero) '. ';
  color: #3D5A8A;
}

/* ── Divider ──────────────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(184,204,238,0.07);
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: #07090F;
  border-top: 1px solid rgba(184,204,238,0.07);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo-mark {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E8F0FF;
}

.footer-sub {
  font-size: 8px;
  letter-spacing: 0.28em;
  color: #4A5870;
  text-transform: uppercase;
  margin-top: 3px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A5870;
  transition: color 150ms;
}

.footer-nav a:hover { color: #8A9DB8; }

.footer-sys {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #4A5870;
  text-align: right;
}

.footer-disclaimer {
  width: 100%;
  font-family: monospace;
  font-size: 10px;
  color: #4A5870;
  letter-spacing: 0.06em;
  line-height: 1.7;
  border-top: 1px solid rgba(184,204,238,0.05);
  padding-top: 20px;
  margin-top: 8px;
}

/* ── Hero Two-column layout (homepage) ───────────────────────── */
.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-screenshot {
  border: 1px solid rgba(184,204,238,0.12);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Article / long-form content ─────────────────────────────── */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  max-width: none;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin-bottom: 16px;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #4A5870;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.breadcrumb a { color: #4A5870; transition: color 150ms; }
.breadcrumb a:hover { color: #8A9DB8; }
.breadcrumb span { color: #3D5A8A; }

/* ── Page header (inner pages) ───────────────────────────────── */
.page-hero {
  min-height: 40vh;
  padding: calc(var(--nav-height) + 50px) 56px 60px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(184,204,238,0.07);
}

/* ── Utility ──────────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-muted   { color: #4A5870; }
.text-mid     { color: #8A9DB8; }
.text-bright  { color: #D8E4F0; }
.text-ice     { color: #E8F0FF; }
.text-cyan    { color: #4DCFFF; }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.full-width   { max-width: none; }
.w-full       { width: 100%; }

body.nav-open {
  overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav { padding: 10px 24px; }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7,9,15,0.98);
    border-bottom: 1px solid rgba(184,204,238,0.12);
    padding: 16px 24px 24px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 199;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(184,204,238,0.06);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 12px;
  }

  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .nav-logo-text {
    display: none;
  }

  .hero { padding: calc(var(--nav-height) + 40px) 24px 0; }
  .editorial-two-col { padding: 60px 24px; grid-template-columns: 1fr; gap: 32px; }
  .section-padded { padding: 60px 24px; }
  .hero-cols { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-col { padding: 20px 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid-3 { grid-template-columns: 1fr; }
  .site-footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .footer-sys { text-align: left; }
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .editorial-two-col { grid-template-columns: 1fr; }
  .nav-logo-img { height: 40px; max-width: 100px; }
}
