:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #5f6978;
  --line: #d7dde8;
  --paper: #f4f1ea;
  --white: #ffffff;
  --navy: #101828;
  --blue: #2563eb;
  --cyan: #14b8a6;
  --lime: #b7e45f;
  --coral: #f06f4f;
  --shadow: 0 28px 80px rgba(16, 24, 40, 0.16);
}

* {
  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;
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: rgba(244, 241, 234, 0.91);
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 999px;
}

.nav a {
  min-width: 92px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #303949;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.nav a:hover {
  background: var(--navy);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 94px) clamp(18px, 4vw, 58px) 42px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 30px;
  color: #374151;
  font-size: clamp(1.04rem, 1.6vw, 1.32rem);
}

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

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

.button-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.22);
}

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

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

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 8px;
}

.hero-metrics dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.16)),
    #fffaf0;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 6px;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 462px;
  object-fit: contain;
}

.ticker {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 18px clamp(18px, 4vw, 58px);
  background: var(--navy);
  color: var(--white);
  border-block: 1px solid rgba(255, 255, 255, 0.18);
}

.ticker span {
  flex: 1 0 auto;
  min-width: max-content;
  color: #dbf99a;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.section,
.model-band,
.split-section,
.workflow,
.faq {
  padding: clamp(54px, 8vw, 98px) clamp(18px, 4vw, 58px);
}

.intro,
.readiness {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.12);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy {
  color: #394252;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.section-copy p:last-child,
.panel p:last-child,
.model-card p:last-child,
.check-grid p:last-child,
.steps p:last-child,
.faq p:last-child {
  margin-bottom: 0;
}

.model-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #fbfaf7;
}

.model-card {
  min-height: 320px;
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
}

.model-card-dark {
  background: var(--navy);
  color: var(--white);
}

.model-card-dark p,
.model-card-dark code {
  color: #dbe7f4;
}

.card-index {
  display: inline-flex;
  margin-bottom: 76px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 950;
}

.model-card h3,
.panel h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.model-card p,
.panel p,
.check-grid p,
.steps p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(240, 111, 79, 0.08), rgba(37, 99, 235, 0.08)),
    #f1eee6;
}

.panel,
.code-panel {
  border-radius: 8px;
}

.panel {
  padding: clamp(28px, 5vw, 54px);
}

.panel-dark {
  background: var(--navy);
  color: var(--white);
}

.panel-dark p {
  color: #d8e0ea;
}

.code-panel {
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: #111827;
  color: #dbe7f4;
}

.code-header span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--coral);
}

.code-header span:nth-child(2) {
  background: var(--lime);
}

.code-header span:nth-child(3) {
  background: var(--cyan);
}

.code-header strong {
  margin-left: auto;
  font-size: 0.82rem;
}

pre {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  overflow-x: auto;
  color: #e6edf7;
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  line-height: 1.7;
}

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

.check-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 8px;
}

.check-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.02rem;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1.28fr);
  gap: clamp(28px, 6vw, 76px);
  background: #fbfaf7;
}

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

.steps li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
}

.steps span {
  grid-row: span 2;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 950;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(340px, 1.18fr);
  gap: clamp(28px, 6vw, 76px);
}

.faq details {
  padding: 24px 0;
  border-top: 1px solid rgba(16, 24, 40, 0.14);
}

.faq details:last-child {
  border-bottom: 1px solid rgba(16, 24, 40, 0.14);
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 950;
}

.faq summary::marker {
  color: var(--blue);
}

.faq details p {
  margin: 14px 0 0;
  max-width: 720px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 58px);
  background: var(--navy);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: #cad3df;
  text-align: right;
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .intro,
  .readiness,
  .split-section,
  .workflow,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 370px;
  }

  .hero-visual img {
    min-height: 330px;
  }

  .model-band,
  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-metrics,
  .steps li {
    grid-template-columns: 1fr;
  }

  .steps span {
    grid-row: auto;
  }

  .button {
    width: 100%;
  }

  .ticker {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .site-footer p {
    text-align: left;
  }
}
