:root {
  --navy: #313e50;
  --navy-deep: #1e2a36;
  --navy-mid: #263240;
  --slate: #455561;
  --teal: #89b0ae;
  --teal-dark: #6a9896;
  --cream: #e3e4db;
  --off-white: #f2f2ec;
  --white: #ffffff;
  --positive: #2d8a6e;
  --border: #d5d5cd;
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.14);
  --shadow-md: 0 18px 36px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.06);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--navy);
  border: 1px solid rgba(49, 62, 80, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover {
  border-color: rgba(137, 176, 174, 0.52);
  color: var(--navy);
  transform: translateY(-1px);
}

nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(213, 213, 205, 0.92);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 8px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a,
.nav-home-link {
  text-decoration: none;
  color: var(--slate);
  font-size: 14px;
}

.nav-links a:hover,
.nav-home-link:hover {
  color: var(--navy);
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.page-hero {
  padding: 72px 0 60px;
  background:
    linear-gradient(180deg, rgba(227, 228, 219, 0.38) 0%, rgba(255, 255, 255, 0) 100%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 40px;
  align-items: center;
}

.hero-crumb {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 13px;
}

.hero-crumb a {
  text-decoration: none;
}

.hero-crumb a:hover {
  color: var(--navy);
}

.hero-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.72;
}

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

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

.fact-card {
  min-height: 100%;
  border: 1px solid rgba(49, 62, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.fact-label {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-value {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
}

.hero-visual {
  min-width: 0;
}

.visual-shell {
  border: 1px solid rgba(49, 62, 80, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #202933;
  box-shadow: var(--shadow-lg);
}

.visual-chrome {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.traffic-red { background: #ff5f57; }
.traffic-yellow { background: #ffbd2e; }
.traffic-green { background: #28c840; }

.visual-title {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-display);
  font-size: 12px;
}

.visual-shell img {
  width: 100%;
  height: auto;
  background: #161d24;
}

.visual-caption {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.55;
}

.content-section {
  padding: 88px 0;
}

.content-section.alt {
  background: var(--off-white);
}

.section-head {
  margin: 0 auto 52px;
  max-width: 720px;
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin: 0 auto 14px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 auto 14px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.68;
}

.requirements-grid,
.mech-grid,
.note-grid {
  display: grid;
  gap: 24px;
}

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

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

.note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.panel,
.mech-card,
.requirement-card,
.note-card,
.mode-card {
  border: 1px solid rgba(49, 62, 80, 0.1);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.requirement-card,
.mech-card,
.note-card,
.mode-card {
  padding: 24px 22px;
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.card-copy {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

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

.panel {
  padding: 28px 24px;
}

.panel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.panel-sub {
  margin: 0 0 22px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.68;
}

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

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(137, 176, 174, 0.18);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item h3 {
  margin: 3px 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
}

.step-item p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.65;
}

.mech-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mech-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(137, 176, 174, 0.18);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.mech-card h3,
.mode-card h3,
.note-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.mech-card p,
.mode-card p,
.note-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.68;
}

.note-card ul,
.mode-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.6;
}

.note-card li,
.mode-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.note-card li::before,
.mode-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--teal);
}

.cta-band {
  padding: 88px 0;
  background: var(--navy);
  color: var(--cream);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-copy {
  max-width: 620px;
}

.cta-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.cta-text {
  margin: 0;
  color: rgba(227, 228, 219, 0.78);
  font-size: 16px;
  line-height: 1.68;
}

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

.cta-band .btn-primary {
  background: var(--teal);
  color: var(--navy);
}

.cta-band .btn-secondary {
  color: var(--cream);
  border-color: rgba(227, 228, 219, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.cta-band .btn-secondary:hover {
  border-color: rgba(227, 228, 219, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
}

footer {
  background: var(--navy-deep);
  color: var(--cream);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-copy {
  color: rgba(227, 228, 219, 0.72);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

@media (max-width: 1040px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 14px 8px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

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

  .hero-grid {
    align-items: start;
  }

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

@media (max-width: 820px) {
  .page-hero,
  .content-section,
  .cta-band {
    padding: 72px 0;
  }

  .hero-grid,
  .setup-grid,
  .mode-grid,
  .note-grid,
  .requirements-grid,
  .mech-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 24px, 1120px);
  }

  .hero-title,
  .section-title,
  .cta-title {
    max-width: none;
  }

  .hero-actions,
  .cta-actions,
  .fact-grid {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .panel,
  .requirement-card,
  .mech-card,
  .note-card,
  .mode-card {
    padding: 22px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
