:root{
  --bg:#f6f8fb;
  --ink:#0b1220;
  --muted:#475569;
  --muted2:#64748b;
  --line:#e5e7eb;
  --paper:#ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, .12);
  --shadow2: 0 10px 26px rgba(15, 23, 42, .10);
  --r: 18px;
  --r2: 28px;
  --max: 1140px;
  --pad: clamp(18px, 3.5vw, 48px);
  --h1: clamp(34px, 5vw, 62px);
  --h2: clamp(24px, 3.2vw, 40px);
  --h3: clamp(18px, 2.2vw, 24px);
  --body: clamp(16px, 1.2vw, 18px);
  --acc1:#0f766e;
  --acc2:#1d4ed8;
  --accGrad: linear-gradient(135deg, rgba(15,118,110,.95), rgba(29,78,216,.95));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:var(--body);
  line-height:1.65;
  color:var(--ink);
  background:
    radial-gradient(900px 600px at 14% 6%, rgba(15,118,110,.08), transparent 58%),
    radial-gradient(900px 600px at 90% 10%, rgba(29,78,216,.08), transparent 58%),
    linear-gradient(180deg, var(--bg), #ffffff);
}
a{color:inherit}
.container{width:min(var(--max), calc(100% - 2*var(--pad))); margin:0 auto}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;}
.skip-link:focus{position:fixed;left:16px;top:16px;width:auto;height:auto;padding:10px 14px;background:var(--paper);border:1px solid var(--line);border-radius:999px;z-index:9999;box-shadow:var(--shadow2)}
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(246,248,251,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{height:34px;width:auto}
.nav{display:flex;align-items:center;gap:10px}
.nav a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
}
.nav a:hover,.nav a[aria-current="page"]{
  color:var(--ink);
  background: rgba(2,6,23,.04);
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.7);
  color:var(--ink);
  text-decoration:none;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
}
.btn:hover{border-color: rgba(15,23,42,.16); transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn.primary{
  border:0;
  color:#fff;
  background: var(--accGrad);
  box-shadow: 0 14px 34px rgba(29,78,216,.18);
}
.btn.primary:hover{filter:saturate(1.05) brightness(1.02)}
.btn.small{padding:9px 12px;font-size:.95em}
.menu-btn{display:none;background:rgba(255,255,255,.8);border:1px solid rgba(15,23,42,.10);color:var(--ink);border-radius:999px;padding:10px 12px;}
.menu-btn:focus{outline:2px solid rgba(29,78,216,.35);outline-offset:2px}
@media (max-width:920px){
  .menu-btn{display:inline-flex}
  .nav{
    position:fixed; left:var(--pad); right:var(--pad); top:70px;
    display:none; flex-direction:column; align-items:stretch; gap:6px;
    padding:12px;
    background: rgba(255,255,255,.92);
    border:1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{padding:12px 14px;border-radius:14px}
}
h1,h2,h3{margin:0; line-height:1.15}
h1{
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size:var(--h1);
  letter-spacing:-.02em;
}
.section h2{
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size:var(--h2);
  letter-spacing:-.01em;
  margin:0 0 10px;
}
.kicker{
  color: var(--muted2);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.82em;
}
.lead{color:var(--muted); max-width:68ch; margin: 14px 0 0}
.sub{color:var(--muted); margin: 0 0 22px; max-width:78ch}
.hero{padding: clamp(28px, 6vw, 74px) 0 24px}
.hero-wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 4.5vw, 46px);
  align-items:stretch;
}
@media (max-width:980px){ .hero-wrap{grid-template-columns:1fr} }
.hero-left{
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r2);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-left:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 420px at 10% 20%, rgba(15,118,110,.10), transparent 60%),
              radial-gradient(760px 420px at 90% 10%, rgba(29,78,216,.10), transparent 60%);
  pointer-events:none;
}
.hero-left > *{position:relative}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 0}
.ribbon{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size:.95em;
  margin-top:18px;
}
.ribbon strong{color:var(--ink); font-weight:700}
.statrow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
@media (max-width:640px){ .statrow{grid-template-columns:1fr} }
.stat{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.82);
  padding: 14px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}
.stat .n{font-weight:800; letter-spacing:-.02em; font-size:1.1em}
.stat .t{color:var(--muted2); font-size:.95em; margin-top:2px}
.hero-right{
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(2,6,23,.02), rgba(2,6,23,.00));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.hero-right .imgwrap{
  height:100%;
  min-height: 420px;
  display:grid;
  grid-template-rows: 1fr auto;
}
.hero-right picture, .hero-right img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-right .caption{
  padding: 16px 18px;
  background: rgba(255,255,255,.86);
  border-top: 1px solid rgba(15,23,42,.08);
}
.hero-right .caption .small{color:var(--muted2); font-size:.95em}
.hero-right .caption .links{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.section{padding: 48px 0}
.cards3{display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px}
@media (max-width:980px){ .cards3{grid-template-columns:1fr} }
.card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
}
.card.pad{padding: 20px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.18);
  color: #0f766e;
  font-weight:700;
  font-size:.86em;
}
.icon{
  width:44px; height:44px; border-radius: 16px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(15,118,110,.10), rgba(29,78,216,.10));
  border: 1px solid rgba(15,23,42,.08);
  color: var(--ink);
  font-weight:800;
}
.card h3{
  font-size: var(--h3);
  letter-spacing:-.01em;
  margin: 10px 0 8px;
}
.card p{margin:0; color: var(--muted)}
.split{display:grid; grid-template-columns: 1fr 1fr; gap: 14px}
@media (max-width:980px){ .split{grid-template-columns:1fr} }
.hr{border:0; border-top: 1px solid rgba(15,23,42,.08); margin: 22px 0}
.tagrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tag{
  font-size:.85em;
  color: var(--muted);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 6px 10px;
}
.form{display:grid; gap: 12px; margin-top: 12px}
.field{display:grid; gap: 6px}
label{color: var(--muted2); font-size:.95em}
input,textarea,select{
  font: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}
textarea{min-height: 140px; resize: vertical}
input:focus,textarea:focus,select:focus{outline: 2px solid rgba(29,78,216,.28); outline-offset: 2px}
.helper{color: var(--muted2); font-size:.92em}
.alert{
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  color: var(--muted);
}
.footer{
  border-top: 1px solid rgba(229,231,235,.9);
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-grid{display:grid; grid-template-columns:1fr auto; gap: 12px; align-items:center}
@media (max-width:820px){ .footer-grid{grid-template-columns:1fr} }
.footer a{color: var(--ink); text-decoration:none}
.footer a:hover{text-decoration:underline}
.smallprint{font-size:.92em;color: var(--muted2)}
.breadcrumbs{color: var(--muted2); font-size:.92em}
.breadcrumbs a{color: var(--muted); text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.cards{display:grid; gap: 12px}
.article-card{padding: 20px}
.article-card h3{margin: 0 0 8px; font-size: var(--h3)}
.article-card p{margin:0; color: var(--muted)}

/* Dark mode */
html[data-theme="dark"]{
  --bg:#070a12;
  --ink:#e5e7eb;
  --muted:#a7b0c0;
  --muted2:#7f8aa0;
  --line:rgba(148,163,184,.22);
  --paper:rgba(17,24,39,.82);
  --shadow: 0 18px 48px rgba(0,0,0,.45);
  --shadow2: 0 10px 26px rgba(0,0,0,.38);
  --accGrad: linear-gradient(135deg, rgba(15,118,110,.92), rgba(59,130,246,.92));
}
html[data-theme="dark"] body{
  background:
    radial-gradient(900px 600px at 14% 6%, rgba(15,118,110,.14), transparent 58%),
    radial-gradient(900px 600px at 90% 10%, rgba(59,130,246,.14), transparent 58%),
    linear-gradient(180deg, #070a12, #020617);
}
html[data-theme="dark"] .site-header{
  background: rgba(2,6,23,.72);
  border-bottom: 1px solid rgba(148,163,184,.14);
}
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a[aria-current="page"]{
  background: rgba(148,163,184,.10);
}
html[data-theme="dark"] .btn{
  background: rgba(2,6,23,.55);
  border-color: rgba(148,163,184,.18);
}
html[data-theme="dark"] .hero-left,
html[data-theme="dark"] .card,
html[data-theme="dark"] .alert{
  background: rgba(2,6,23,.55);
  border-color: rgba(148,163,184,.14);
}
html[data-theme="dark"] .hero-right .caption{
  background: rgba(2,6,23,.62);
  border-top-color: rgba(148,163,184,.14);
}

/* Premium micro-interactions */
.card, .btn{ will-change: transform; }
.card{ transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover{ transform: translateY(-3px); border-color: rgba(15,23,42,.14); box-shadow: var(--shadow); }
html[data-theme="dark"] .card:hover{ border-color: rgba(148,163,184,.22); }
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.theme-toggle:hover{ transform: translateY(-1px); border-color: rgba(15,23,42,.16); }
.theme-toggle svg{ width:18px; height:18px; }
html[data-theme="dark"] .theme-toggle{
  background: rgba(2,6,23,.55);
  border-color: rgba(148,163,184,.18);
}
