:root{
  --bg: #0f1320;
  --card: #151a2c;
  --card-2: #101527;
  --text: #e7eaf6;
  --muted: #b9c0d9;
  --brand-1: 255, 115, 179; /* pink */
  --brand-2: 100, 220, 255; /* cyan */
  --accent: #84f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(var(--brand-2),.15), transparent 60%),
    radial-gradient(1000px 600px at 110% 20%, rgba(var(--brand-1),.12), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

/* Hero */
.hero{
  min-height: 56vh;
  display:grid;
  place-items:center;
  padding: 64px 16px;
  position:relative;
  overflow:hidden;
}
.hero__glass{
  backdrop-filter: blur(6px) saturate(130%);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius) + 6px);
  padding: 32px 28px;
  width:min(900px, 92vw);
  box-shadow: var(--shadow);
  text-align:center;
}
.hero h1{
  margin:0 0 6px;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing:-.02em;
}
.hero__subtitle{
  margin:0;
  font-weight:300;
  color:var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
}
.hero__chip{
  display:inline-block;
  margin-top:16px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(var(--brand-2),.14), rgba(var(--brand-1),.10));
  font-weight:600;
  letter-spacing:.2px;
  color:#fff;
}

/* Sections */
.section{padding: 36px 0}
.container{width:min(1100px,92vw); margin-inline:auto}
.section__header{display:flex; align-items:end; justify-content:space-between; gap:16px}
.section__title{
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 10px;
  letter-spacing:-.01em;
}
.section__lead{font-size: clamp(16px, 2vw, 20px); color:var(--text)}
.muted{color:var(--muted)}
.note{font-size: 14px; margin-top:10px}

/* Grid & cards */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card{
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 38px rgba(0,0,0,.32);
}
.card h3{margin:6px 0 6px; font-size: 20px}
.card p{margin:0 0 14px}

/* Diagram */
.diagram{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding:10px;
  margin:10px 0 12px;
}
svg{width:100%; height:auto; display:block}
svg .node rect{
  fill: rgba(255,255,255,.06);
  stroke: rgba(255,255,255,.18);
  stroke-width:1;
}
svg text{
  fill: #e9edff;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}
svg line{stroke:#a7b3ff; stroke-width:2}

.tags{
  display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0;
  list-style:none
}
.tags li{
  font-size:12.5px;
  color:#fff;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(var(--brand-1),.18), rgba(var(--brand-2),.18));
}

/* Table */
.table-wrap{
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow:hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
}
.table{width:100%; border-collapse: collapse; font-size: 15px}
.table thead th{
  text-align:left;
  padding:14px 12px;
  background: rgba(255,255,255,.04);
  color:#fff;
  position:sticky; top:0; z-index:1;
}
.table tbody td{
  padding:14px 12px;
  border-top:1px dashed rgba(255,255,255,.08);
  color: var(--text);
}
.table tbody tr:hover{
  background: rgba(255,255,255,.03);
}

/* Details / sources */
.sources{
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.sources summary{cursor:pointer; font-weight:700}
.sources ul{margin:8px 0 0 18px}

/* Reveal animations */
.reveal-up{
  opacity:0; transform: translateY(14px);
  transition: all .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-up.visible{opacity:1; transform: translateY(0)}
.delay-1{transition-delay:.12s}
.delay-2{transition-delay:.22s}

/* Skip link */
.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:8px 12px; z-index:10;
  background:#000; color:#fff; border-radius:8px; outline:2px solid #fff;
}

/* Footer */
.footer{
  padding: 36px 16px 50px;
  text-align:center; color:var(--muted)
}

/* Print-friendly */
@media print{
  body{background:#fff; color:#000}
  .hero, .footer{display:none}
  .card, .table-wrap, .sources{box-shadow:none; border:1px solid #999}
  svg text{fill:#111}
}
