:root {
  --paper: #f6f1e7;
  --paper-soft: #fbf8f1;
  --ink: #191713;
  --muted: #6f6658;
  --line: #ded3bf;
  --accent: #d94f30;
  --accent-dark: #8f2f22;
  --green: #176f54;
  --blue: #285ea8;
  --shadow: 0 24px 70px rgba(31, 24, 14, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(25, 23, 19, 0.1);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
  border-color: currentColor;
}

.section-band {
  border-bottom: 1px solid rgba(25, 23, 19, 0.08);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 6vw, 82px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 8.2vw, 6.95rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.55rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.button-primary {
  background: var(--ink);
  color: var(--paper-soft);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: rgba(25, 23, 19, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px 14px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-weight: 760;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(25, 23, 19, 0.15);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.panel-header,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(25, 23, 19, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill {
  border: 1px solid rgba(23, 111, 84, 0.28);
  border-radius: 999px;
  color: var(--green);
  padding: 4px 10px;
}

.signal-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 520;
  background: linear-gradient(180deg, #fffaf0 0%, #f3ead9 100%);
}

.panel-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(25, 23, 19, 0.1);
  border-bottom: 0;
}

.panel-footer div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-footer strong {
  font-size: 0.8rem;
}

.panel-footer span {
  color: var(--muted);
  font-size: 0.78rem;
}

.split-section,
.signal-section,
.faq-grid,
.deep-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 5vw, 74px);
  padding: clamp(70px, 10vw, 128px) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.step {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(25, 23, 19, 0.13);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.card-index,
.step span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card p,
.step p,
.section-heading p,
.article-preview p,
.faq-list p,
.signal-row p {
  color: var(--muted);
}

.feature-card p,
.step p {
  margin: 12px 0 0;
}

.muted-band {
  background: #ebe3d4;
}

.section-heading {
  max-width: 760px;
  padding: clamp(70px, 10vw, 118px) 0 34px;
}

.section-heading.compact {
  padding: 0;
}

.section-heading p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: clamp(70px, 10vw, 118px);
}

.step {
  min-height: 238px;
  display: flex;
  flex-direction: column;
}

.step p {
  margin-top: auto;
  padding-top: 24px;
}

.signal-list {
  border-top: 1px solid rgba(25, 23, 19, 0.16);
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.44fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(25, 23, 19, 0.16);
}

.signal-row span {
  color: var(--blue);
  font-weight: 850;
}

.signal-row p,
.article-preview p {
  margin: 0;
  font-size: 1.05rem;
}

.deep-dive {
  background: var(--ink);
  color: var(--paper-soft);
}

.deep-dive .eyebrow {
  color: #ffb19a;
}

.article-preview {
  display: grid;
  gap: 18px;
}

.article-preview p {
  color: rgba(255, 250, 240, 0.72);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(25, 23, 19, 0.15);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

summary {
  cursor: pointer;
  padding: 19px 20px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  background: #15130f;
  color: var(--paper-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0;
}

.site-footer span {
  font-weight: 850;
}

.site-footer nav {
  color: rgba(255, 250, 240, 0.68);
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-section,
  .signal-section,
  .faq-grid,
  .deep-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

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

@media (max-width: 620px) {
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: clamp(2.85rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .button,
  .footer-inner {
    width: 100%;
  }

  .button {
    padding: 0 14px;
  }

  .hero-stats,
  .panel-footer,
  .steps,
  .feature-grid,
  .signal-row {
    grid-template-columns: 1fr;
  }

  .panel-footer {
    gap: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
