:root {
  --bg: #070b10;
  --bg-soft: #0d141c;
  --panel: rgba(15, 24, 33, 0.88);
  --panel-strong: rgba(11, 18, 26, 0.96);
  --line: rgba(122, 142, 165, 0.16);
  --line-strong: rgba(245, 168, 77, 0.35);
  --text: #ecf2f8;
  --muted: #93a5b8;
  --accent: #f5a84d;
  --accent-strong: #ff7a18;
  --accent-soft: rgba(245, 168, 77, 0.14);
  --ok: #7dd3a7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Exo 2", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 168, 77, 0.18), transparent 24rem),
    radial-gradient(circle at 85% 16%, rgba(34, 197, 94, 0.08), transparent 18rem),
    linear-gradient(180deg, #081018 0%, #05080d 100%);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-glow,
.noise-panel {
  position: absolute;
  inset: 0;
}

.grid-glow-left {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.24;
}

.grid-glow-right {
  background: radial-gradient(circle at 80% 14%, rgba(255, 122, 24, 0.28), transparent 20rem);
}

.noise-panel {
  background:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.018) 50%, transparent 100%);
  background-size: 100% 4px;
  opacity: 0.18;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  color: #0a0f14;
  background:
    linear-gradient(145deg, #ffd18c 0%, var(--accent) 56%, var(--accent-strong) 100%);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 36px rgba(255, 122, 24, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-copy span,
.hero-text,
.feature-card p,
.form-message,
.report-card li,
.report-meta span,
.side-note,
.source-strip p,
.source-strip article span {
  color: var(--muted);
}

.site-nav {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(10, 16, 23, 0.78);
  backdrop-filter: blur(12px);
}

.site-nav a {
  padding: 0.68rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero,
.report-top {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 1.4rem;
}

.hero-panel,
.dashboard-panel,
.feature-card,
.report-card,
.report-meta article,
.source-strip,
.source-strip article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.94) 0%, rgba(10, 16, 24, 0.94) 100%);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.dashboard-panel::before,
.feature-card::before,
.report-card::before,
.report-meta article::before,
.source-strip::before,
.source-strip article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245, 168, 77, 0.12), transparent 40%);
  pointer-events: none;
}

.hero-panel,
.dashboard-panel,
.feature-card,
.report-card,
.report-meta article,
.source-strip,
.source-strip article {
  border-radius: var(--radius-xl);
}

.hero-panel,
.dashboard-panel,
.feature-card,
.report-card,
.source-strip {
  padding: 1.7rem;
}

.eyebrow,
.panel-kicker,
.card-index {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.panel-header {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.panel-header strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.94;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.05em;
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.hero-points span,
.hero-stats article {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.hero-points span {
  display: inline-flex;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.hero-stats article,
.report-meta article,
.source-strip article {
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
}

.hero-stats span,
.report-meta span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stats strong,
.report-meta strong,
.source-strip strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.08rem;
}

.search-form {
  display: grid;
  gap: 0.9rem;
}

.search-form label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-form input {
  width: 100%;
  padding: 1rem 1.06rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.search-form input::placeholder {
  color: #6f8296;
}

.search-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(245, 168, 77, 0.12);
}

.search-form button,
.ghost-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0d11;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(255, 122, 24, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.search-form button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(255, 122, 24, 0.28);
}

.ghost-link {
  width: auto;
  min-width: 100%;
}

.ghost-link-secondary {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.form-message {
  margin: 1rem 0 0;
  line-height: 1.65;
}

.form-message.is-error {
  color: #ff9e8c;
}

.scan-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.scan-lines span {
  display: block;
  height: 0.42rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(245, 168, 77, 0.55), rgba(255, 255, 255, 0.03));
  opacity: 0.7;
}

.feature-grid,
.report-grid,
.report-meta,
.source-strip-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.feature-grid,
.source-strip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-index {
  margin-bottom: 0.9rem;
}

.feature-card p,
.source-strip p,
.side-note,
.report-card li {
  margin: 0.95rem 0 0;
  line-height: 1.7;
}

.source-strip {
  margin-top: 1.5rem;
}

.source-strip-copy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.source-strip-copy h2 {
  max-width: 12ch;
}

.report-actions {
  align-self: start;
}

.side-note {
  font-size: 0.94rem;
}

.report-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-card-head {
  display: grid;
  gap: 0.55rem;
}

.report-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.72rem;
}

.report-card-single {
  margin-top: 1.25rem;
}

.sources-hero,
.cta-panel {
  margin-top: 0.2rem;
}

.source-page-grid,
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.source-page-card,
.methodology-strip,
.methodology-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.94) 0%, rgba(10, 16, 24, 0.94) 100%);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.source-page-card,
.methodology-strip,
.methodology-grid article,
.cta-panel {
  padding: 1.7rem;
}

.source-page-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.72rem;
  color: var(--muted);
  line-height: 1.68;
}

.methodology-strip {
  margin-top: 1.4rem;
}

.methodology-copy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.methodology-copy h2 {
  max-width: 12ch;
}

.methodology-grid article span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.methodology-grid article p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding: 1.15rem 0 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer strong {
  font-family: var(--font-display);
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .report-top,
  .feature-grid,
  .report-grid,
  .report-meta,
  .source-strip-grid,
  .hero-stats,
  .source-page-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-strip-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .methodology-copy,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-panel,
  .dashboard-panel,
  .feature-card,
  .source-strip,
  .source-strip article,
  .report-card,
  .report-meta article {
    animation: rise-in 460ms ease-out both;
  }

  .feature-card:nth-child(2),
  .report-card:nth-child(2),
  .source-strip article:nth-child(2) {
    animation-delay: 70ms;
  }

  .feature-card:nth-child(3),
  .report-card:nth-child(3),
  .source-strip article:nth-child(3) {
    animation-delay: 140ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
