:root {
  color-scheme: dark;
  --bg: #020504;
  --surface: #090c19;
  --surface-strong: #0c1125;
  --surface-soft: #0b0e18;
  --border: rgba(151, 166, 206, 0.18);
  --border-strong: rgba(151, 166, 206, 0.28);
  --text: #f4f6fb;
  --text-soft: #a3a9bc;
  --text-muted: #737b91;
  --cyan: #16c5e8;
  --cyan-soft: #4ee7ef;
  --container: 1180px;
  --header-height: 72px;
  --model-ribbon-height: 46px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
  scroll-padding-bottom: calc(var(--model-ribbon-height) + env(safe-area-inset-bottom));
}

body {
  margin: 0;
  padding-bottom: calc(var(--model-ribbon-height) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #06080d;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 69% 13%, rgba(8, 96, 104, 0.15), transparent 30%),
    radial-gradient(circle at 25% 63%, rgba(23, 53, 103, 0.08), transparent 28%);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  /* border-bottom: 1px solid rgba(112, 232, 221, 0.16); */
  background: linear-gradient(180deg, rgba(13, 25, 25, 0.56), rgba(2, 5, 4, 0.32));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.scrolled {
  border-color: rgba(112, 232, 221, 0.22);
  background: linear-gradient(180deg, rgba(13, 25, 25, 0.68), rgba(2, 5, 4, 0.46));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1430px);
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  border-radius: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.desktop-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 42px;
  border: 1px solid rgba(161, 174, 198, 0.28);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.login-link:hover {
  border-color: rgba(161, 174, 198, 0.54);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 200ms ease,
    background 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  border-color: rgba(67, 224, 245, 0.28);
  background: linear-gradient(180deg, #24b8d7, #138eae);
  box-shadow: 0 11px 28px rgba(18, 184, 218, 0.24);
  color: #fff;
}

.button-primary:hover {
  box-shadow: 0 14px 38px rgba(18, 184, 218, 0.36);
}

.button-secondary {
  border-color: rgba(164, 178, 202, 0.36);
  background: rgba(255, 255, 255, 0.02);
  color: #e6e8ef;
}

.button-secondary:hover {
  border-color: rgba(186, 200, 224, 0.58);
  background: rgba(255, 255, 255, 0.05);
}

.button-small {
  min-height: 42px;
  padding: 0 19px;
  font-size: 13.5px;
}

.menu-button,
.mobile-menu {
  display: none;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 1370px;
  padding-top: var(--header-height);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(450px, 0.9fr);
  align-items: center;
  gap: 64px;
  width: min(calc(100% - 48px), var(--container));
  min-height: 780px;
  margin: 0 auto;
  transform: translateY(-104px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan-soft);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4.8vw, 66px);
  font-weight: 800;
  line-height: 1.04;
}

.hero-description {
  max-width: 500px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions .button {
  font-size: 15px;
}

.morph-showcase {
  position: relative;
  width: 100%;
  min-height: 650px;
  min-width: 0;
  isolation: isolate;
}

.morph-stage {
  position: absolute;
  inset: 0;
  overflow: visible;
}

#morphCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(48, 215, 199, 0.16));
  pointer-events: none;
}

.morph-toolbar {
  position: absolute;
  right: 0;
  bottom: 4%;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.morph-kicker,
.morph-controls {
  display: none;
}

.morph-state {
  color: var(--cyan-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  transition: opacity 350ms ease;
}

.morph-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: opacity 350ms ease;
  pointer-events: none;
}

.morph-showcase.ready .morph-loading {
  opacity: 0;
}

.gateway-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 150px 1.35fr;
  gap: 18px;
  width: min(calc(100% - 48px), 1060px);
  margin: 10px auto 0;
  padding: 18px 18px 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(125deg, rgba(40, 32, 95, 0.28), rgba(11, 55, 76, 0.26) 63%, rgba(11, 13, 27, 0.5)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.route-signal {
  position: absolute;
  top: 18px;
  left: 16%;
  z-index: 3;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: signal-pass 4.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes signal-pass {
  0%,
  12% {
    left: 12%;
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    left: 84%;
    opacity: 0;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.gateway-box {
  min-height: 235px;
  padding: 26px 22px;
  border: 1px solid rgba(148, 161, 197, 0.14);
  border-radius: 22px;
  background: rgba(5, 8, 21, 0.72);
}

.panel-label {
  margin: 0 0 22px;
  color: #77809a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(154, 168, 198, 0.17);
  border-radius: 11px;
  color: #a9afc0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.endpoint strong {
  color: #59d083;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid rgba(154, 168, 198, 0.15);
  border-radius: 8px;
  color: #858ca0;
  font-size: 10px;
}

.route-core {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 184px;
  place-items: center;
  padding: 18px 10px;
  text-align: center;
}

.route-core::before,
.route-core::after {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(140, 177, 255, 0.78));
}

.route-core::before {
  left: -28px;
}

.route-core::after {
  right: -28px;
  transform: rotate(180deg);
}

.core-orbit {
  position: relative;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
}

.core-orbit::before,
.core-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.core-orbit::before {
  inset: -4px;
  border: 1px solid rgba(91, 125, 255, 0.42);
  border-right-color: rgba(239, 79, 216, 0.7);
  border-bottom-color: rgba(33, 215, 255, 0.68);
  animation: orbit 11s linear infinite;
}

.core-orbit::after {
  inset: -15px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  animation: orbit 18s linear infinite reverse;
}

.core-orbit img {
  width: 84px;
  height: 84px;
  padding: 4px;
  object-fit: cover;
  background: #fff;
  border-radius: 25px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 46px rgba(91, 125, 255, 0.38);
}

.core-name {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.model-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.model-pills span {
  position: relative;
  padding: 13px 14px 13px 31px;
  border: 1px solid rgba(154, 168, 198, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: #aeb4c4;
  font-size: 12px;
  font-weight: 650;
}

.model-pills span::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  content: "";
  transform: translateY(-50%);
}

.model-pills .mint { color: #68e4bf; }
.model-pills .orange { color: #ffac52; }
.model-pills .blue { color: #75a2ff; }
.model-pills .white { color: #e6eaf4; }
.model-pills .indigo { color: #6d7fff; }
.model-pills .pink { color: #dc59d5; }

.gateway-features {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 42px;
  border: 1px solid rgba(154, 168, 198, 0.15);
  border-radius: 12px;
}

.gateway-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8f95a8;
  font-size: 11px;
}

.gateway-features span + span {
  border-left: 1px solid rgba(154, 168, 198, 0.12);
}

.gateway-features strong {
  color: #d3d6e0;
}

.model-ribbon {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 32;
  display: flex;
  width: 100%;
  max-width: none;
  height: calc(var(--model-ribbon-height) + env(safe-area-inset-bottom));
  min-height: calc(var(--model-ribbon-height) + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0 28px env(safe-area-inset-bottom);
  overflow: hidden;
  border-top: 1px solid rgba(112, 232, 221, 0.18);
  background: linear-gradient(180deg, rgba(12, 22, 23, 0.48), rgba(0, 0, 0, 0.3));
  opacity: 1;
  transform: none;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.model-ribbon span {
  flex: 0 0 auto;
  padding: 0;
  color: #727889;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 150px 0 40px;
}

.section-heading {
  margin-bottom: 54px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 64px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 790;
  line-height: 1.08;
}

.quickstart-copy h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 790;
  line-height: 1.08;
}

.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1;
}

.split-heading > p {
  max-width: 450px;
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.model-card {
  position: relative;
  grid-column: span 2;
  min-height: 210px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(13, 17, 35, 0.98), rgba(6, 11, 22, 0.98));
  transition: transform 260ms var(--ease), border-color 260ms ease;
}

.model-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 180px;
  border-radius: 50%;
  background: rgba(24, 134, 155, 0.09);
  filter: blur(40px);
  content: "";
}

.model-card-claude::after {
  background: rgba(221, 119, 75, 0.13);
}

.model-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.model-card-wide {
  grid-column: span 3;
}

.model-card small {
  position: absolute;
  top: 27px;
  right: 26px;
  color: #788198;
  font-size: 9px;
  font-weight: 800;
}

.model-badge {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 13px;
  color: #071019;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.badge-mint { background: #68e4c7; }
.badge-orange { background: #ffae55; }
.badge-blue { background: #6891e2; }
.badge-white { background: #c8ccda; }
.badge-indigo { background: #6478df; }
.badge-pink { background: #b94caf; }

.model-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 750;
}

.model-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.capabilities-section {
  padding-top: 180px;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.capability-card {
  position: relative;
  min-height: 290px;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10, 13, 26, 0.98), rgba(5, 9, 17, 0.98));
}

.capability-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1.08fr);
  align-items: center;
  gap: 40px;
  grid-column: 1 / -1;
  min-height: 330px;
}

.card-index {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 58px;
  place-items: center;
  border: 1px solid rgba(155, 169, 199, 0.16);
  border-radius: 11px;
  color: #7b8296;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.capability-main .card-index {
  position: absolute;
  top: 34px;
  left: 32px;
  align-self: start;
}

.capability-card h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 3vw, 33px);
  font-weight: 770;
  line-height: 1.16;
}

.capability-card p {
  max-width: 530px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.route-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(155, 169, 199, 0.16);
  border-radius: 18px;
  background: rgba(3, 6, 14, 0.54);
}

.route-column {
  display: grid;
  gap: 9px;
}

.route-column span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(155, 169, 199, 0.14);
  border-radius: 9px;
  color: #adb3c3;
  font-size: 12px;
  font-weight: 650;
}

.route-map strong {
  display: grid;
  min-width: 74px;
  min-height: 48px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(180deg, #54d5e8, #29abc7);
  color: #071019;
  font-size: 12px;
}

.quickstart-section {
  width: min(calc(100% - 48px), var(--container));
  padding-top: 190px;
}

.quickstart-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: center;
  padding: 50px 48px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(16, 21, 43, 0.96), rgba(6, 10, 20, 0.98));
}

.quickstart-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 58px);
}

.quickstart-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
}

.quickstart-copy ol {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.quickstart-copy li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c7cbd6;
  font-size: 14px;
}

.quickstart-copy li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #edf0f5;
  color: #111723;
  font-size: 12px;
  font-weight: 800;
}

.code-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 166, 195, 0.2);
  border-radius: 18px;
  background: #030611;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(153, 166, 195, 0.14);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d24ba6;
}

.window-dots i:nth-child(2) { background: #dba342; }
.window-dots i:nth-child(3) { background: #70c96d; }

#copyButton {
  min-width: 78px;
  min-height: 38px;
  border: 1px solid rgba(153, 166, 195, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #9299aa;
  cursor: pointer;
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

#copyButton:hover {
  border-color: rgba(153, 166, 195, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #e9ebf2;
}

#codeSample {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #c6cbd7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.comment { color: #606a80; }
.command { color: #51d8d4; }
.string { color: #8aa8f6; }

.faq-section {
  padding-top: 190px;
}

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

.faq-grid details {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(9, 12, 24, 0.9);
  transition: border-color 200ms ease, background 200ms ease;
}

.faq-grid details[open] {
  border-color: rgba(45, 199, 225, 0.32);
  background: rgba(11, 16, 31, 0.98);
}

.faq-grid summary {
  position: relative;
  min-height: 70px;
  padding: 22px 60px 22px 22px;
  cursor: pointer;
  list-style: none;
  color: #c8cbd5;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.6;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::before,
.faq-grid summary::after {
  position: absolute;
  top: 50%;
  right: 25px;
  width: 13px;
  height: 1.5px;
  background: var(--cyan);
  content: "";
  transition: transform 200ms ease;
}

.faq-grid summary::after {
  transform: rotate(90deg);
}

.faq-grid details[open] summary::after {
  transform: rotate(0);
}

.faq-grid details p {
  margin: -4px 22px 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(153, 166, 195, 0.12);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.final-cta {
  position: relative;
  width: min(calc(100% - 48px), var(--container));
  min-height: 510px;
  margin: 150px auto 110px;
  padding: 75px 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(rgba(13, 18, 39, 0.94), rgba(6, 9, 21, 0.98)),
    linear-gradient(90deg, transparent 24px, rgba(59, 90, 137, 0.18) 25px),
    linear-gradient(transparent 24px, rgba(59, 90, 137, 0.18) 25px);
  background-size: auto, 25px 25px, 25px 25px;
  text-align: center;
}

.final-cta::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 65%;
  height: 100%;
  background: radial-gradient(circle, rgba(47, 90, 181, 0.12), transparent 65%);
  content: "";
  transform: translateX(-50%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin-bottom: 22px;
}

.final-cta > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 max(48px, calc((100% - var(--container)) / 2));
  border-top: 1px solid rgba(138, 151, 175, 0.12);
  color: #737b90;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.model-ribbon.reveal,
.model-ribbon.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  :root { --container: 920px; }

  .desktop-nav { gap: 22px; }

  .hero-inner {
    grid-template-columns: 1fr 0.85fr;
    gap: 24px;
  }

  .gateway-panel { grid-template-columns: 1fr 120px 1.2fr; }

  .split-heading { gap: 36px; }

  .capability-main {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
  }

  .quickstart-panel { gap: 35px; }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --radius: 20px;
  }

  .header-inner { width: min(calc(100% - 32px), 760px); }
  .desktop-nav,
  .login-link { display: none; }

  .menu-button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 11px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #f0f3fa;
    transition: transform 220ms ease, opacity 160ms ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    z-index: 110;
    display: grid;
    padding: 18px 24px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: rgba(7, 10, 23, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  }

  .mobile-menu[hidden] { display: none; }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 58px;
    color: #b3b8c8;
    font-weight: 650;
  }

  .mobile-menu a + a { border-top: 1px solid rgba(146, 161, 190, 0.1); }

  .hero {
    min-height: 1770px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 32px), 640px);
    min-height: 1190px;
    padding-top: 120px;
    text-align: center;
    transform: none;
  }

  .hero-copy { width: 100%; }
  .hero-description { margin: 0 auto; }
  .hero-actions { justify-content: center; }

  .morph-showcase {
    width: min(100%, 540px);
    min-height: 600px;
    margin-top: 50px;
  }

  .gateway-panel {
    grid-template-columns: 1fr;
    width: min(calc(100% - 32px), 640px);
    padding-bottom: 180px;
  }

  .route-signal {
    display: none;
  }

  .route-core {
    order: -1;
    min-height: 180px;
  }

  .route-core::before,
  .route-core::after {
    display: none;
  }
  .gateway-features { grid-template-columns: 1fr; }
  .gateway-features span { min-height: 44px; }
  .gateway-features span + span { border-top: 1px solid rgba(154, 168, 198, 0.12); border-left: 0; }

  .section,
  .quickstart-section {
    width: min(calc(100% - 32px), 680px);
    padding-top: 120px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-card,
  .model-card-wide { grid-column: span 1; }

  .capability-main {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .capability-main .card-index {
    top: 32px;
    left: 30px;
  }
  .route-map { margin-top: 16px; }

  .quickstart-panel {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .faq-grid { grid-template-columns: 1fr; }

  .final-cta {
    width: min(calc(100% - 32px), 680px);
    margin-top: 120px;
  }
}

@media (max-width: 560px) {
  :root { --header-height: 70px; }

  .header-inner { width: calc(100% - 24px); }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .button-small { min-height: 44px; padding: 0 18px; font-size: 12.5px; }

  .hero {
    min-height: 1660px;
  }

  .hero-inner {
    width: calc(100% - 48px);
    min-height: 890px;
    padding-top: 20px;
    gap: 0;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions { gap: 10px; }
  .hero-actions .button {
    min-width: 0;
    min-height: 47px;
    padding: 0 17px;
    font-size: 15px;
  }

  .morph-showcase {
    width: 100%;
    min-height: 430px;
    margin-top: 10px;
  }

  .morph-state {
    font-size: 10px;
    letter-spacing: 0.3em;
  }

  .gateway-panel {
    width: calc(100% - 28px);
    margin-top: 60px;
  }

  .request-box,
  .constellation-box { min-height: 220px; }
  .section,
  .quickstart-section {
    width: calc(100% - 28px);
    padding-top: 100px;
  }

  .section-heading h2,
  .final-cta h2,
  .quickstart-copy h2 {
    font-size: 38px;
  }

  .section-heading { margin-bottom: 38px; }

  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 205px; }

  .capability-grid { grid-template-columns: 1fr; }
  .capability-main { grid-column: auto; }
  .capability-card { min-height: 270px; padding: 28px 24px; }
  .capability-card h3 { font-size: 26px; }

  .route-map {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .route-map strong { min-height: 44px; }

  .quickstart-panel {
    gap: 40px;
    padding: 32px 20px;
    border-radius: 22px;
  }

  #codeSample { padding: 20px; font-size: 12px; }

  .faq-grid summary { min-height: 70px; }

  .final-cta {
    width: calc(100% - 28px);
    min-height: 480px;
    margin: 110px auto 80px;
    padding: 60px 20px;
    border-radius: 24px;
  }

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

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 120px;
    padding: 24px;
  }
}

@media (min-width: 901px) {
  .header-inner {
    min-height: calc(var(--header-height) - 8px);
  }

  .header-actions > a.login-link,
  .header-actions > a.button {
    min-height: 34px;
  }
}

@media (max-width: 900px) {
  :root {
    --model-ribbon-height: 38px;
  }

  .model-ribbon {
    justify-content: flex-start;
    gap: 38px;
    padding: 0 20px env(safe-area-inset-bottom);
    white-space: nowrap;
  }

  .model-ribbon span {
    font-size: 11.5px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
