:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #5f6a61;
  --paper: #f7f4ea;
  --surface: #fffdf5;
  --line: #d9d2bf;
  --green: #1e6b4e;
  --blue: #245b9b;
  --red: #c8523b;
  --amber: #d99a2b;
  --dark: #101816;
  --light-green: #dcead6;
  --light-blue: #dfeaf6;
  --shadow: 0 24px 70px rgba(23, 32, 26, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

.topbar {
  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, 54px);
  border-bottom: 1px solid rgba(23, 32, 26, 0.1);
  background: rgba(247, 244, 234, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.visual-header,
.language-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--dark);
  color: var(--paper);
  font-weight: 900;
}

.brand-accent {
  color: var(--green);
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.nav-cta,
.button,
.audit-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta {
  padding: 10px 14px;
}

.section-band {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-copy,
.section-heading,
.final-cta > div,
.cockpit-visual,
.audit-form {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin: 0;
  font-size: 6.4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.hero-lede,
.section-heading p,
.final-cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.24rem;
}

.hero-lede {
  margin: 26px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-proof div {
  min-height: 124px;
  padding: 18px;
  background: rgba(255, 253, 245, 0.78);
}

.hero-proof dt {
  font-weight: 900;
}

.hero-proof dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cockpit-visual {
  min-height: 540px;
  padding: 22px;
  border: 1px solid rgba(23, 32, 26, 0.12);
  background:
    linear-gradient(135deg, rgba(30, 107, 78, 0.11), transparent 42%),
    linear-gradient(315deg, rgba(36, 91, 155, 0.15), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.visual-header {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 850;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--green);
  border-radius: 50%;
}

.tiny-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.metric-panel,
.timeline-panel,
.language-panel {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.88);
}

.metric-panel span,
.package-kicker,
.flow-step span,
.ops-matrix span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 2.35rem;
  line-height: 1;
}

.metric-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.metric-panel.alt {
  background: var(--light-blue);
}

.timeline-panel {
  grid-column: span 2;
}

.timeline-panel h2,
.language-panel h2 {
  font-size: 1.05rem;
}

.timeline-panel ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.timeline-panel li {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-panel li.done {
  background: var(--light-green);
  color: var(--green);
}

.timeline-panel li.active {
  border-color: var(--amber);
  background: #fff4d7;
  color: #7a4e00;
}

.language-panel {
  grid-column: span 2;
}

.language-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.language-row span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--dark);
  color: var(--paper);
  font-weight: 950;
}

.pale {
  background: var(--surface);
}

.contrast {
  background: var(--dark);
  color: var(--paper);
}

.contrast .eyebrow {
  color: #a8d8bd;
}

.contrast .section-heading p,
.contrast .package p {
  color: rgba(247, 244, 234, 0.72);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 36px;
}

.section-heading.left {
  margin: 0;
}

.audit-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.audit-item,
.package {
  min-height: 232px;
  padding: 24px;
  background: var(--paper);
}

.audit-item span {
  color: var(--red);
  font-weight: 950;
}

.audit-item h3 {
  margin-top: 42px;
}

.audit-item p,
.package p,
.flow-step p {
  color: var(--muted);
}

.flow-board {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 26px minmax(160px, 1fr) 26px minmax(160px, 1fr) 26px minmax(160px, 1fr) 26px minmax(160px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.flow-step {
  min-height: 214px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flow-step.current {
  border-color: var(--green);
  background: var(--light-green);
}

.flow-step h3 {
  margin-top: 36px;
}

.flow-arrow {
  position: relative;
  min-height: 100%;
}

.flow-arrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  content: "";
}

.flow-arrow::after {
  position: absolute;
  top: calc(50% - 5px);
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
  content: "";
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgba(247, 244, 234, 0.2);
  background: rgba(247, 244, 234, 0.2);
}

.package {
  background: rgba(247, 244, 234, 0.06);
  border: 0;
}

.package.featured {
  background: rgba(168, 216, 189, 0.16);
}

.package h3 {
  margin-top: 18px;
}

.package strong {
  display: block;
  margin-top: 28px;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.ops-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.ops-matrix div {
  min-height: 156px;
  padding: 22px;
  background: var(--paper);
}

.ops-matrix strong {
  display: block;
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.62fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.audit-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.audit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.audit-form input,
.audit-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.audit-form button {
  min-height: 48px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(23, 32, 26, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero,
  .ops-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .cockpit-visual {
    min-height: auto;
  }

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

  .flow-board {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    min-height: 32px;
  }

  .flow-arrow::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
  }

  .flow-arrow::after {
    top: auto;
    right: calc(50% - 5px);
    bottom: 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-lede,
  .section-heading p,
  .final-cta p {
    font-size: 1.05rem;
  }

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

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section-band {
    padding-right: 32px;
    padding-left: 24px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-lede,
  .hero-actions,
  .hero-proof,
  .cockpit-visual,
  .section-heading,
  .audit-grid,
  .package-grid,
  .ops-matrix,
  .flow-board,
  .audit-form {
    width: 100%;
    max-width: calc(100vw - 64px);
  }

  .hero-proof,
  .audit-grid,
  .package-grid,
  .ops-matrix,
  .cockpit-grid,
  .timeline-panel ol {
    grid-template-columns: 1fr;
  }

  .timeline-panel,
  .language-panel {
    grid-column: span 1;
  }

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