:root {
  color-scheme: light;
  --ink: #101923;
  --muted: #52606d;
  --paper: #f5f7f8;
  --white: #ffffff;
  --line: #d7dee2;
  --teal: #159989;
  --teal-dark: #087064;
  --yellow: #efc75e;
  --coral: #e26c55;
}

* { 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;
  letter-spacing: 0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: 0; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(24px, 5vw, 72px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; }
.brand img, .footer-brand img { border-radius: 8px; }
.brand { justify-self: start; font-size: 18px; }
nav { display: flex; gap: 30px; font-size: 14px; }
nav a { color: rgba(255,255,255,.82); }
nav a:hover { color: var(--white); }
.header-login {
  justify-self: end;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}
.header-login:hover { background: var(--white); color: var(--ink); }

.hero {
  position: relative;
  min-height: 620px;
  height: min(720px, calc(100vh - 48px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #101923;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-shade { position: absolute; inset: 0; background: rgba(7, 14, 20, .68); }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 128px);
  padding-top: 54px;
}
.status-line { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; color: rgba(255,255,255,.8); font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(239,199,94,.16); }
.status-line.online .status-dot { background: #4ed6a7; box-shadow: 0 0 0 5px rgba(78,214,167,.16); }
.status-line.offline .status-dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(226,108,85,.18); }
.hero h1 { margin: 0; font-size: clamp(58px, 7vw, 104px); line-height: .96; font-weight: 800; }
.hero-lead { margin: 26px 0 10px; max-width: 690px; font-size: clamp(26px, 3vw, 42px); line-height: 1.25; font-weight: 680; }
.hero-copy { max-width: 610px; margin: 0; color: rgba(255,255,255,.76); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-action, .secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 720;
}
.primary-action { background: var(--teal); color: var(--white); }
.primary-action:hover { background: var(--teal-dark); }
.secondary-action { border: 1px solid rgba(255,255,255,.5); color: var(--white); }
.secondary-action:hover { background: rgba(255,255,255,.1); }
.section-cue { position: absolute; z-index: 1; left: 50%; bottom: 24px; display: grid; justify-items: center; gap: 2px; color: rgba(255,255,255,.72); font-size: 12px; }

.section-band { padding: 96px clamp(24px, 6vw, 88px); }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 16px 54px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .integration-copy h2, .final-action h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.section-heading > p:last-child, .integration-copy > p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--teal-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.feature-grid article { min-width: 0; padding: 28px 34px 0 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 34px; }
.feature-grid article:last-child { border-right: 0; }
.feature-index { color: var(--coral); font-size: 13px; font-weight: 800; }
.feature-grid h3 { margin: 40px 0 12px; font-size: 23px; }
.feature-grid p { margin: 0; color: var(--muted); }

.integration { color: var(--white); background: var(--ink); }
.integration-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr); gap: 72px; align-items: center; }
.integration .eyebrow { color: #65cdbf; }
.integration-copy > p { margin-top: 18px; color: rgba(255,255,255,.68); }
.base-url-block { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.base-url-block > span { grid-column: 1 / -1; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; }
.base-url-block code { min-width: 0; overflow-wrap: anywhere; color: var(--yellow); font-size: 15px; }
.base-url-block button, .code-toolbar button { color: var(--white); background: transparent; border: 0; cursor: pointer; font-size: 13px; font-weight: 700; }
.base-url-block button:hover, .code-toolbar button:hover { color: #65cdbf; }
.code-surface { min-width: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #080d12; box-shadow: 18px 18px 0 rgba(21,153,137,.22); }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62); font-size: 12px; }
pre { margin: 0; padding: 26px; overflow-x: auto; color: #d9e6e9; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.models { background: var(--white); }
.compact-heading { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); }
.model-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-list div { display: grid; gap: 22px; min-height: 150px; align-content: center; padding: 24px; border-right: 1px solid var(--line); }
.model-list div:last-child { border-right: 0; }
.model-list strong { font-size: 19px; }
.model-list span { color: var(--muted); }
.final-action { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin-top: 80px; padding: 42px 48px; color: var(--white); background: var(--teal-dark); border-radius: 8px; }
.final-action h2 { font-size: 34px; }
.final-action p { margin: 8px 0 0; color: rgba(255,255,255,.72); }
.light-action { flex: 0 0 auto; background: var(--white); color: var(--teal-dark); }
.light-action:hover { background: var(--yellow); color: var(--ink); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 28px clamp(24px, 6vw, 88px); color: #66727b; background: var(--paper); font-size: 12px; }
footer p { margin: 0; }
footer > a { justify-self: end; }
footer > a:hover { color: var(--teal-dark); }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; }
  nav { display: none; }
  .hero { height: 700px; min-height: 84vh; }
  .hero-content { margin: 0 24px; width: calc(100% - 48px); }
  .hero h1 { font-size: 64px; }
  .hero-lead { font-size: 30px; }
  .section-band { padding-top: 72px; padding-bottom: 72px; }
  .section-heading, .compact-heading, .integration-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { padding: 24px 0 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid h3 { margin-top: 18px; }
  .integration-layout { gap: 46px; }
  .model-list { grid-template-columns: repeat(2, 1fr); }
  .model-list div:nth-child(2) { border-right: 0; }
  .model-list div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .final-action { align-items: flex-start; flex-direction: column; padding: 32px; }
  footer { grid-template-columns: 1fr; justify-items: start; }
  footer > a { justify-self: start; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 18px; }
  .header-login { padding: 8px 11px; }
  .hero { height: 690px; }
  .hero-media { object-position: 52% center; }
  .hero-content { margin: 0 20px; width: calc(100% - 40px); padding-top: 38px; }
  .hero h1 { font-size: 54px; }
  .hero-lead { font-size: 26px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { display: grid; }
  .primary-action, .secondary-action { width: 100%; }
  .section-cue { display: none; }
  .section-band { padding: 60px 20px; }
  .section-heading h2, .integration-copy h2 { font-size: 34px; }
  .base-url-block { grid-template-columns: 1fr; }
  .base-url-block button { justify-self: start; padding: 6px 0; }
  .code-surface { box-shadow: 8px 8px 0 rgba(21,153,137,.22); }
  pre { padding: 20px 16px; font-size: 11px; }
  .model-list { grid-template-columns: 1fr; }
  .model-list div, .model-list div:nth-child(2) { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-list div:last-child { border-bottom: 0; }
  .final-action { margin-top: 56px; padding: 28px 22px; }
  .final-action h2 { font-size: 28px; }
}

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