/* =========================================================
   WTN-Mirror.shop — Shared Design System
   Modern Fintech SaaS Interface
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ----- CSS Variables ----- */
:root {
  --bg-primary:    #F7F8F9;
  --bg-white:      #FFFFFF;
  --bg-card:       #FFFFFF;
  --accent:        #2F7D6D;
  --accent-mid:    #3A8F7A;
  --accent-dark:   #2C6E63;
  --accent-light:  #EAF5F3;
  --text-primary:  #1A1A1A;
  --text-secondary:#6B7280;
  --text-muted:    #9CA3AF;
  --border:        #E5E7EB;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 20px rgba(0,0,0,0.07);
  --shadow-lg:     0 16px 40px rgba(0,0,0,0.09);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   999px;
  --font:          'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --max-w:         1200px;
  --section-py:    100px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* Subtle dot-grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #9CA3AF 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

/* ----- Container ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color .2s;
}
.nav-login:hover { color: var(--accent); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(47,125,109,.28);
}
.btn-pill:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47,125,109,.35);
}
.btn-pill-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-pill-outline:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.btn-pill-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: .3s;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-link:hover { color: var(--accent); }
.hero-link svg { transition: transform .2s; }
.hero-link:hover svg { transform: translateX(3px); }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.hero-stat-lbl {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-float-card {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  padding: 16px 20px;
  min-width: 180px;
}
.hero-float-card.card-tl { top: -20px; left: -24px; }
.hero-float-card.card-br { bottom: 24px; right: -20px; }

.float-label {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.float-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.float-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

/* ----- Section Shared ----- */
.section { padding: var(--section-py) 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-white); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title .accent { color: var(--accent); }

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin: 0 auto; }

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { color: var(--accent); }
.card-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

/* ----- Feature Grid ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ----- Split Section ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-img img { width: 100%; }
.split-content h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 16px; }
.split-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.split-list { margin: 24px 0; }
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--text-secondary);
}
.split-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ----- News Grid ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.news-card { overflow: hidden; }
.news-card .card-img { height: 180px; transition: transform .3s; }
.news-card:hover .card-img { transform: scale(1.03); }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.news-date {
  font-size: .8rem;
  color: var(--text-muted);
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.news-card h3 a { color: var(--text-primary); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .875rem; color: var(--text-secondary); }

/* ----- Stats Bar ----- */
.stats-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .val { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-item .lbl { font-size: .82rem; color: var(--text-muted); font-weight: 500; margin-top: 6px; }

/* ----- Accordion / FAQ ----- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-white);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  font-size: 1.1rem;
  font-weight: 700;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  padding: 0 24px;
  font-size: .93rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 24px 20px; }

/* ----- Onion Links (Access page) ----- */
.onion-tab {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.onion-tab:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.onion-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.onion-url {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: 12px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copied { background: var(--accent) !important; color: #fff !important; }

/* ----- PGP Box ----- */
.pgp-box {
  background: #1E2630;
  border-radius: var(--radius-md);
  padding: 28px;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: #A3E4D7;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 16px;
}

/* ----- Chart Bars ----- */
.chart-bar-wrap { display: flex; flex-direction: column; gap: 12px; }
.chart-bar-item { }
.chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}
.chart-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1s ease;
}

/* ----- Alert / Notice ----- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFF9E6;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 28px 0;
}
.notice.info { background: var(--accent-light); border-color: #A7F3D0; }
.notice.danger { background: #FFF1F2; border-color: #FECDD3; }
.notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.notice-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.notice-text strong { color: var(--text-primary); }

/* ----- Breadcrumb ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

/* ----- Steps ----- */
.steps { counter-reset: steps; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  align-items: flex-start;
}
.step-num {
  counter-increment: steps;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: .9rem; color: var(--text-secondary); line-height: 1.75; }

/* ----- Warning Box ----- */
.warn-box {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----- Table ----- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th {
  background: var(--bg-primary);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-primary); }

/* ----- Drug Cards ----- */
.drug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.drug-card { padding: 24px; }
.drug-severity {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.drug-severity.high { background: #FEE2E2; color: #DC2626; }
.drug-severity.med  { background: #FEF3C7; color: #D97706; }
.drug-severity.low  { background: #DCFCE7; color: #16A34A; }

/* ----- Tools Grid ----- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tool-card {
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tool-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tool-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.tool-text p { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* ----- CTA Banner ----- */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { opacity: .85; max-width: 540px; margin: 0 auto 32px; font-size: 1rem; }
.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--bg-primary); color: var(--accent-dark); }

/* ----- Footer ----- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 280px;
}
.footer-logo { height: 40px; width: auto; }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer {
  font-size: .78rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.footer-updated { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  padding: 60px 0 48px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.page-hero-inner { max-width: 740px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; }

/* ----- Prose Content ----- */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 48px 0 16px; letter-spacing: -.02em; line-height: 1.3; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 24px 0 10px; color: var(--text-primary); }
.prose p { font-size: .97rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 16px 0 20px 20px; }
.prose ul li, .prose ol li { font-size: .95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--accent); font-weight: 500; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.8;
}
.prose code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .87rem;
  color: var(--accent-dark);
}

/* ----- Layout helpers ----- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sticky-col { position: sticky; top: 100px; }

/* ----- Access page tabs ----- */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: transparent;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--bg-white);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav { position: relative; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .three-col { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .tab-nav { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
