:root {
  color-scheme: dark;
  --bg: #07131f;
  --surface: #0b2030;
  --surface-2: #0e293b;
  --text: #edf7fa;
  --muted: #9eb4c0;
  --line: rgba(170, 218, 228, .17);
  --cyan: #49d7d0;
  --amber: #f2b84b;
  --blue: #70a9ff;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 5%, rgba(73, 215, 208, .12), transparent 28rem),
    radial-gradient(circle at 8% 58%, rgba(242, 184, 75, .07), transparent 25rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 31, .78);
  backdrop-filter: blur(18px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 780; text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(73,215,208,.45); border-radius: 50%; color: var(--cyan); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

main { position: relative; }
.home-hero { min-height: 520px; display: grid; align-content: center; padding: 90px 0 62px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: .8rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 900px; font-size: clamp(3.1rem, 8.5vw, 7.5rem); line-height: .91; letter-spacing: -.064em; }
.home-lead { max-width: 670px; margin: 26px 0 0; color: #bfd0d7; font-size: clamp(1.05rem, 2vw, 1.28rem); }

.topics { padding: 10px 0 100px; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14,41,59,.92), rgba(8,26,40,.92));
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.topic-card:hover { transform: translateY(-5px); border-color: rgba(73,215,208,.48); }
.topic-no { color: var(--amber); font-size: .8rem; font-weight: 780; letter-spacing: .14em; }
.topic-card h2 { margin: auto 0 14px; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.04; letter-spacing: -.04em; }
.topic-card p { min-height: 76px; margin: 0; color: var(--muted); }
.topic-link { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--cyan); font-weight: 700; }
.topic-link span:last-child { font-size: 1.4rem; }

.page-hero { padding: 84px 0 52px; }
.page-hero h1 { font-size: clamp(2.9rem, 7vw, 6.5rem); }
.page-hero .intro { max-width: 760px; margin: 24px 0 0; color: #b8cbd4; font-size: clamp(1.04rem, 2vw, 1.2rem); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #d7e7ec; background: rgba(255,255,255,.03); font-size: .88rem; }

.section { padding: 50px 0 78px; }
.section-title { display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; align-items: end; margin-bottom: 28px; }
.kicker { color: var(--amber); font-size: .8rem; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.section-title h2 { margin: 4px 0 0; font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1.02; letter-spacing: -.045em; }
.section-title p { justify-self: end; max-width: 650px; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: rgba(11,32,48,.84); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 20px; font-size: 1.25rem; }
.metric { grid-column: span 3; min-height: 154px; display: flex; flex-direction: column; justify-content: space-between; }
.metric span { color: var(--muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.metric strong { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.metric small { color: var(--cyan); }
.wide { grid-column: span 7; }
.side { grid-column: span 5; }
.third { grid-column: span 4; }
dl { margin: 0; }
.spec { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.spec dd { margin: 0; text-align: right; font-weight: 700; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.clean-list li:last-child { border-bottom: 0; }
.clean-list strong { display: block; }
.clean-list small { color: var(--muted); }
.empty-note { color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 12px 17px; border-radius: 10px; background: var(--cyan); color: #05212a; font-weight: 780; text-decoration: none; }
.button:hover { filter: brightness(1.08); }

.site-footer { padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 850px) {
  .topics-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 250px; }
  .section-title { grid-template-columns: 1fr; }
  .section-title p { justify-self: start; }
  .metric { grid-column: span 6; }
  .wide, .side, .third { grid-column: span 12; }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav { align-items: flex-start; padding: 13px 0; }
  .brand-text { display: none; }
  .nav-links { gap: 7px 13px; }
  .nav-links a { font-size: .82rem; }
  .home-hero { min-height: 430px; padding-top: 65px; }
  .metric { grid-column: span 12; min-height: 132px; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic-card { transition: none; }
}
