:root {
  --bg: #f5f8ff;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --line: rgba(37, 99, 235, 0.12);
  --text: #14213d;
  --muted: #5f6f94;
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --container: 1120px;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand { font-weight: 800; letter-spacing: 0.02em; color: #0f172a; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
}
.primary-nav {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 72px;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.primary-nav.open { display: flex; }
.primary-nav a { color: var(--muted); }
.primary-nav a:hover { color: var(--text); }

.hero { padding: 3.5rem 0 2rem; }
.hero-grid, .split-callout, .footer-grid { display: grid; gap: 1rem; }
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.8rem; }
h1 { font-size: clamp(2.1rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
.hero-copy, .lead, .footer-copy, .article p, .article li, .card p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.button.primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.button.secondary {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255,255,255,0.92);
  color: var(--text);
}
.section { padding: 1.5rem 0 2.25rem; }
.section-alt { background: rgba(37, 99, 235, 0.04); }
.section-head { margin-bottom: 1rem; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card, .info-box, .table-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.card-label {
  font-size: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { margin-top: 0.6rem; }
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  background: rgba(255,255,255,0.55);
}
.footer-brand, .footer-title { font-weight: 700; color: #0f172a; }
.small { font-size: 0.92rem; }
.page-main { padding: 2rem 0 3rem; }
.article-wrap { max-width: 860px; }
.article { display: grid; gap: 1rem; }
.breadcrumbs { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.breadcrumbs span { margin: 0 0.3rem; }
.fact-review { display: grid; gap: 1rem; }
.source-groups { display: grid; gap: 1rem; }
.source-group h3 { margin-bottom: 0.6rem; }
.source-list { margin: 0; padding-left: 1.1rem; }
.source-note { color: var(--muted); }
.signal-layers { display: grid; gap: 1rem; }
.layer-grid { display: grid; gap: 1rem; }
.layer-card { height: 100%; }
.layer-label {
  font-size: 0.78rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 0.85rem; border-bottom: 1px solid rgba(20, 33, 61, 0.08); }
th { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.video-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.video-card { padding: 0; overflow: hidden; }
.video-source { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; }

lite-youtube {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  width: 100%;
}
lite-youtube::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 35%);
  z-index: 1;
}
lite-youtube > .lty-playbtn {
  display: block;
  width: 68px;
  height: 48px;
  position: absolute;
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") no-repeat center;
  border: none;
}
lite-youtube:hover > .lty-playbtn { filter: brightness(1.1); }
lite-youtube.lyt-activated { cursor: unset; }
lite-youtube.lyt-activated::before { display: none; }
lite-youtube iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.video-modal[aria-hidden="true"] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal-content {
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
}
.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.video-modal-close:hover { opacity: 0.7; }
.video-modal-player {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .hero-grid { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .layer-grid { grid-template-columns: repeat(3, 1fr); }
  .split-callout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.9fr; }
  .section { padding: 2.5rem 0 3rem; }
}
