:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #151a23;
  --muted: #637083;
  --line: #dde4ec;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --primary: #0f766e;
  --primary-dark: #12443f;
  --indigo: #3654a6;
  --amber: #b86b16;
  --coral: #b94a48;
  --code: #111827;
  --shadow: 0 24px 80px rgba(18, 31, 47, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

h1 {
  margin: 0;
  font-size: 6.7rem;
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.04;
  letter-spacing: 0;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding: 8px 20px;
  background: #111827;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.top-strip strong { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(22px, 5vw, 72px);
  background: rgba(246, 248, 251, .92);
  border-bottom: 1px solid rgba(221, 228, 236, .86);
  backdrop-filter: blur(18px);
}

.site-header.compact { background: rgba(255, 255, 255, .93); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 -10px 18px rgba(15, 118, 110, .38);
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
}

nav a:hover { background: #e9eef6; }

.nav-cta {
  background: var(--ink);
  color: #fff;
}

nav .nav-cta:hover { background: var(--primary-dark); }

.hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
  padding: 86px clamp(22px, 5vw, 76px) 78px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 13, 22, .9), rgba(7, 13, 22, .68) 48%, rgba(7, 13, 22, .24)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=2200&q=82") center/cover;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero .eyebrow { color: #f0b35c; }

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.24rem;
}

.hero-actions, .inline-actions, .doc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 760;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button.primary { background: var(--primary); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.ghost { color: #fff; border-color: rgba(255, 255, 255, .42); }
.button:hover { transform: translateY(-1px); }
.button.primary:hover { background: #0b5f59; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-notes span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
}

.hero-panel {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.panel-top small { color: rgba(255, 255, 255, .62); }

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.panel-metrics div {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.panel-metrics div:last-child { border-right: 0; }
.panel-metrics span, .route-preview small { color: rgba(255, 255, 255, .58); font-size: 12px; }
.panel-metrics strong { display: block; margin-top: 6px; font-size: 1rem; }

.route-preview {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .12);
}

.route-preview div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 15px 18px;
  background: rgba(15, 23, 42, .9);
}

.route-preview span { color: rgba(255, 255, 255, .7); }
.route-preview strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.route-preview small { grid-column: 1 / -1; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 19px clamp(18px, 3vw, 34px);
  background: #fff;
}

.signal-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.signal-strip strong {
  display: block;
  margin-top: 7px;
  font-size: 1.04rem;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(22px, 5vw, 76px);
}

.section-head {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-head h2 + p, .split-band p { margin-top: 18px; }

.intro-band { background: #fff; }

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

.feature-grid article, .timeline article, .endpoint-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-grid article:hover, .endpoint-list article:hover {
  transform: translateY(-2px);
  border-color: #c8d4e2;
  box-shadow: 0 16px 34px rgba(30, 41, 59, .08);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(15, 118, 110, .1);
  color: var(--primary);
  font-weight: 800;
}

.feature-icon.accent { background: rgba(184, 107, 22, .12); color: var(--amber); }
.feature-icon.blue { background: rgba(54, 84, 166, .12); color: var(--indigo); }
.feature-icon.red { background: rgba(185, 74, 72, .12); color: var(--coral); }

.feature-kicker, .endpoint-list span, .timeline span, .doc-aside span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.feature-grid p, .timeline p, .endpoint-list p { margin-top: 12px; }

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(238, 245, 243, .98), rgba(243, 246, 252, .98)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=72") center/cover;
}

.service-panel {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-head, .endpoint-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  background: #111827;
}

.service-head {
  grid-template-columns: 1fr;
  padding: 18px;
  background: #0f172a;
}

.service-head span, .endpoint-row span { color: rgba(255, 255, 255, .58); }
.service-head strong { font-size: 1.05rem; }
.endpoint-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

.service-panel pre {
  margin: 0;
  border-radius: 0;
}

.ops-band { background: #fff7ed; }

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

.timeline article {
  background: #fff;
}

.timeline span {
  color: var(--amber);
  font-size: 13px;
}

.experience-band {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  background: #f8fafc;
}

.experience-media {
  min-height: 390px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .08), rgba(17, 24, 39, .18)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.experience-copy p { margin-top: 18px; max-width: 720px; }

.experience-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.experience-list span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 720;
}

.docs-page { background: #fff; }

.models-page { background: #f7f9fc; }

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: end;
  padding: 92px clamp(22px, 5vw, 76px) 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
    url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=2200&q=82") center/cover;
}

.docs-hero h1 {
  color: var(--ink);
  font-size: 4.8rem;
}

.docs-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.docs-quick-panel {
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 44px rgba(17, 24, 39, .12);
  backdrop-filter: blur(14px);
}

.docs-quick-panel span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.docs-quick-panel strong { line-height: 1.5; }
.docs-quick-panel small { color: var(--muted); line-height: 1.65; }

.doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 46px clamp(22px, 5vw, 76px);
}

.doc-aside {
  align-self: start;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.doc-aside a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  color: #344256;
}

.doc-aside a:hover { background: #e9eef6; }

.doc-aside hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.doc-aside strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.doc-content {
  min-width: 0;
}

.doc-content h2 { font-size: 2.45rem; }
.doc-content p, .doc-content ol { margin-top: 16px; color: var(--muted); line-height: 1.8; }

.doc-callout {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #bfd4cf;
  border-radius: 8px;
  background: var(--surface-soft);
}

.doc-callout span { color: var(--muted); line-height: 1.7; }

pre {
  margin: 22px 0 0;
  padding: 18px;
  overflow-x: auto;
  background: var(--code);
  color: #e8fff5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.docs-list { background: #f7f9fc; }

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

.flow-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.tenant-flow { background: #fff; }

.models-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: end;
  padding: 92px clamp(22px, 5vw, 76px) 64px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 18, 31, .9), rgba(13, 18, 31, .72) 48%, rgba(13, 18, 31, .36)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2200&q=82") center/cover;
}

.models-hero h1 {
  font-size: 5.2rem;
}

.models-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
}

.catalog-summary {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  box-shadow: var(--shadow);
}

.catalog-summary div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(17, 24, 39, .86);
}

.catalog-summary span {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.catalog-summary strong {
  line-height: 1.45;
}

.catalog-band {
  background: #fff;
}

.capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 16px;
  align-items: start;
}

.capability-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}

.capability-card.featured {
  border-color: #a9cfc8;
  background:
    linear-gradient(180deg, rgba(238, 245, 243, .78), #fff 36%);
}

.capability-head {
  display: grid;
  gap: 7px;
}

.capability-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.capability-head strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

.model-group {
  display: grid;
  gap: 12px;
}

.model-group.compact {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.model-group h3 {
  font-size: 1rem;
  color: #2b3645;
}

.model-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #344256;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.3;
}

.model-note-band {
  background: #eef5f3;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 30px clamp(22px, 5vw, 76px);
  background: #111827;
  color: #fff;
}

.site-footer span, .site-footer p { color: rgba(255, 255, 255, .68); }

.site-footer p {
  grid-column: 1 / -1;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; }

@media (max-width: 1040px) {
  h1 { font-size: 5.2rem; }
  h2 { font-size: 2.55rem; }
  .hero, .docs-hero { grid-template-columns: 1fr; }
  .hero-panel, .docs-quick-panel { width: min(560px, 100%); }
  .feature-grid, .signal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-band, .split-band, .doc-layout, .models-hero, .capability-grid { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
}

@media (max-width: 720px) {
  h1 { font-size: 3.9rem; }
  h2, .doc-content h2 { font-size: 2.05rem; }
  .docs-hero h1 { font-size: 3.1rem; }
  .models-hero h1 { font-size: 3.25rem; }
  .top-strip { justify-content: flex-start; overflow-x: auto; }
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero { min-height: 68vh; padding-top: 64px; }
  .hero p:not(.eyebrow), .docs-hero p:not(.eyebrow) { font-size: 1.04rem; }
  .feature-grid, .timeline, .endpoint-list, .signal-strip, .experience-list { grid-template-columns: 1fr; }
  .panel-metrics { grid-template-columns: 1fr; }
  .panel-metrics div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .panel-metrics div:last-child { border-bottom: 0; }
  .route-preview div, .service-head, .endpoint-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
