:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #0f172a;
  --muted: #526079;
  --line: #dce4ef;
  --accent: #1f5fbf;
  --accent-deep: #16499d;
  --accent-soft: #e8f0fc;
  --signal: #0f766e;
  --warn: #a16207;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(31, 95, 191, 0.07), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(15, 118, 110, 0.05), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 800px);
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--muted {
  background: rgba(255, 255, 255, 0.68);
  border-block: 1px solid rgba(220, 228, 239, 0.8);
}

.section--cta {
  background: radial-gradient(circle at 50% 10%, rgba(31, 95, 191, 0.08), transparent 50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 251, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 1.05rem;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(31, 95, 191, 0.18);
  transition: background 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

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

h1,
h2,
h3 {
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: 2rem 2.5rem;
}

.hero-copy {
  max-width: 100%;
}

.hero-lead {
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(31, 95, 191, 0.22);
}

.button--primary:hover {
  background: var(--accent-deep);
}

.button--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.hero-footnote {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-shell {
  width: min(100%, 420px);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.visual-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.visual-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.signal-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.signal-card {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.signal-name {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
}

.signal-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.signal-bar {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(31, 95, 191, 0.9), rgba(31, 95, 191, 0.22));
}

.signal-card--demand .signal-bar {
  width: 100%;
}

.signal-card--alternatives .signal-bar {
  width: 82%;
}

.signal-card--data .signal-bar {
  width: 68%;
}

.signal-card--law .signal-bar {
  width: 74%;
}

.signal-card--cost .signal-bar {
  width: 90%;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefit {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.benefit p {
  margin-bottom: 0;
  color: var(--muted);
}

.method {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.method summary {
  cursor: pointer;
  font-weight: 700;
}

.method-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.method-list li {
  margin-bottom: 0.45rem;
}

.method-list strong {
  color: var(--ink);
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 1.2rem;
}

.case {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.case-state {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.case-state--hold {
  color: #9a3412;
  background: #fef3c7;
}

.case-state--go {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.case-subtitle {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.case p:last-child {
  margin-bottom: 0;
}

.example-note {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.example-note p {
  margin: 0;
  color: var(--muted);
}

.source-details,
.source-box {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.source-details summary,
.source-box summary {
  cursor: pointer;
  font-weight: 700;
}

.source-details p,
.source-details ul,
.source-box ul {
  color: var(--muted);
}

.source-details ul,
.source-box ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.source-line {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-line code,
.source-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: #1e293b;
  background: #e8edf5;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.cta-actions {
  justify-content: center;
}

.source-box ul li {
  margin-bottom: 0.3rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner p {
  margin: 0 0 0.3rem;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 2rem 1.5rem;
  }

  .hero-copy {
    max-width: 36rem;
  }

  h1 {
    max-width: none;
  }

  .benefits,
  .cases {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
  }
}

@media (max-width: 760px) {
  .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.65rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  body {
    font-size: 17px;
  }

  .container,
  .narrow {
    width: min(100% - 1.5rem, var(--container));
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .cta-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .visual-shell {
    padding: 1rem;
  }

  .signal-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }
}
