:root {
  --ink: #12343b;
  --muted: #52666d;
  --paper: #fffaf2;
  --surface: #ffffff;
  --teal: #0f766e;
  --coral: #e4574f;
  --gold: #f0b429;
  --leaf: #3a8f5b;
  --navy: #172554;
  --line: #dbe5e4;
  --shadow: 0 18px 50px rgba(18, 52, 59, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(18, 52, 59, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.94), rgba(255, 250, 242, 0.74) 42%, rgba(255, 250, 242, 0.18) 75%);
}

.hero-content {
  position: relative;
  width: min(690px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 90px 0 130px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 8.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0;
  color: #213f45;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band div {
  padding: 24px clamp(18px, 4vw, 44px);
  background: #f7fbf8;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  color: var(--muted);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading,
.section-copy {
  max-width: 880px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p,
.section-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.principle-grid,
.module-grid,
.case-grid,
.faq-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.principle-grid article,
.module-card,
.case-card,
.faq-grid article,
.metric,
.glossary-grid p {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 52, 59, 0.06);
}

.principle-grid span {
  color: var(--coral);
  font-weight: 900;
}

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

.module-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  gap: 10px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
}

.module-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
  color: #3f5860;
  list-style: none;
}

.module-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.module-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.module-card .module-use,
.module-card .module-warning {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.module-card .module-use {
  background: #eef8f4;
}

.module-card .module-warning {
  background: #fff4e6;
}

.module-card strong {
  margin-top: auto;
  color: #24484f;
  font-size: 0.92rem;
}

.module-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.module-card:nth-child(2n) .module-icon {
  background: var(--coral);
}

.module-card:nth-child(3n) .module-icon {
  background: var(--navy);
}

.module-card:nth-child(4n) .module-icon {
  background: var(--leaf);
}

.lab {
  color: white;
  background: var(--ink);
}

.lab .eyebrow,
.lab .section-heading p {
  color: #b9f3e4;
}

.simulator-shell {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: 22px;
}

.controls,
.dashboard {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.controls {
  display: grid;
  gap: 18px;
}

.controls label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.controls span {
  color: #fbe7a0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

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

.metric {
  color: var(--ink);
  box-shadow: none;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric strong {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.chart {
  grid-column: 1 / -1;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 260px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.bar {
  position: relative;
  min-height: 12px;
  border-radius: 8px 8px 0 0;
  transition: height 180ms ease;
}

.bar span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.bar.revenue {
  background: var(--gold);
}

.bar.costs {
  background: var(--coral);
}

.bar.profit {
  background: var(--leaf);
}

.insight {
  grid-column: 1 / -1;
  margin: 0;
  color: #e5fff5;
  font-weight: 750;
}

.cases {
  background: #f3f7f2;
}

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

.case-card {
  min-height: 290px;
}

.case-card p {
  color: var(--muted);
}

.case-toggle {
  min-height: 42px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.case-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-weight: 760;
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 18px 20px;
  background: white;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 52, 59, 0.06);
}

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

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

.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.simple-page {
  background: #fffdf8;
}

.page-hero {
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
  background: #f3f7f2;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.12rem;
}

.content-page {
  max-width: 920px;
}

.content-page h2 {
  margin-top: 34px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.content-page p,
.content-page li {
  color: #405960;
}

.content-page a {
  color: var(--teal);
  font-weight: 750;
}

.content-page ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.site-map-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.site-map-list a {
  display: block;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
  color: #cce0dd;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: #e5fff5;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 980px) {
  .principle-grid,
  .module-grid,
  .faq-grid,
  .glossary-grid,
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-shell,
  .roadmap {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 250, 242, 0.78) 56%, rgba(255, 250, 242, 0.25));
  }

  .hero-content {
    margin-inline: 18px;
    padding-top: 72px;
  }

  .trust-band,
  .principle-grid,
  .module-grid,
  .case-grid,
  .faq-grid,
  .glossary-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

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