/* ================================================================
   Aimita — design system
   ================================================================ */

:root {
  --ink: #10231e;
  --ink-deep: #081b16;
  --forest: #0d3b33;
  --forest-2: #155548;
  --forest-3: #1f6b59;
  --paper: #f4f2ea;
  --paper-2: #ebe8dc;
  --paper-3: #e1ddce;
  --surface: #fffdf8;
  --surface-2: #faf8f1;
  --muted: #687871;
  --muted-light: #8b9892;
  --line: rgba(13, 43, 37, 0.11);
  --line-strong: rgba(13, 43, 37, 0.2);
  --lime: #d6ff72;
  --lime-strong: #c2ef4d;
  --coral: #ff6b4a;
  --coral-soft: #ffe4dc;
  --blue: #3b6ff5;
  --amber: #b7791f;
  --red: #d5452f;
  --green: #1e7a58;
  --sidebar-width: 252px;
  --topbar-height: 68px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(9, 27, 22, 0.04), 0 8px 24px -18px rgba(9, 27, 22, 0.2);
  --shadow-md: 0 2px 4px rgba(9, 27, 22, 0.04), 0 20px 50px -28px rgba(9, 27, 22, 0.28);
  --shadow-lg: 0 30px 80px -30px rgba(9, 27, 22, 0.4);
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "JetBrains Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.sidebar-open { overflow: hidden; }

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(13, 43, 37, 0.2);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(13, 43, 37, 0.38); }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.icon { flex: none; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.align-right { text-align: right; }
.nowrap { white-space: nowrap; }
.muted-copy { color: var(--muted); font-size: 14px; }
.subtle { color: var(--muted-light); font-size: 12px; }
.text-positive { color: var(--green); }
.text-negative { color: var(--red); }
.text-alert { color: var(--coral); }

/* ----------------------------------------------------------------
   Brand
   ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mark-size, 30px);
  height: var(--mark-size, 30px);
  border-radius: 30%;
  background: var(--forest);
  color: var(--lime);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo-mark svg { width: 68%; height: 68%; }
.brand-word {
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
  font-weight: 800;
}
.brand-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  line-height: 1;
}
.brand-light { color: var(--paper); }
.brand-light .logo-mark { background: var(--lime); color: var(--forest); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--avatar-size, 32px);
  height: var(--avatar-size, 32px);
  border-radius: 50%;
  background: var(--avatar-bg, var(--forest));
  color: #fff;
  font-size: calc(var(--avatar-size, 32px) * 0.4);
  font-weight: 700;
  flex: none;
  letter-spacing: 0;
  text-transform: uppercase;
}
.avatar-lg { font-size: 26px; box-shadow: 0 0 0 6px rgba(214, 255, 114, 0.14); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -14px rgba(13, 59, 51, 0.8);
}
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 14px 30px -15px rgba(13, 59, 51, 0.72); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1b3830; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e1ff96; }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.72); border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.28); color: var(--paper); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b93623; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { background: rgba(13, 43, 37, 0.06); color: var(--ink); }
.icon-btn.is-copied { color: var(--green); }
.danger-hover:hover { background: var(--coral-soft); color: var(--red); }
.row-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }

.link-arrow,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--forest);
  transition: gap 0.18s ease;
}
.link-arrow:hover,
.inline-link:hover { gap: 9px; }
.text-link { font-size: 14px; font-weight: 600; color: var(--ink); }
.text-link:hover { color: var(--forest-3); }

/* ----------------------------------------------------------------
   Tags, status
   ---------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(13, 43, 37, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.tag-lime { background: var(--lime); color: var(--ink); }
.tag-dark { background: var(--ink); color: var(--paper); }
.tag-outline { background: transparent; border: 1px solid var(--line-strong); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success { background: #e4f6ec; color: #1b6b4d; }
.status-warning { background: #fff1d6; color: #8a5a0a; }
.status-danger { background: #ffe5df; color: #b23722; }
.status-info { background: #e8efff; color: #2b56b7; }
.status-muted { background: rgba(13, 43, 37, 0.06); color: var(--muted); }
.pin-label { display: inline-flex; align-items: center; gap: 3px; color: var(--forest); font-size: 11px; font-weight: 700; }

/* ----------------------------------------------------------------
   Form fields
   ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label,
.field > .label-row label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 12px; color: var(--forest); font-weight: 600; }

.field input,
.field select,
.field textarea,
.modal-form > input,
.modal-form > select,
.modal-form > textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  padding: 11px 13px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.field textarea,
.modal-form textarea { resize: vertical; line-height: 1.65; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #a3aea9; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(13, 59, 51, 0.1);
  background: #fff;
}
.field input:disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(13, 59, 51, 0.1);
}
.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
.input-wrap input:focus { outline: none; }
.input-wrap-lg { min-height: 52px; border-radius: 13px; }
.input-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  flex: none;
}
.input-action:hover { background: rgba(13, 43, 37, 0.06); color: var(--ink); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }

.checkbox-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--forest); flex: none; }
.checkbox-row a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.inline-check { margin-top: 4px; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.switch-row > input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--paper-3);
  transition: background 0.18s ease;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}
.switch-row input:checked + .switch { background: var(--forest); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }

.form-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.form-alert.is-visible { display: flex; }
.form-alert-error { background: #ffe9e3; color: #9b2f1d; }
.form-alert-info { background: #eaf1ff; color: #294f9e; }
.form-alert-success { background: #e5f6ec; color: #1d6a4c; }
.form-alert .icon { margin-top: 1px; flex: none; }

.segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: rgba(13, 43, 37, 0.055);
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(9, 27, 22, 0.12);
}

.filter-select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: var(--surface);
  font-size: 12.5px;
  color: var(--ink);
  min-width: 130px;
}

/* ----------------------------------------------------------------
   Panels, tables, empty states
   ---------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px 16px;
}
.panel-head h2 { font-size: 16px; font-weight: 750; letter-spacing: -0.015em; }
.panel-head p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  font-weight: 650;
  padding: 4px 0;
  white-space: nowrap;
}
.panel-link:hover { gap: 7px; }
.panel-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(13, 43, 37, 0.05);
  padding: 4px 9px;
  border-radius: 999px;
}
.panel-icon {
  display: inline-flex;
  color: var(--muted);
  background: var(--paper);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.panel-pad { padding: 0 22px 22px; }
.panel-empty { padding: 16px 0; }
.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--green);
}
.panel-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 122, 88, 0.12);
}

.table-wrap { width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}
.data-table th {
  padding: 10px 18px;
  text-align: left;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.14s ease; }
.data-table tbody tr:hover { background: rgba(214, 255, 114, 0.08); }
.data-table.compact td { padding: 11px 18px; }
.muted-cell { color: var(--muted); }
.table-primary { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.table-primary strong { font-weight: 650; font-size: 13px; }
.table-primary code { font-size: 10.5px; color: var(--muted-light); font-weight: 400; }
.table-model { display: flex; align-items: center; gap: 10px; }
.table-model > div { display: flex; flex-direction: column; gap: 1px; }
.table-model strong { font-size: 13px; }
.table-model code { font-size: 10.5px; color: var(--muted); }
.table-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--dot); flex: none; }
.model-mini-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--forest);
  flex: none;
  display: inline-block;
  margin-right: 6px;
}
.price-cell { font-family: var(--font-mono); font-size: 12.5px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.page-controls { display: flex; gap: 3px; }
.page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.page-btn.is-active { background: var(--forest); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 46px 24px;
  gap: 6px;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--forest);
  margin-bottom: 8px;
}
.empty-state h3 { font-size: 15px; font-weight: 700; }
.empty-state p { font-size: 13px; color: var(--muted); max-width: 380px; margin-bottom: 8px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.check-list .icon { color: var(--green); margin-top: 2px; flex: none; }

/* ----------------------------------------------------------------
   Code blocks
   ---------------------------------------------------------------- */

.code-block {
  background: #0a211b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.7);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 5px;
}
.code-copy:hover { color: var(--lime); background: rgba(255, 255, 255, 0.06); }
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #d6e3dc;
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
}
.code-block pre code { font-family: var(--font-mono); }
.code-block .c-lime { color: var(--lime); }
.code-block .c-blue { color: #86a8ff; }
.code-block .c-muted { color: #7c948b; }

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 21, 17, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  width: min(600px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal-wide { width: min(820px, 100%); }
.playground-modal { width: min(1020px, 100%); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.025em; }
.modal-head p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.modal-close { margin: -4px -6px 0 0; }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Toast
   ---------------------------------------------------------------- */

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 38px 12px 13px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: toast-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.toast.is-leaving { animation: toast-out 0.2s ease forwards; }
.toast-icon { color: var(--lime); margin-top: 1px; flex: none; }
.toast-error .toast-icon { color: #ff9b86; }
.toast-info .toast-icon { color: #9ec1ff; }
.toast-text { flex: 1; }
.toast-close {
  position: absolute;
  top: 9px;
  right: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px;
  border-radius: 5px;
}
.toast-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--lime);
  transform-origin: left;
  animation: toast-timer 3.8s linear forwards;
}
.toast-error .toast-timer { background: var(--coral); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ----------------------------------------------------------------
   Misc
   ---------------------------------------------------------------- */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 500;
  background: var(--lime-strong);
  box-shadow: 0 0 12px rgba(214, 255, 114, 0.9);
  opacity: 0;
  transition: width 0.3s ease, opacity 0.15s ease;
}
.route-progress.is-active { opacity: 1; }

.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, #f6f4ec 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
.skeleton-row { height: 44px; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.boot-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.boot-mark {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--forest);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boot-pulse 1.8s ease-in-out infinite;
}
.boot-mark svg { width: 60%; }
@keyframes boot-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 59, 51, 0.2); } 50% { transform: scale(0.94); box-shadow: 0 0 0 12px rgba(13, 59, 51, 0); } }

.boot-error { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.boot-error-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.boot-error-card h1 { font-size: 23px; letter-spacing: -0.03em; }
.boot-error-card p { color: var(--muted); font-size: 14px; }
.boot-error-card > span { font-size: 11px; color: var(--muted-light); margin-top: 4px; }
.boot-error-card code { background: var(--paper); padding: 2px 5px; border-radius: 4px; }

.chart-wrap { position: relative; padding: 0 6px 6px; }
.area-chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: rgba(13, 43, 37, 0.08); stroke-dasharray: 3 5; }
.chart-label { fill: var(--muted-light); font-size: 9.5px; font-family: var(--font-sans); }
.chart-dot { transition: r 0.15s ease; }
.chart-dot:hover { r: 5; }
.chart-float {
  position: absolute;
  top: 10px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.chart-float strong { font-size: 20px; letter-spacing: -0.03em; line-height: 1.1; }
.chart-float span { font-size: 10px; color: var(--muted); }
.chart-panel { display: flex; flex-direction: column; }
.chart-panel .chart-wrap { flex: 1; display: flex; align-items: center; }
.chart-panel .area-chart { width: 100%; }
.chart-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: auto 20px 0;
  padding: 13px 0 16px;
  border-top: 1px solid var(--line);
}
.chart-summary > span { display: flex; flex-direction: column; gap: 1px; font-size: 8.5px; color: var(--muted-light); }
.chart-summary strong { font-family: var(--font-mono); font-size: 12px; font-weight: 550; color: var(--ink); }
.chart-summary .chart-summary-right { margin-left: auto; flex-direction: row; align-items: center; gap: 4px; color: var(--muted-light); font-size: 8.5px; }

.mini-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
}
.mini-code code { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--forest); }
.inline-code { background: rgba(13, 43, 37, 0.06); padding: 2px 5px; border-radius: 4px; font-size: 0.9em; }

/* ================================================================
   Public site
   ================================================================ */

.landing { overflow: clip; }

.announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 7px 20px;
  background: var(--ink);
  color: rgba(244, 242, 234, 0.82);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.announce-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.announce-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lime);
  font-weight: 600;
  white-space: nowrap;
}
.announce-bar a:hover { gap: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(244, 242, 234, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header:has(.brand:hover) { border-bottom-color: var(--line); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.16s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--forest);
  transition: right 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-active::after { right: 0; }
.site-actions { display: flex; align-items: center; gap: 16px; }
.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--forest);
  background: rgba(13, 59, 51, 0.06);
  padding: 6px 9px;
  border-radius: 7px;
}
.mobile-menu-btn { display: none; }
.public-mobile-nav { display: none; }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 52px;
  padding-top: 78px;
  padding-bottom: 70px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -25% auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(214, 255, 114, 0.4), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow-light { color: var(--lime); }
.hero-eyebrow {
  padding: 6px 11px;
  background: rgba(13, 59, 51, 0.06);
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 122, 88, 0.12);
  animation: live-pulse 2.4s ease infinite;
}
@keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(30, 122, 88, 0); } }

.hero h1 {
  margin-top: 25px;
  font-size: clamp(3.3rem, 5.8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 800;
  color: var(--ink);
}
.hero-highlight {
  position: relative;
  display: inline-block;
  color: var(--forest);
  z-index: 0;
}
.hero-highlight::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.05em;
  bottom: 0.06em;
  height: 0.36em;
  background: var(--lime);
  z-index: -1;
  transform: skewX(-8deg);
}
.hero-lede {
  max-width: 520px;
  margin-top: 25px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 21px;
  color: var(--muted);
  font-size: 11.5px;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 5px; }
.hero-proof .icon { color: var(--green); }
.provider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.provider-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Gateway illustration */

.hero-visual { position: relative; z-index: 1; }
.gateway-panel {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 8%, rgba(214, 255, 114, 0.13), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(255, 107, 74, 0.12), transparent 40%),
    linear-gradient(145deg, #0b2d26, #061b16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -40px rgba(4, 20, 16, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: var(--paper);
}
.gateway-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.gp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-family: var(--font-mono);
  position: relative;
  z-index: 2;
}
.gp-dots { display: flex; gap: 4px; }
.gp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.gp-dots i:first-child { background: #ff7257; }
.gp-dots i:nth-child(2) { background: #e7b844; }
.gp-dots i:nth-child(3) { background: #69c98a; }
.gp-title { color: rgba(255, 255, 255, 0.42); }
.gp-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.gp-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.route-map { position: relative; height: 358px; }
.route-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-lines path {
  stroke: rgba(214, 255, 114, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  animation: route-dash 22s linear infinite;
}
.route-lines path.route-dim { stroke: rgba(255, 255, 255, 0.12); }
@keyframes route-dash { to { stroke-dashoffset: -200; } }
.route-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.route-hub .logo-mark {
  background: var(--lime);
  color: var(--forest);
  border-radius: 14px;
  box-shadow: 0 0 0 10px rgba(214, 255, 114, 0.06), 0 0 60px rgba(214, 255, 114, 0.18);
}
.route-hub strong { font-size: 13px; letter-spacing: 0.02em; margin-top: 4px; }
.route-hub small { font-size: 8px; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; }
.hub-glow {
  position: absolute;
  top: -54px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(214, 255, 114, 0.12);
  animation: hub-ring 3.4s ease-out infinite;
}
.hub-glow::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(214, 255, 114, 0.1);
}
@keyframes hub-ring { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.22); opacity: 0; } }
.route-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  z-index: 2;
  animation: chip-float 6s ease-in-out infinite;
}
.route-chip em { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: rgba(255, 255, 255, 0.35); }
.chip-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}
.chip-glyph.gpt { color: #9ff0d2; }
.chip-glyph.claude { color: #ffc59b; }
.chip-glyph.gemini { color: #9ebcff; }
.chip-glyph.ds { color: #b7a8ff; }
.chip-glyph.llama { color: #ffd48a; }
.chip-1 { left: 5%; top: 13%; }
.chip-2 { right: 4%; top: 9%; animation-delay: -1.8s; }
.chip-3 { left: 2%; bottom: 16%; animation-delay: -3.2s; }
.chip-4 { right: 3%; bottom: 15%; animation-delay: -2.4s; }
.chip-5 { left: 44%; top: 2%; animation-delay: -4.1s; }
@keyframes chip-float { 50% { transform: translateY(-5px); } }
.gp-log {
  position: relative;
  z-index: 2;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 10px;
}
.gp-log-line { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.65); }
.method { font-size: 8px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 4px; border-radius: 3px; background: rgba(214, 255, 114, 0.14); color: var(--lime); }
.gp-log-line .ok { margin-left: auto; color: #7fe2b0; }
.gp-log-line .time { color: rgba(255, 255, 255, 0.32); }
.gp-log-route { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: rgba(255, 255, 255, 0.38); }
.gp-log-route b { color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.gp-log-route .cost { margin-left: auto; color: var(--lime); }
.route-pulse { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.hero-float {
  position: absolute;
  left: -24px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px 11px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: float-card 7s ease-in-out infinite;
}
.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--forest);
}
.hero-float strong { display: block; font-family: var(--font-mono); font-size: 14px; line-height: 1.2; }
.hero-float span { font-size: 9px; color: var(--muted); }
@keyframes float-card { 50% { transform: translateY(-7px); } }

/* Stats band */

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, 0.42); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 28px 0;
}
.stats-grid > div { display: flex; flex-direction: column; gap: 1px; }
.stats-grid strong { font-size: clamp(1.55rem, 2.3vw, 2.05rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.stats-grid strong sup { font-size: 0.5em; vertical-align: super; margin-left: 1px; color: var(--forest); }
.stats-grid span { font-size: 11px; color: var(--muted); }
.stats-note {
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  font-size: 10px;
  color: var(--muted-light);
  padding-left: 24px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

/* Section heads */

.models-section, .bento-section, .pricing-section, .faq-section { padding-top: 104px; padding-bottom: 20px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.section-side { max-width: 360px; flex: none; }
.section-side p, .section-side-copy { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.section-side .link-arrow { font-size: 13px; }
.section-side-copy { max-width: 330px; margin-top: 30px; }

/* Model cards */

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 245px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 43, 37, 0.28);
  box-shadow: 0 24px 50px -36px rgba(9, 27, 22, 0.4);
}
.model-card-top { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.model-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--glyph-color) 10%, white);
  color: var(--glyph-color);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--glyph-color) 18%, transparent);
}
.model-glyph-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.model-glyph-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 19px; }
.model-provider { font-size: 11px; font-weight: 650; color: var(--muted); }
.model-card-top .tag { margin-left: auto; }
.model-card h3 { font-size: 19px; letter-spacing: -0.025em; font-weight: 750; }
.model-card > p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.model-tags span {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(13, 43, 37, 0.045);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}
.model-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.model-price strong { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.model-price span { font-size: 10px; color: var(--muted); margin-left: 3px; }
.model-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.model-card:hover .model-arrow { background: var(--forest); color: var(--lime); transform: rotate(0deg); }

/* Bento */

.bento-section { padding-top: 112px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-large { grid-column: span 2; }
.bento-wide { grid-column: span 2; }
.bento-dark {
  background:
    radial-gradient(circle at 92% 10%, rgba(214, 255, 114, 0.14), transparent 35%),
    linear-gradient(145deg, #0b2d26, #071d18);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}
.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--paper);
  color: var(--forest);
  margin-bottom: 20px;
}
.bento-dark .bento-icon { background: rgba(214, 255, 114, 0.12); color: var(--lime); }
.bento h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.bento > p { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 420px; }
.bento-dark > p { color: rgba(255, 255, 255, 0.52); }
.mini-terminal {
  margin-top: auto;
  padding-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mini-terminal > div { display: flex; align-items: center; gap: 4px; padding: 8px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mini-terminal em { margin-left: 6px; font-style: normal; font-size: 8px; color: rgba(255, 255, 255, 0.3); }
.t-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.t-dot.red { background: #ff7257; }
.t-dot.yellow { background: #e7b844; }
.t-dot.green { background: #69c98a; }
.mini-terminal pre { margin: 0; padding: 12px; font-size: 10.5px; line-height: 1.8; color: #c9d8d0; overflow-x: auto; }
.mini-terminal .c-lime { color: var(--lime); }
.mini-terminal .c-blue { color: #8faeff; }
.mini-terminal .c-muted { color: #759087; }
.mini-route { position: relative; margin-top: auto; height: 56px; }
.route-line { position: absolute; left: 0; right: 20%; top: 30px; height: 1px; background: var(--line-strong); }
.route-dot {
  position: absolute;
  top: 25px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--forest);
}
.route-dot.d1 { left: 0; }
.route-dot.d2 { left: 38%; }
.route-dot.d3 { left: 76%; background: var(--lime); border-color: var(--forest); }
.route-end {
  position: absolute;
  right: 0;
  top: 19px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--green);
  font-family: var(--font-mono);
}
.mini-bill { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 18px; }
.mini-bill span { font-size: 10px; color: var(--muted); }
.mini-bill strong { font-family: var(--font-mono); font-size: 22px; letter-spacing: -0.04em; }
.mini-bill em { font-style: normal; font-size: 9px; color: var(--muted); }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 72px; margin-top: auto; padding-top: 18px; }
.mini-chart span { flex: 1; background: linear-gradient(to top, var(--forest), var(--forest-3)); border-radius: 3px 3px 0 0; opacity: 0.85; }
.mini-keys { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.mini-keys > div { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; background: var(--paper); font-size: 9.5px; }
.key-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }
.key-dot.muted { background: var(--muted-light); }
.mini-keys code { flex: 1; color: var(--muted); }
.key-state { color: var(--green); font-size: 8px; }
.key-state.muted { color: var(--muted-light); }
.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 650;
  color: var(--forest);
}
.bento-link:hover { gap: 8px; }
.bento-docs { background: linear-gradient(160deg, #fffdf8, #f2f8e8); }

/* Integration */

.integration-section {
  margin-top: 112px;
  padding: 92px 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(214, 255, 114, 0.1), transparent 35%),
    radial-gradient(circle at 5% 100%, rgba(255, 107, 74, 0.12), transparent 40%),
    var(--ink);
  color: var(--paper);
}
.integration-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.integration-copy h2 { margin-top: 16px; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.05em; }
.integration-copy > p { margin-top: 18px; color: rgba(255, 255, 255, 0.52); font-size: 14px; line-height: 1.8; max-width: 430px; }
.integration-steps { display: flex; flex-direction: column; gap: 18px; margin: 30px 0; }
.integration-steps > div { display: flex; gap: 14px; }
.integration-steps > div > span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--lime);
  padding-top: 3px;
  width: 22px;
  flex: none;
}
.integration-steps strong { font-size: 13px; font-weight: 650; }
.integration-steps p { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 2px; }
.integration-code .code-block { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.1); }
.tab-bar { display: flex; gap: 5px; margin-bottom: 10px; }
.tab-bar button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  height: 29px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 10.5px;
  font-family: var(--font-mono);
}
.tab-bar button.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Pricing */

.mobile-scroll-hint { display: none; align-items: center; gap: 5px; margin-bottom: 8px; color: var(--muted-light); font-size: 9.5px; }
.pricing-table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pricing-table th {
  padding: 13px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.pricing-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:hover { background: rgba(214, 255, 114, 0.06); }
.pricing-table .price-cell { font-family: var(--font-mono); font-size: 12px; }
.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.pricing-notes > div {
  display: flex;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.45);
}
.pricing-notes .icon { color: var(--forest); margin-top: 2px; flex: none; }
.pricing-notes span { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--muted); }
.pricing-notes strong { font-size: 12px; color: var(--ink); font-weight: 650; }

/* FAQ */

.faq-section { padding-top: 104px; padding-bottom: 96px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.faq-grid > div:first-child h2 { margin-top: 14px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.05em; }
.faq-grid > div:first-child p { margin-top: 16px; font-size: 13px; color: var(--muted); }
.faq-grid > div:first-child a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  flex: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--lime); }
.faq-answer { padding: 0 44px 20px 2px; }
.faq-answer p { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* CTA */

.cta-section { padding: 0 0 96px; }
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 52px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 30%, rgba(214, 255, 114, 0.14), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255, 107, 74, 0.14), transparent 40%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta-star { color: var(--lime); opacity: 0.7; flex: none; }
.cta-star .logo-mark { background: rgba(214, 255, 114, 0.12); color: var(--lime); width: 64px; height: 64px; border-radius: 20px; }
.cta-inner h2 { margin-top: 12px; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -0.05em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; flex: none; }
.cta-actions > span { font-size: 10.5px; color: rgba(255, 255, 255, 0.42); }

/* Footer */

.site-footer { background: var(--ink-deep); color: rgba(244, 242, 234, 0.62); padding: 64px 0 26px; }
.footer-top {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand-word { color: var(--paper); }
.footer-brand p { margin-top: 18px; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, 0.4); }
.footer-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 10px; color: rgba(255, 255, 255, 0.45); }
.footer-status i { width: 5px; height: 5px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 8px rgba(110, 231, 168, 0.7); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.32); font-weight: 700; margin-bottom: 4px; }
.footer-links a { font-size: 12px; color: rgba(255, 255, 255, 0.55); transition: color 0.16s ease; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; }
