:root {
  --bg: #eef3f1;
  --bg-alt: #f7f4ee;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #12222b;
  --muted: #526774;
  --line: #d6e0db;
  --accent: #1f7a53;
  --accent-strong: #14533a;
  --shadow: 0 16px 40px rgba(18, 34, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% -10%, rgba(31, 122, 83, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 90% -8%, rgba(181, 132, 74, 0.16) 0%, transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", "Iowan Old Style", serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  padding: 20px 0 28px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 18px;
}

.top-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #cfdcd6;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
}

.top-nav a:hover,
.top-nav a:focus {
  border-color: #aac8b6;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.lead {
  margin: 0;
  max-width: 68ch;
  color: #29404c;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 122, 83, 0.18);
}

.button-primary:hover,
.button-primary:focus {
  background: #176344;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  border-color: #cfdcd6;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: #aac8b6;
  color: var(--accent);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fcf9 0%, #eff5f1 100%);
  border: 1px solid #d6e2db;
  border-radius: var(--radius-md);
}

.hero-stat {
  padding-bottom: 12px;
  border-bottom: 1px solid #d9e4de;
}

.hero-stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #617783;
}

.hero-stat strong {
  font-size: 0.96rem;
  color: #18313c;
}

.section {
  padding: 26px 0;
}

.section-heading {
  margin-bottom: 16px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-heading p {
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
}

.overview-grid,
.surface-grid,
.scope-grid {
  display: grid;
  gap: 16px;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.surface-grid {
  grid-template-columns: 1fr;
}

.scope-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.surface-card,
.media-card,
.summary-card,
.compare-card,
.scope-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.card,
.surface-card,
.summary-card,
.compare-card,
.scope-grid article {
  padding: 20px;
}

.card h3,
.surface-card h3,
.summary-card h3,
.scope-grid h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.surface-card header p,
.summary-card p,
.card p,
.scope-grid p {
  margin: 0;
  color: var(--muted);
}

.bullet-list,
.checklist {
  margin: 0;
  padding-left: 18px;
  color: #28404b;
}

.bullet-list li + li,
.checklist li + li {
  margin-top: 8px;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.media-card {
  overflow: hidden;
}

.media-header {
  padding: 20px 20px 0;
}

.media-header p {
  margin: 0;
  color: var(--muted);
}

video,
img {
  display: block;
  width: 100%;
  height: auto;
  background: #081015;
}

video {
  margin-top: 16px;
}

.frame-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid #dde7e2;
  background: var(--surface-strong);
}

figcaption {
  padding: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #425765;
}

.compare-card {
  padding: 20px;
}

.theme-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-btn {
  appearance: none;
  border: 1px solid #cddad4;
  background: #f9fcfa;
  color: #324954;
  border-radius: 999px;
  padding: 0.42rem 0.84rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.theme-btn.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, #1f7a53, #329067);
  color: #fff;
}

.compare-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 6px 20px 30px;
  text-align: center;
  color: #495f6b;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--accent-strong);
}

@media (max-width: 920px) {
  .hero,
  .media-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .shell {
    padding: 0 14px;
  }

  .site-header {
    padding-top: 14px;
  }

  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .top-nav {
    gap: 0.5rem;
  }

  .top-nav a {
    font-size: 0.82rem;
    padding: 0.34rem 0.68rem;
  }

  .frame-grid,
  .frame-grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 22px 0;
  }
}
