:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #16201f;
  --muted: #657370;
  --line: #d7dfdc;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --blue: #2563eb;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 18px 45px rgba(23, 39, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.page-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 36px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 39, 37, 0.08);
  color: var(--muted);
  font-size: 13px;
}

body[data-view="public"] .page-status,
body[data-view="auth"] .page-status {
  position: static;
  width: min(1180px, calc(100% - 44px));
  margin: 14px auto 0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 39, 37, 0.05);
}

button,
input,
select {
  font: inherit;
  max-width: 100%;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #1f3f72;
}

button.secondary:hover {
  background: #18345f;
}

button.ghost {
  background: #eef4f2;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.ghost:hover {
  background: #e1ebe8;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: #fbfdfc;
  color: var(--ink);
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  border-color: var(--accent);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  max-width: 100%;
  overflow-x: hidden;
}

.route-view {
  min-height: 100vh;
}

.public-view {
  padding: 24px 22px 58px;
}

.public-nav,
.public-main {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.public-nav .brand {
  margin-bottom: 0;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.public-links a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 650;
}

.public-links a:hover {
  background: #eef4f2;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-main {
  display: grid;
  gap: 28px;
  padding-top: 38px;
}

.public-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.public-copy {
  display: grid;
  gap: 16px;
}

.public-copy h1,
.auth-card h1 {
  max-width: 680px;
}

.public-actions,
.auth-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.public-actions button,
.auth-switch button {
  min-width: 130px;
}

.hero-note {
  max-width: 680px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}

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

.visual-window {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(22, 32, 31, 0.12);
  border-radius: 8px;
  background: #111b1a;
  box-shadow: 0 26px 60px rgba(17, 27, 26, 0.22);
  color: #eef8f6;
}

.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9fb8b2;
  font-size: 12px;
}

.window-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2dd4bf;
}

.window-top span:nth-child(2) {
  background: #60a5fa;
}

.window-top span:nth-child(3) {
  background: #f59e0b;
}

.window-top strong {
  margin-left: auto;
}

.visual-balance,
.route-map,
.visual-cards div {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.visual-balance {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.visual-balance strong {
  font-size: 34px;
  line-height: 1;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.meter span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.route-map {
  display: grid;
  grid-template-columns: 0.6fr 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.route-node,
.provider-stack span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 760;
}

.route-node {
  background: #0f766e;
  color: #ffffff;
}

.route-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.provider-stack {
  display: grid;
  gap: 8px;
}

.provider-stack span {
  justify-content: start;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe9e6;
}

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

.visual-cards div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.visual-cards strong {
  font-size: 24px;
}

.hero-board {
  display: grid;
  gap: 12px;
}

.hero-board div,
.feature-grid article,
.flow-section,
.section-block,
.pricing-section,
.faq-section,
.public-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(23, 39, 37, 0.06);
}

.hero-board div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.hero-board strong {
  font-size: 22px;
}

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

.feature-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.feature-grid p,
.flow-grid p,
.category-grid p,
.ops-grid p,
.plan-grid p,
.faq-grid p,
.public-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.trust-strip div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 39, 37, 0.05);
}

.trust-strip b,
.card-mark,
.category-grid article > b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.model-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 39, 37, 0.05);
}

.model-wall span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.06)),
    #fbfdfc;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.flow-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) 1fr;
  gap: 24px;
  padding: 28px;
}

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

.flow-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.flow-grid strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.flow-grid span {
  font-weight: 750;
}

.section-block,
.pricing-section,
.faq-section {
  display: grid;
  gap: 24px;
  padding: 30px;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.category-grid,
.ops-grid,
.plan-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

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

.ops-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.category-grid article,
.ops-grid article,
.plan-grid article,
.faq-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.category-grid article {
  min-height: 150px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.11), transparent 36%),
    #fbfdfc;
}

.category-grid strong,
.ops-grid strong,
.faq-grid strong {
  font-size: 18px;
}

.plan-grid strong {
  font-size: 24px;
}

.split-section {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: center;
}

.routing-visual {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1fr) minmax(160px, 0.8fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.08)),
    #ffffff;
}

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

.route-column span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  font-weight: 700;
}

.route-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  border-radius: 8px;
  background: #111b1a;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 42px rgba(17, 27, 26, 0.18);
}

.route-core strong {
  max-width: 220px;
  font-size: 24px;
}

.route-core small {
  color: #9fb8b2;
}

.code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111b1a;
  box-shadow: var(--shadow);
}

.code-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.code-tabs span {
  border-radius: 6px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe9e6;
  font-size: 12px;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #eef8f6;
  font-size: 13px;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.public-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.6fr));
  gap: 18px;
  padding: 24px;
}

.public-footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.public-footer span {
  color: var(--muted);
}

.auth-route {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 26, 0.46);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  padding: 30px;
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  background: #eef4f2;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover {
  background: #e1ebe8;
}

.auth-card .brand {
  margin-bottom: 0;
}

.auth-card .form-grid {
  gap: 14px;
}

.auth-card #auth-submit-button {
  width: 100%;
}

.auth-card h1 {
  font-size: 32px;
  line-height: 1.1;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.app-session {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-session strong {
  max-height: 44px;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.subtle,
.panel p,
.summary-line,
label,
small {
  color: var(--muted);
}

nav {
  display: grid;
  gap: 6px;
}

.nav-group-label {
  margin: 14px 10px 3px;
  color: #718096;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 12px;
}

nav a:hover {
  background: #eef4f2;
}

.rail nav a.active {
  background: #0b1220;
  color: #ffffff;
}

.shell > main {
  width: min(1280px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.09)),
    #ffffff;
  box-shadow: var(--shadow);
}

.console-hero {
  min-height: 170px;
}

.hero-action-stack {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 190px;
}

.secondary-link {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-link:hover {
  background: #eef4f2;
}

.console-summary {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.console-page {
  display: none !important;
}

.console-page.active {
  display: block !important;
}

.hero.console-page.active,
.console-summary.console-page.active,
.grid.two.console-page.active {
  display: grid !important;
}

.summary-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.summary-card.primary {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(15, 118, 110, 0.12)),
    #ffffff;
}

.summary-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#summary-org-name,
#summary-last-model {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.workspace-overview {
  margin-top: 20px;
}

.workspace-overview .section-title {
  max-width: 760px;
  margin-bottom: 14px;
  text-align: left;
}

.workspace-overview .section-title h2 {
  font-size: 26px;
}

.workspace-overview .section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.workspace-card {
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.workspace-card:hover {
  border-color: rgba(20, 184, 166, 0.36);
  background: #f8fbfa;
}

.workspace-card strong,
.workspace-card span {
  overflow-wrap: anywhere;
}

.workspace-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.workspace-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.workspace-section > summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.workspace-section > summary::-webkit-details-marker {
  display: none;
}

.workspace-section > summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.workspace-section.console-page > summary {
  cursor: default;
}

.workspace-section.console-page > summary::after {
  display: none;
}

.workspace-section[open] > summary {
  border-bottom: 1px solid var(--line);
}

.workspace-section[open] > summary::after {
  content: "-";
}

.workspace-section > summary span {
  display: grid;
  gap: 5px;
}

.workspace-section > summary strong {
  font-size: 18px;
}

.workspace-section > summary small {
  font-size: 13px;
}

.workspace-section > .grid,
.workspace-section > .admin-panel {
  margin: 0;
  padding: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
}

h3 {
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: 15px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
}

.dot.ok {
  background: var(--accent);
}

.dot.bad {
  background: var(--danger);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  min-width: 0;
}

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

.panel,
.subpanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  margin-top: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.grid .panel {
  margin-top: 0;
}

.subpanel {
  padding: 16px;
  background: #fbfdfc;
}

.subpanel .form-grid.compact {
  grid-template-columns: 1fr;
}

.subpanel .button-row button {
  flex: 1 1 160px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel p {
  margin: 6px 0 0;
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  margin-top: 14px;
}

.form-grid.compact button {
  min-width: 0;
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  min-width: 0;
}

select,
textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 112px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(36, 181, 170, 0.24);
  border-radius: 999px;
  background: #eefbf8;
  color: #0a6b61;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ask-panel {
  overflow: hidden;
}

.ask-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.ask-compose,
.ask-result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.ask-compose {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.ask-compose .button-row {
  align-items: center;
}

.ask-compose .button-row button {
  flex: 0 0 auto;
  min-height: 42px;
}

.wide-label {
  min-width: 0;
}

.ask-result {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  overflow: hidden;
}

.ask-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.ask-result-head small {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.ask-output {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 640px;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(36, 181, 170, 0.08), transparent 28%),
    #f8fbfa;
}

.ask-message {
  max-width: 92%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ask-message.user {
  justify-self: end;
  background: #0b1220;
  color: #ffffff;
}

.ask-message.assistant {
  justify-self: start;
}

.ask-message small {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
}

.ask-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row button {
  min-width: 0;
}

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

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.permission-summary,
.admin-module {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.permission-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.permission-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.permission-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(36, 181, 170, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.module-head span {
  display: grid;
  gap: 4px;
}

.module-head strong {
  font-size: 18px;
}

.permission-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-grid legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-row > div,
.admin-metrics > div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.metric-row strong,
.admin-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.credit-hero {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(36, 181, 170, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 181, 170, 0.13), rgba(37, 99, 235, 0.08)),
    #f8fbfa;
}

.credit-hero strong {
  font-size: 42px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.credit-hero span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.secret-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bdd7d1;
  border-radius: 6px;
  background: #f0faf7;
  color: #0f4f4a;
  overflow-wrap: anywhere;
}

.secret-head,
.secret-actions,
.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.secret-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.secret-value {
  display: block;
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #083936;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}

.secret-details,
.order-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.secret-details > div,
.order-details > div {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.secret-details strong,
.order-details strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.secret-note,
.order-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.order-status {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bdd7d1;
  border-radius: 6px;
  background: #f8fbfa;
}

.link-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.link-button:hover {
  background: var(--accent-strong);
}

.hidden {
  display: none;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stacked-table {
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.channels-grid {
  min-width: 1080px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  background: #f8fbfa;
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

.compact-catalog .model-list {
  padding-right: 4px;
}

.model-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.34fr);
  gap: 10px;
  margin-bottom: 12px;
}

.model-tools input {
  min-height: 42px;
}

.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
}

.model-footer button {
  min-height: 34px;
  padding: 0 12px;
}

.model-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.model-card strong,
.model-card small {
  display: block;
  overflow-wrap: anywhere;
}

.cell-stack {
  display: grid;
  gap: 3px;
}

.cell-stack small {
  overflow-wrap: anywhere;
}

.channel-score {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.channel-score label {
  gap: 3px;
}

.channel-score input,
.channel-health {
  min-height: 34px;
  padding: 0 8px;
}

.channel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-token {
  max-width: 520px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch input {
  width: 18px;
  min-height: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.bad {
  background: var(--danger);
}

@media (max-width: 980px) {
  .public-nav {
    flex-wrap: wrap;
  }

  .public-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .rail {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
  }

  .app-session {
    position: static;
    width: 100%;
    border-top: 0;
    padding-top: 0;
  }

  nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .shell > main {
    padding: 18px;
  }

  .hero,
  .public-hero,
  .flow-section,
  .split-section,
  .routing-visual,
  .public-footer,
  .console-summary,
  .workspace-cards,
  .grid.two,
  .ask-grid,
  .form-grid.compact,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .hero-action-stack {
    justify-items: start;
  }

  .ask-result {
    grid-template-rows: auto minmax(300px, 1fr);
  }

  .feature-grid,
  .flow-grid,
  .trust-strip,
  .category-grid,
  .ops-grid,
  .plan-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 34px;
  }

  .status-strip {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .page-status {
    position: static;
    margin: 12px;
    max-width: none;
    border-radius: 8px;
  }

  .public-view {
    min-height: calc(100vh - 66px);
    padding: 12px 14px 40px;
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-links {
    order: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-actions,
  .public-actions {
    width: 100%;
  }

  .nav-actions button,
  .public-actions button,
  .auth-switch button {
    flex: 1 1 140px;
  }

  .rail {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail .brand {
    margin-bottom: 0;
  }

  .rail nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .rail nav a {
    min-width: 0;
    padding: 9px 8px;
    background: #f8fbfa;
    text-align: center;
  }

  .nav-group-label {
    display: none;
  }

  .app-session {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding-top: 12px;
  }

  .app-session small {
    grid-column: 1 / -1;
  }

  .app-session strong {
    max-height: none;
    min-width: 0;
    font-size: 12px;
  }

  .app-session button {
    width: auto;
    min-width: 104px;
    white-space: nowrap;
  }

  .model-tools {
    grid-template-columns: 1fr;
  }

  .console-hero {
    min-height: auto;
    align-items: start;
  }

  .ask-message {
    max-width: 100%;
  }

  .public-hero,
  .flow-section,
  .section-block,
  .pricing-section,
  .faq-section,
  .public-footer {
    padding: 18px;
  }

  .public-hero {
    min-height: auto;
  }

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

  .route-line {
    width: 3px;
    height: 26px;
    justify-self: center;
    background: linear-gradient(180deg, #2dd4bf, #60a5fa);
  }

  .feature-grid,
  .flow-grid,
  .trust-strip,
  .category-grid,
  .ops-grid,
  .plan-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .visual-balance strong {
    font-size: 28px;
  }

  .visual-cards {
    grid-template-columns: 1fr;
  }

  .route-core {
    min-height: 120px;
  }

  pre {
    font-size: 12px;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-route {
    padding: 16px;
    place-items: center;
  }

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

  .hero,
  .panel {
    padding: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .panel-head,
  .secret-details,
  .order-details,
  .metric-row,
  .model-list {
    grid-template-columns: 1fr;
  }

  .panel-head {
    display: grid;
  }

  button {
    width: 100%;
  }

  .icon-button {
    width: 36px;
    min-width: 36px;
  }
}

/* AIMLAPI-inspired public landing. App console styles above remain unchanged. */
body[data-view="public"],
body[data-view="auth"] {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 46%, #ffffff 100%);
}

body[data-view="public"] .page-status,
body[data-view="auth"] .page-status {
  display: none;
}

.public-view {
  padding: 18px 20px 72px;
}

.public-nav,
.public-main {
  width: min(1240px, 100%);
}

.public-nav {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  position: sticky;
  top: 12px;
  z-index: 12;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.public-nav .brand {
  min-width: 210px;
}

.public-nav .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.public-links {
  gap: 4px;
  justify-self: center;
}

.public-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #526174;
}

.public-links a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-actions button {
  min-width: 92px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.nav-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.nav-actions button:first-child {
  background: transparent;
  color: #0f172a;
  box-shadow: none;
}

.nav-actions button:first-child:hover {
  background: #f1f5f9;
}

.nav-actions button.secondary {
  background: #0f172a;
}

.nav-actions button.secondary:hover,
.aim-actions button:hover,
.spotlight-actions button:hover,
.aim-plans button:hover,
.enterprise-strip button:hover {
  background: #020617;
}

.aim-layout {
  display: grid;
  gap: 86px;
  padding-top: 62px;
}

.aim-hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 720px;
  overflow: hidden;
  padding: 38px 0 4px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: min(760px, 74vw);
  height: 360px;
  filter: blur(52px);
  opacity: 0.72;
  transform: translateZ(0);
}

.hero-glow-left {
  left: -150px;
  top: 260px;
  background:
    radial-gradient(ellipse at 34% 48%, rgba(56, 189, 248, 0.58), transparent 62%),
    radial-gradient(ellipse at 74% 70%, rgba(45, 212, 191, 0.48), transparent 58%);
}

.hero-glow-right {
  right: -150px;
  top: 310px;
  background:
    radial-gradient(ellipse at 28% 45%, rgba(168, 85, 247, 0.42), transparent 58%),
    radial-gradient(ellipse at 72% 52%, rgba(249, 115, 22, 0.38), transparent 54%);
}

.aim-hero-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(980px, 100%);
  text-align: center;
}

.aim-hero-copy h1 {
  max-width: 980px;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  color: #070b18;
}

.aim-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #56657a;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.aim-actions {
  justify-content: center;
  margin-top: 6px;
}

.aim-actions button,
.spotlight-actions button,
.aim-plans button,
.enterprise-strip button {
  min-height: 52px;
  min-width: 150px;
  border-radius: 999px;
  padding: 0 22px;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.aim-actions button span,
.enterprise-strip button span {
  display: inline-block;
  margin-left: 7px;
}

.aim-actions .outline {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow: none;
}

.aim-actions .outline:hover {
  background: #f8fafc;
}

.ask-preview {
  position: relative;
  width: min(1080px, 100%);
  margin-top: 58px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 42px 110px rgba(15, 23, 42, 0.18),
    0 0 0 8px rgba(255, 255, 255, 0.42);
}

.preview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 14px;
  overflow-x: auto;
}

.preview-tabs span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 13px;
  background: #eef2f7;
  color: #536175;
  font-size: 13px;
  font-weight: 760;
}

.preview-tabs .active {
  background: #0f172a;
  color: #ffffff;
}

.preview-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 18px;
  min-height: 420px;
}

.chat-pane {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.96)),
    #0f172a;
  color: #e5edf8;
  overflow: hidden;
}

.pane-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.pane-title i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.chat-pane p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.55;
}

.chat-pane pre {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  color: #dffdf6;
}

.model-picker {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.12);
}

.model-picker small,
.model-picker strong {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0;
}

.model-picker label {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
}

.model-picker span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #172033;
  font-size: 13px;
  font-weight: 760;
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(820px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.section-title h2,
.model-spotlight h2,
.speed-section h2,
.enterprise-strip h2 {
  max-width: 920px;
  color: #08111f;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
}

.section-title .eyebrow,
.spotlight-copy .eyebrow,
.speed-section .eyebrow,
.enterprise-strip .eyebrow {
  color: #2563eb;
}

.start-grid,
.capability-grid,
.feature-packed-grid,
.speed-grid,
.aim-plans {
  display: grid;
  gap: 16px;
}

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

.start-grid article,
.capability-grid article,
.feature-packed-grid article,
.speed-grid article,
.aim-plans article {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.start-grid article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 208px;
  padding: 24px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.start-grid b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 18px;
}

.start-grid .step-icon {
  position: absolute;
  right: 20px;
  top: 24px;
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.start-grid h3,
.feature-packed h3,
.aim-plans strong {
  margin: 0;
}

.start-grid p,
.feature-packed p,
.spotlight-copy p,
.speed-grid span,
.aim-plans p,
.enterprise-strip p {
  margin: 0;
  color: #64748b;
  line-height: 1.58;
}

.model-showcase {
  position: relative;
  overflow: hidden;
  padding: 54px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.24), transparent 34%),
    radial-gradient(ellipse at 84% 36%, rgba(168, 85, 247, 0.18), transparent 34%),
    #f8fbff;
}

.model-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 24px;
}

.model-orbit span {
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(920px, 100%);
  margin: 0 auto;
}

.capability-grid article {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
}

.capability-grid i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background:
    linear-gradient(145deg, #111827, #2563eb);
  color: #ffffff;
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
}

.capability-grid h3 {
  margin: 0;
  color: #111827;
}

.model-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #07111f 0%, #101827 44%, #17334d 100%);
  color: #ffffff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.spotlight-copy {
  display: grid;
  gap: 16px;
}

.spotlight-copy h2 {
  color: #ffffff;
}

.spotlight-copy p {
  max-width: 640px;
  color: #cbd5e1;
}

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

.spotlight-actions button {
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
}

.spotlight-actions button:hover {
  background: #e2e8f0;
}

.spotlight-actions a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  color: #dbeafe;
  font-weight: 800;
  text-decoration: none;
}

.spotlight-visual {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 390px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 28% 22%, rgba(34, 211, 238, 0.42), transparent 38%),
    radial-gradient(ellipse at 76% 68%, rgba(168, 85, 247, 0.34), transparent 40%),
    rgba(255, 255, 255, 0.06);
}

.spotlight-card-main {
  place-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(310px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.spotlight-card-main strong {
  font-size: 34px;
  line-height: 1;
}

.spotlight-card-main span {
  border-radius: 999px;
  padding: 7px 11px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

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

.spotlight-lanes span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
  font-weight: 800;
}

.speed-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

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

.speed-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
}

.speed-grid strong {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.feature-packed {
  display: grid;
}

.feature-packed-grid {
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
}

.feature-packed-grid article {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 86% 12%, rgba(59, 130, 246, 0.18), transparent 34%),
    #ffffff;
}

.feature-packed-grid article.large {
  grid-row: span 2;
  align-content: space-between;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(45, 212, 191, 0.32), transparent 34%),
    radial-gradient(ellipse at 80% 8%, rgba(96, 165, 250, 0.24), transparent 36%),
    #0f172a;
  color: #ffffff;
}

.feature-packed-grid article.large p {
  color: #cbd5e1;
}

.mini-console {
  display: grid;
  gap: 10px;
}

.mini-console span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
  font-weight: 800;
}

.integration-section {
  display: grid;
}

.integration-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.66fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 28% 0%, rgba(56, 189, 248, 0.18), transparent 38%),
    #f8fbff;
}

.aim-code {
  border-radius: 18px;
  background: #0b1120;
}

.aim-code .code-tabs span {
  background: rgba(255, 255, 255, 0.10);
}

.aim-code pre {
  min-height: 286px;
  color: #e2e8f0;
}

.route-board {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.route-board span,
.route-board strong {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
}

.route-board span {
  background: #eef2ff;
  color: #334155;
}

.route-board strong {
  background: #0f172a;
  color: #ffffff;
}

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

.aim-plans article {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 300px;
  padding: 24px;
}

.aim-plans article:nth-child(3) {
  border-color: rgba(37, 99, 235, 0.34);
  background:
    radial-gradient(ellipse at 72% 0%, rgba(37, 99, 235, 0.18), transparent 38%),
    #ffffff;
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.16);
}

.aim-plans small {
  color: #2563eb;
  font-weight: 900;
  text-transform: uppercase;
}

.aim-plans strong {
  color: #0f172a;
  font-size: 48px;
  line-height: 1;
}

.aim-plans button {
  align-self: end;
  margin-top: auto;
}

.enterprise-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 54%, #ecfeff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.enterprise-strip div {
  display: grid;
  gap: 10px;
}

.enterprise-strip .icon-enterprise {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.enterprise-strip h2 {
  max-width: 760px;
}

.enterprise-strip button {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .aim-layout {
    gap: 68px;
  }

  .preview-body,
  .model-spotlight,
  .speed-section,
  .integration-card {
    grid-template-columns: 1fr;
  }

  .model-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-picker small,
  .model-picker label,
  .model-picker strong {
    grid-column: 1 / -1;
  }

  .speed-grid,
  .aim-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-packed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-view="public"] .page-status,
  body[data-view="auth"] .page-status {
    width: auto;
    margin: 12px 14px 0;
  }

  .public-view {
    padding: 12px 14px 50px;
  }

  .public-nav {
    position: static;
    border-radius: 14px;
  }

  .public-nav .brand {
    min-width: 0;
  }

  .public-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions button,
  .aim-actions button,
  .spotlight-actions button,
  .aim-plans button,
  .enterprise-strip button {
    width: auto;
    flex: 1 1 150px;
  }

  .aim-layout {
    gap: 54px;
    padding-top: 42px;
  }

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

  .aim-hero-copy h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .ask-preview {
    margin-top: 36px;
    padding: 12px;
    border-radius: 18px;
  }

  .preview-body {
    min-height: 0;
  }

  .chat-pane {
    padding: 20px;
    border-radius: 14px;
  }

  .chat-pane p {
    font-size: 15px;
  }

  .chat-pane pre,
  .aim-code pre {
    font-size: 11px;
  }

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

  .section-title {
    margin-bottom: 20px;
  }

  .section-title h2,
  .model-spotlight h2,
  .speed-section h2,
  .enterprise-strip h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .start-grid,
  .capability-grid,
  .feature-packed-grid,
  .speed-grid,
  .aim-plans {
    grid-template-columns: 1fr;
  }

  .model-showcase,
  .model-spotlight,
  .enterprise-strip {
    padding: 22px;
    border-radius: 18px;
  }

  .spotlight-visual {
    min-height: 320px;
  }

  .spotlight-lanes {
    grid-template-columns: 1fr;
  }

  .feature-packed-grid article.large {
    grid-row: auto;
  }

  .integration-card {
    padding: 12px;
    border-radius: 18px;
  }

  .enterprise-strip {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Visual-density pass: richer iconography and product imagery for the public page. */
.aim-hero {
  min-height: 860px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  z-index: -1;
  width: min(340px, 26vw);
  border-radius: 26px;
  opacity: 0.72;
  filter: saturate(1.08);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 210px;
  width: min(1180px, 96vw);
  height: 520px;
  object-fit: cover;
  border-radius: 34px;
  opacity: 0.24;
  transform: translateX(-50%);
  filter: saturate(1.08);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 78%, transparent 100%);
}

.hero-art-left {
  left: -28px;
  top: 186px;
  transform: rotate(-7deg);
}

.hero-art-right {
  right: -38px;
  top: 238px;
  transform: rotate(7deg);
}

.hero-model-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}

.hero-model-strip span,
.model-picker span {
  position: relative;
}

.hero-model-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 13px 5px 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.hero-model-strip b,
.model-picker em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f172a, #0f766e);
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.preview-shell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px 10px;
  color: #64748b;
}

.preview-shell-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #14b8a6;
}

.preview-shell-head span:nth-child(2) {
  background: #38bdf8;
}

.preview-shell-head span:nth-child(3) {
  background: #f97316;
}

.preview-shell-head strong {
  margin-left: 4px;
  color: #0f172a;
  font-size: 13px;
}

.preview-shell-head small {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.preview-body {
  grid-template-columns: 58px minmax(0, 1fr) 300px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 18px;
  background: #eef4fb;
}

.preview-sidebar span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.assistant-output {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(620px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.assistant-output strong,
.assistant-output small {
  display: block;
}

.assistant-output small {
  margin-top: 4px;
  color: #94a3b8;
}

.output-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(145deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-weight: 900;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.preview-stats span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
}

.preview-stats b {
  color: #ffffff;
  font-size: 22px;
}

.model-picker span {
  gap: 9px;
  padding-left: 8px;
}

.step-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 20% 16%, rgba(20, 184, 166, 0.24), transparent 42%),
    linear-gradient(135deg, #f8fbff, #eef6ff);
}

.account-visual span {
  width: 46px;
  height: 46px;
  margin-left: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f172a, #0f766e);
}

.account-visual i {
  width: 118px;
  height: 12px;
  margin: 10px 0 0 20px;
  border-radius: 999px;
  background: #cbd5e1;
}

.account-visual i:last-child {
  width: 86px;
  background: #dbeafe;
}

.credit-visual {
  justify-items: center;
  gap: 12px;
}

.credit-visual strong {
  color: #0f172a;
  font-size: 36px;
  line-height: 1;
}

.credit-visual span {
  width: 70%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6 0 68%, #dbeafe 68% 100%);
}

.key-visual {
  align-content: center;
  gap: 10px;
  padding: 20px;
}

.key-visual span {
  width: 92px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.key-visual i {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dbeafe;
}

.key-visual i:nth-child(3) {
  width: 80%;
}

.key-visual i:nth-child(4) {
  width: 56%;
}

.model-showcase {
  padding: 64px 34px;
}

.model-showcase-art {
  display: block;
  width: min(760px, 100%);
  margin: 6px auto 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 74px rgba(15, 23, 42, 0.10);
}

.capability-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(1100px, 100%);
}

.capability-grid article {
  min-height: 124px;
}

.capability-grid i,
.visual-gallery i,
.feature-packed-grid article > i,
.speed-grid i,
.aim-plans i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: linear-gradient(145deg, #0f172a, #2563eb);
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.capability-grid i::before,
.visual-gallery i::before,
.feature-packed-grid article > i::before,
.speed-grid i::before,
.aim-plans i::before {
  font-size: 11px;
  letter-spacing: 0;
}

.icon-chat::before { content: "AI"; }
.icon-code::before { content: "</>"; font-size: 10px; }
.icon-image::before { content: "IMG"; }
.icon-video::before { content: "VID"; }
.icon-voice::before { content: "AUD"; }
.icon-search::before { content: "SR"; }
.icon-embed::before { content: "EM"; }
.icon-pocket::before { content: "USB"; }
.icon-router::before { content: "RT"; }
.icon-billing::before { content: "CR"; }
.icon-team::before { content: "TM"; }
.icon-logs::before { content: "LG"; }
.icon-health::before { content: "OK"; }
.icon-lock::before { content: "KEY"; }
.icon-quota::before { content: "402"; }
.icon-switch::before { content: "SW"; }
.icon-fallback::before { content: "FB"; }
.icon-rocket::before { content: "GO"; }
.icon-growth::before { content: "5X"; }
.icon-enterprise::before { content: "ENT"; }

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

.visual-gallery article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.visual-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.visual-gallery div {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.visual-gallery h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.visual-gallery p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.spotlight-visual {
  min-height: 440px;
}

.spotlight-visual > img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.28;
}

.spotlight-card-main,
.spotlight-lanes {
  position: relative;
}

.speed-section {
  align-items: stretch;
}

.speed-grid article {
  align-content: start;
  gap: 12px;
  min-height: 190px;
}

.feature-packed-grid article {
  align-content: start;
}

.feature-packed-grid article h3 {
  margin-top: 12px;
}

.feature-packed-grid article.large {
  align-content: space-between;
}

.feature-packed-grid article.large > i {
  background: linear-gradient(145deg, #14b8a6, #2563eb);
}

.integration-card {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.route-board {
  align-content: start;
}

.route-board img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
}

.aim-plans article {
  position: relative;
  overflow: hidden;
}

.aim-plans article::after {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  content: "";
}

.aim-plans article > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero-art {
    width: min(250px, 28vw);
    opacity: 0.42;
  }

  .preview-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .model-picker {
    grid-column: 1 / -1;
  }

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

  .visual-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-art {
    display: none;
  }

  .hero-model-strip {
    gap: 8px;
  }

  .hero-model-strip span {
    min-height: 34px;
    font-size: 12px;
  }

  .preview-shell-head small {
    display: none;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: stretch;
    padding: 8px;
  }

  .preview-sidebar span {
    width: 100%;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .start-grid article {
    min-height: 0;
  }

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

  .model-showcase-art {
    border-radius: 18px;
  }

  .visual-gallery img {
    aspect-ratio: 1.14;
  }

  .spotlight-visual > img {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .integration-card {
    grid-template-columns: 1fr;
  }

  .route-board img {
    height: 132px;
  }
}

/* AIMLAPI-clone pass: match reference structure and density for routeagent. */
body[data-view="public"],
body[data-view="auth"] {
  background: #ffffff;
}

.public-view {
  padding: 14px 20px 72px;
}

.public-nav {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 210px;
  align-items: center;
  width: min(1240px, 100%);
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.public-nav .brand {
  min-width: 0;
  margin: 0;
}

.public-links {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: 26px;
  width: auto;
}

.public-links a {
  padding: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
}

.public-links a:hover {
  background: transparent;
  color: #0f766e;
}

.nav-actions {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
  flex-wrap: nowrap;
}

.nav-actions button {
  min-width: 82px;
  min-height: 38px;
  border-radius: 999px;
  box-shadow: none;
}

.nav-actions button:first-child {
  background: #ffffff;
  color: #0f172a;
}

.nav-actions button.secondary {
  background: #0b1120;
}

.aim-layout {
  gap: 88px;
  padding-top: 62px;
}

.aim-hero {
  min-height: 850px;
  padding: 22px 0 0;
  overflow: visible;
}

.hero-glow-left,
.hero-glow-right {
  display: block;
  top: 350px;
  width: min(820px, 80vw);
  height: 420px;
  opacity: 0.62;
}

.hero-backdrop {
  top: 340px;
  width: min(1110px, 100%);
  height: 450px;
  opacity: 0.50;
  border-radius: 0;
  box-shadow: none;
}

.hero-art {
  display: none;
}

.aim-hero-copy {
  gap: 18px;
}

.aim-hero-copy h1 {
  max-width: 1060px;
  font-size: clamp(62px, 8.8vw, 118px);
  line-height: 0.92;
  font-weight: 900;
}

.aim-hero-copy p {
  max-width: 690px;
  font-size: 19px;
  line-height: 1.5;
}

.aim-actions button {
  min-height: 48px;
  min-width: 142px;
}

.hero-model-strip {
  display: none;
}

.ask-preview {
  width: min(1100px, 100%);
  margin-top: 58px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.18);
}

.preview-shell-head,
.preview-sidebar,
.assistant-output,
.preview-stats {
  display: none;
}

.preview-tabs {
  padding: 0 0 12px;
}

.preview-body {
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 430px;
}

.chat-pane {
  min-height: 430px;
  padding: 28px;
  border-radius: 14px;
}

.model-picker {
  border-radius: 14px;
}

.start-section,
.model-showcase,
.model-spotlight,
.speed-section,
.feature-packed,
.integration-section,
.plans-section {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.section-title {
  width: min(900px, 100%);
  margin-bottom: 32px;
}

.section-title h2,
.model-spotlight h2,
.speed-section h2,
.enterprise-strip h2 {
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 0.96;
}

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

.start-grid article {
  min-height: 214px;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.step-visual,
.start-grid .step-icon {
  display: none;
}

.model-showcase {
  padding: 56px 30px;
  border-radius: 16px;
}

.model-showcase-art {
  width: min(880px, 100%);
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.capability-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article {
  min-height: 112px;
  border-radius: 8px;
}

.model-spotlight {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 520px;
  padding: 44px;
  border-radius: 16px;
}

.spotlight-visual {
  min-height: 430px;
  border-radius: 16px;
}

.spotlight-visual > img {
  opacity: 0.58;
}

.speed-section {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

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

.speed-grid article {
  min-height: 188px;
  border-radius: 8px;
}

.feature-packed-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: minmax(420px, auto);
}

.feature-packed-grid article,
.feature-packed-grid article.large {
  grid-row: auto;
  align-content: start;
  min-height: 420px;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
}

.feature-packed-grid article.large p {
  color: #64748b;
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}

.mini-console {
  display: none;
}

.integration-card {
  border-radius: 16px;
}

.aim-plans article {
  border-radius: 8px;
}

.enterprise-strip,
.aim-footer {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.aim-footer {
  border-radius: 16px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .public-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .public-links {
    justify-self: start;
    gap: 18px;
    overflow-x: auto;
  }

  .nav-actions {
    justify-self: start;
  }

  .preview-body,
  .model-spotlight,
  .speed-section,
  .integration-card {
    grid-template-columns: 1fr;
  }

  .model-picker {
    grid-column: auto;
  }

  .capability-grid,
  .speed-grid,
  .aim-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-packed-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

@media (max-width: 620px) {
  .aim-hero-copy h1 {
    font-size: 48px;
  }

  .ask-preview {
    margin-top: 38px;
  }

  .chat-pane {
    min-height: 300px;
  }

  .start-grid,
  .capability-grid,
  .speed-grid,
  .aim-plans {
    grid-template-columns: 1fr;
  }
}

/* routeagent reference landing pass: follow the AIMLAPI page structure closely. */
body[data-view="public"],
body[data-view="auth"] {
  background: #ffffff;
  color: #090f1d;
}

body[data-view="public"] .page-status,
body[data-view="auth"] .page-status {
  display: none;
}

.public-view {
  padding: 0 0 64px;
  background: #ffffff;
}

.public-nav {
  width: 100%;
  max-width: none;
  min-height: 70px;
  margin: 0;
  padding: 0 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 15;
}

.public-nav .brand,
.auth-card .brand,
.rail .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.public-nav .brand strong,
.auth-card .brand strong,
.rail .brand strong {
  display: block;
  color: #090f1d;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.rail .brand strong {
  font-size: 22px;
  white-space: nowrap;
}

.public-nav .brand small,
.auth-card .brand small,
.rail .brand small {
  display: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.public-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
}

.public-links a {
  padding: 0;
  border-radius: 0;
  color: #090f1d;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.public-links a:hover {
  background: transparent;
  color: #2563eb;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav-actions button {
  min-height: 42px;
  border-radius: 9px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
}

.nav-login {
  background: transparent;
  color: #090f1d;
  padding: 0 !important;
}

.nav-login:hover {
  background: transparent;
  color: #2563eb;
}

.nav-signup,
.hero-actions button,
.bottom-cta button {
  background: #090f1d !important;
  color: #ffffff !important;
  box-shadow: none;
}

.nav-signup:hover,
.hero-actions button:hover,
.bottom-cta button:hover {
  background: #1a2336 !important;
}

.mobile-menu-button {
  display: none;
  width: 34px;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #090f1d;
}

.reference-layout {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0;
}

.reference-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  padding: 142px 24px 0;
  background: #ffffff;
}

.soft-bg {
  position: absolute;
  inset: 70px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 76%, rgba(183, 232, 255, 0.86) 0 9%, transparent 25%),
    radial-gradient(circle at 30% 77%, rgba(221, 255, 181, 0.78) 0 12%, transparent 30%),
    radial-gradient(circle at 90% 42%, rgba(255, 63, 130, 0.78) 0 14%, transparent 30%),
    radial-gradient(circle at 91% 65%, rgba(255, 209, 122, 0.76) 0 13%, transparent 31%);
  filter: blur(18px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy h1 {
  width: min(1180px, 100%);
  margin: 0;
  color: #090f1d;
  font-size: clamp(64px, 8vw, 98px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  width: min(760px, 100%);
  margin: 20px 0 0;
  color: #3f4653;
  font-size: 23px;
  line-height: 1.34;
  font-weight: 750;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-actions button {
  min-height: 78px;
  border-radius: 12px;
  padding: 0 28px;
  font-size: 25px;
  font-weight: 900;
}

.hero-actions .outline {
  background: #ffffff !important;
  color: #090f1d !important;
  border: 2px solid #090f1d;
}

.hero-product-shot {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 90px));
  margin: 122px auto 0;
}

.hero-product-shot img {
  display: block;
  width: 100%;
  border-radius: 30px;
}

.start-section,
.model-directory,
.trusted-strip,
.model-spotlight,
.speed-section,
.feature-packed,
.integration-section,
.plans-section,
.bottom-cta,
.aim-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.start-section {
  padding: 82px 0 64px;
}

.section-title {
  width: min(820px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.section-title h2,
.model-spotlight h2,
.speed-section h2,
.bottom-cta h2 {
  margin: 0;
  color: #090f1d;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 12px auto 0;
  color: #667085;
  font-size: 18px;
  line-height: 1.45;
}

.eyebrow {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.start-grid article {
  min-height: 168px;
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.start-grid article b {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #475569;
  font-size: 30px;
  font-weight: 900;
}

.start-grid h3,
.feature-packed h3 {
  margin: 0 0 12px;
  color: #090f1d;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.start-grid p,
.feature-packed p {
  margin: 0;
  color: #4b5565;
  font-size: 16px;
  line-height: 1.45;
}

.model-directory {
  padding: 52px 0 70px;
}

.model-search {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
}

.model-search input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #090f1d;
  font: inherit;
  font-weight: 800;
  background: transparent;
  outline: none;
}

.model-search input::placeholder {
  color: #98a2b3;
}

.model-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.model-tags button {
  padding: 7px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  box-shadow: none;
}

.model-tags button:hover,
.model-tags button.active {
  border-color: #090f1d;
  background: #090f1d;
  color: #ffffff;
}

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

.model-card-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.model-card-grid article:hover {
  transform: translateY(-2px);
  border-color: #bdc9d8;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.model-card-grid small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.model-card-grid strong {
  display: block;
  color: #090f1d;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
}

.model-card-grid span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
}

.load-more {
  display: block;
  margin: 18px auto 0;
  min-height: 38px;
  background: #090f1d;
  border-radius: 8px;
}

.model-no-results {
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #667085;
  text-align: center;
  font-weight: 800;
}

.trusted-strip {
  padding: 10px 0 54px;
  display: grid;
  gap: 18px;
  justify-items: center;
  color: #667085;
}

.trusted-strip small {
  font-weight: 900;
}

.trusted-strip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.trusted-strip span {
  color: #98a2b3;
  font-size: 20px;
  font-weight: 900;
}

.model-spotlight {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: #090f1d;
}

.spotlight-copy {
  display: grid;
  gap: 14px;
}

.spotlight-copy p:not(.eyebrow) {
  color: #4b5565;
  font-size: 17px;
  line-height: 1.5;
  max-width: 650px;
}

.spotlight-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.spotlight-actions button {
  background: #090f1d;
  color: #ffffff;
  border-radius: 8px;
}

.spotlight-actions a {
  color: #090f1d;
  font-weight: 900;
  text-decoration: none;
}

.model-spotlight .eyebrow,
.model-spotlight h2,
.model-spotlight p,
.model-spotlight a {
  color: inherit;
}

.model-spotlight .eyebrow {
  color: #2563eb;
}

.model-spotlight p:not(.eyebrow) {
  color: #4b5565;
}

.model-spotlight .spotlight-actions a {
  color: #090f1d;
}

.spotlight-visual {
  min-height: 310px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 15%, rgba(57,132,255,.25), transparent 36%),
    radial-gradient(circle at 80% 90%, rgba(255,63,130,.22), transparent 40%),
    #f8fbff;
}

.route-node {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #090f1d;
  font-weight: 900;
  text-align: center;
}

.route-node.main {
  grid-column: 1 / -1;
  color: #ffffff;
  background: #090f1d;
}

.speed-section {
  display: block;
  padding: 92px 0 70px;
}

.speed-section .compact {
  margin-bottom: 28px;
}

.speed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.speed-grid article {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.speed-grid article:last-child {
  border-right: 0;
}

.speed-grid strong {
  color: transparent;
  background: linear-gradient(135deg, #ec4899, #3984ff 54%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.95;
  font-weight: 900;
}

.speed-grid span {
  color: #090f1d;
  font-size: 14px;
  font-weight: 900;
}

.feature-packed {
  padding: 56px 0 82px;
}

.feature-packed-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(300px, auto));
  gap: 12px;
}

.feature-packed-grid article {
  min-height: auto;
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
  color: #090f1d;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.feature-packed-grid .code-card {
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.feature-packed-grid article.large {
  grid-row: span 2;
  padding: 22px;
  background: #eef4fb;
  justify-content: flex-start;
}

.feature-image {
  width: 100%;
  aspect-ratio: 1.45;
  display: block;
  object-fit: cover;
  object-position: left top;
  margin: 0 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35);
}

.feature-card-copy {
  display: grid;
  gap: 10px;
}

.compact-code pre {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #098658;
  border: 1px solid #dbe3ef;
  white-space: pre-wrap;
  max-height: 222px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.48;
}

.feature-command-center {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 420px;
  margin: 0 0 24px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(14, 116, 144, 0.94) 54%, rgba(7, 17, 31, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 72px);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 70px rgba(15, 23, 42, 0.16);
}

.command-topline,
.command-metrics,
.model-cloud {
  position: relative;
  z-index: 1;
}

.command-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.command-topline span,
.command-topline strong {
  font-weight: 900;
}

.command-topline span {
  color: #c7d2fe;
  font-size: 13px;
  letter-spacing: 0;
}

.command-topline strong {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.model-cloud {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.model-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
}

.model-pill.primary {
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
  color: #06111f;
}

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

.command-metrics span {
  min-width: 0;
  min-height: 78px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #08111f;
}

.command-metrics strong,
.command-metrics small {
  display: block;
}

.command-metrics strong {
  font-size: 14px;
  font-weight: 950;
}

.command-metrics small {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.instant-access-card {
  display: grid;
  gap: 16px;
  min-height: 236px;
  margin-bottom: 22px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #fdf2f8 100%);
}

.instant-access-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.instant-access-card > strong {
  align-self: center;
  color: #08111f;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.access-lanes {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.access-lanes b {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.launch-stack {
  display: grid;
  gap: 10px;
  min-height: 276px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.launch-stack span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #ffffff;
}

.launch-stack b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #08111f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.launch-stack strong {
  color: #08111f;
  font-size: 14px;
  font-weight: 950;
}

.launch-stack small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.integration-section {
  padding: 0 0 82px;
}

.integration-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.aim-code {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.code-tabs button {
  padding: 8px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  min-height: 38px;
  background: #ffffff;
  color: #475569;
  font-weight: 900;
  box-shadow: none;
}

.code-tabs button:hover,
.code-tabs button.active {
  border-color: #090f1d;
  background: #090f1d;
  color: #ffffff;
}

.aim-code pre {
  margin: 0;
  padding: 22px;
  background: #090f1d;
  color: #dbeafe;
  overflow-x: auto;
  min-height: 318px;
}

.aim-code code {
  white-space: pre;
}

.route-board {
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
}

.route-board span,
.route-board strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-weight: 850;
}

.route-board strong {
  background: #090f1d;
  color: #ffffff;
}

.plans-section {
  padding: 0 0 92px;
}

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

.aim-plans article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.aim-plans small {
  display: block;
  color: #667085;
  font-weight: 900;
  margin-bottom: 10px;
}

.aim-plans strong {
  display: block;
  color: #090f1d;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 16px;
}

.aim-plans p {
  min-height: 68px;
  color: #4b5565;
  line-height: 1.45;
}

.aim-plans button {
  width: 100%;
  margin-top: 16px;
  background: #090f1d;
  border-radius: 8px;
}

.bottom-cta {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 75%, rgba(183,232,255,.86), transparent 24%),
    radial-gradient(circle at 33% 80%, rgba(221,255,181,.7), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(255,63,130,.5), transparent 28%),
    radial-gradient(circle at 70% 86%, rgba(255,209,122,.55), transparent 28%);
  border-radius: 20px;
  margin-bottom: 56px;
}

.bottom-cta span {
  color: #3984ff;
}

.bottom-cta button {
  min-width: 220px;
  min-height: 62px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}

.aim-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding: 34px 0 10px;
  border-top: 1px solid #edf0f5;
  border-radius: 0;
  background: transparent;
}

.aim-footer strong {
  color: #090f1d;
  font-size: 22px;
  font-weight: 900;
}

.aim-footer p,
.aim-footer a {
  display: block;
  color: #667085;
  line-height: 1.5;
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 750;
}

.aim-footer a:hover {
  color: #2563eb;
}

.aim-footer small {
  display: block;
  margin-bottom: 12px;
  color: #090f1d;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .public-nav {
    padding: 0 34px;
    grid-template-columns: auto auto;
  }

  .public-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    justify-self: end;
  }

  body.public-menu-open .public-nav {
    align-items: start;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  body.public-menu-open .public-links,
  body.public-menu-open .nav-actions {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
  }

  body.public-menu-open .public-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 8px;
  }

  body.public-menu-open .public-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf0f5;
  }

  body.public-menu-open .nav-actions {
    justify-content: flex-start;
  }

  body.public-menu-open .nav-actions button {
    flex: 0 0 auto;
  }

  .reference-hero {
    min-height: 700px;
    padding-top: 150px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 9.5vw, 72px);
  }

  .hero-copy p {
    font-size: 19px;
  }

  .hero-product-shot {
    margin-top: 80px;
    width: min(980px, calc(100% - 36px));
  }

  .model-card-grid,
  .aim-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-spotlight,
  .integration-card,
  .aim-footer {
    grid-template-columns: 1fr;
  }

  .feature-packed-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .feature-packed-grid article.large {
    grid-row: auto;
  }

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

  .speed-grid article:nth-child(2) {
    border-right: 0;
  }

  .speed-grid article:nth-child(1),
  .speed-grid article:nth-child(2) {
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 620px) {
  .public-nav {
    min-height: 60px;
    padding: 0 20px;
  }

  .public-nav .brand strong {
    font-size: 24px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .reference-hero {
    min-height: auto;
    padding: 132px 18px 44px;
  }

  .soft-bg {
    inset: 52px 0 auto;
    height: 430px;
    filter: blur(16px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 0.98;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.25;
  }

  .hero-actions {
    margin-top: 38px;
    display: grid;
    gap: 10px;
  }

  .hero-actions button {
    min-height: 64px;
    font-size: 18px;
    padding: 0 22px;
  }

  .hero-product-shot {
    display: block;
    width: 100%;
    margin-top: 42px;
  }

  .hero-product-shot img {
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
  }

  .start-section {
    padding-top: 46px;
  }

  .start-section,
  .model-directory,
  .trusted-strip,
  .model-spotlight,
  .speed-section,
  .feature-packed,
  .integration-section,
  .plans-section,
  .bottom-cta,
  .aim-footer {
    width: min(100% - 32px, 1240px);
  }

  .section-title h2,
  .model-spotlight h2,
  .speed-section h2,
  .bottom-cta h2 {
    font-size: 34px;
  }

  .start-grid,
  .model-card-grid,
  .speed-grid,
  .aim-plans {
    grid-template-columns: 1fr;
  }

  .speed-grid article,
  .speed-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .speed-grid article:last-child {
    border-bottom: 0;
  }

  .model-tags {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .model-tags button {
    flex: 0 0 auto;
  }

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

  .spotlight-actions button {
    width: 100%;
  }

  .spotlight-visual {
    grid-template-columns: 1fr;
  }

  .feature-command-center {
    min-height: auto;
    padding: 18px;
  }

  .command-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-cloud,
  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-pill {
    min-height: 58px;
  }

  .launch-stack span {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .bottom-cta {
    min-height: 300px;
    border-radius: 14px;
  }
}
