:root {
  color-scheme: dark;
  --background: #070708;
  --surface: #0b0b0d;
  --surface-raised: #111114;
  --surface-soft: #1c1c20;
  --border: #2b2b31;
  --border-soft: #1d1d22;
  --text: #f5f5f7;
  --muted: #a6a6ad;
  --faint: #74747d;
  --purple: #6865f2;
  --purple-light: #8583ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) 1fr auto;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(18px);
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile-pill span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #5c8f43;
  color: #dff4d5;
  font-size: 11px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
}

.logo-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #060607;
  font-size: 12px;
  font-weight: 850;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #1b1b1f;
  color: var(--muted);
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--faint);
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  width: 6px;
  height: 1.5px;
  background: var(--faint);
  position: absolute;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
}

.nav-search input,
.api-key input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search kbd {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #34343a;
  color: #d6d6dc;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active,
.subtitle a,
.feature-copy a {
  color: var(--purple-light);
}

.api-key {
  display: grid;
  grid-template-columns: auto minmax(120px, 190px);
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #202024;
  color: var(--muted);
  font-size: 13px;
}

main {
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

.page-main {
  padding-top: 54px;
}

.page-main.narrow {
  max-width: 860px;
}

.settings-layout {
  max-width: none;
  display: grid;
  grid-template-columns: 263px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.settings-sidebar {
  min-height: calc(100vh - 58px);
  border-right: 1px solid var(--border-soft);
  background: #09090a;
  padding: 14px 12px;
}

.workspace-select {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #0c0c0e;
  color: var(--text);
  padding: 0 14px;
  font-weight: 650;
}

.settings-sidebar nav {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.settings-sidebar a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.settings-sidebar a.active,
.settings-sidebar a:hover {
  background: #232326;
  color: var(--text);
}

.settings-sidebar a span {
  width: 18px;
  color: var(--muted);
}

.sidebar-label {
  margin: 36px 0 6px 4px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.keys-content {
  padding: 30px clamp(32px, 7vw, 150px);
}

.keys-heading {
  margin-bottom: 42px;
}

.keys-heading h1 {
  font-size: 28px;
  line-height: 1.1;
}

.keys-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.keys-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px 156px 90px;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.keys-toolbar h2 {
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.key-table-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #26262b;
  color: var(--text);
  outline: 0;
  padding: 0 14px;
  font-size: 16px;
}

.create-button {
  width: 100%;
  height: 48px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pager button {
  border: 0;
  border-right: 1px solid var(--border);
  background: #1b1b1f;
  color: var(--muted);
}

.pager button:last-child {
  border-right: 0;
}

.keys-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.keys-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #080809;
}

.keys-table th,
.keys-table td {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  text-align: left;
  color: var(--muted);
  vertical-align: middle;
}

.keys-table th {
  height: 48px;
  color: var(--muted);
  font-weight: 700;
}

.keys-table td {
  height: 78px;
  font-size: 16px;
}

.keys-table tbody tr:nth-child(even) {
  background: #171719;
}

.keys-table td strong {
  display: block;
  color: #d6d6dc;
  font-size: 17px;
  margin-bottom: 6px;
}

.keys-table td span {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.checkbox-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--purple);
  border-radius: 5px;
}

.guardrail {
  margin-right: 12px;
  font-family: inherit !important;
  font-weight: 650;
}

.limit-text {
  display: inline-block;
  color: #d6d6dc !important;
  font-size: 16px !important;
}

.total-chip {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700;
}

.more-cell {
  text-align: right !important;
  font-size: 24px !important;
}

.table-quickstart {
  margin-top: 18px;
}

.one-time-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.modal-backdrop[hidden] {
  display: none;
}

.or-modal {
  width: min(600px, calc(100vw - 32px));
  position: relative;
  border: 1px solid #3a3a42;
  border-radius: 8px;
  background: #121214;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.create-key-modal {
  display: grid;
  gap: 28px;
  padding: 52px 30px 20px;
}

.new-key-modal {
  padding: 58px 48px 40px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #4a4a54;
  border-radius: 999px;
  background: #1c1c20;
  color: var(--muted);
  cursor: pointer;
}

.modal-field {
  display: grid;
  gap: 14px;
}

.modal-field span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.modal-field small {
  color: var(--faint);
}

.modal-field input,
.modal-field select {
  width: 100%;
  height: 50px;
  border: 1px solid #303038;
  border-radius: 8px;
  background: #303036;
  color: var(--text);
  outline: 0;
  padding: 0 14px;
  font-size: 20px;
}

.modal-field select {
  background: #111114;
  font-size: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.modal-actions .button {
  min-width: 102px;
  color: var(--muted);
  background: #141418;
}

.new-key-modal h2 {
  text-align: center;
  color: #d8d8de;
  font-size: 22px;
  margin-bottom: 22px;
}

.modal-key-row {
  max-width: 474px;
  margin: 0 auto 22px;
}

.modal-key-row code {
  overflow: auto;
  white-space: nowrap;
  border-radius: 5px;
  background: #303036;
  color: #efeff3;
  padding: 12px;
}

.icon-copy-button {
  width: 39px;
  height: 39px;
  border: 1px solid #42424a;
  border-radius: 6px;
  background: #17171a;
  color: var(--muted);
  cursor: pointer;
}

.new-key-copy {
  max-width: 474px;
  margin: 18px auto 0;
  color: #d4d4dc;
  line-height: 1.45;
  font-size: 20px;
}

.new-key-copy a {
  color: var(--purple-light);
}

.delete-key-button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
}

.delete-key-button:hover {
  color: #ff7777;
  border-color: #7d3333;
}

.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 68px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(52px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 24px;
  color: var(--muted);
  font-size: 21px;
}

.subtitle.small {
  margin-top: 8px;
  font-size: 16px;
}

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

.key-result {
  min-height: 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.key-create-card,
.generated-key-panel,
.quickstart-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #0a0a0c;
  padding: 20px;
}

.key-create-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  align-items: end;
}

.key-create-card h2 {
  font-size: 22px;
}

.key-name-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.key-name-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #08080a;
  color: var(--text);
  outline: 0;
  padding: 0 12px;
}

.generated-key-panel,
.quickstart-card {
  margin-top: 16px;
}

.generated-key-panel[hidden] {
  display: none;
}

.generated-key-panel code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #08080a;
  padding: 14px;
}

.quickstart-card pre {
  overflow: auto;
  margin: 0;
}

.button {
  display: inline-flex;
  min-width: 138px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 20px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.button.large {
  min-width: 228px;
}

.button.primary {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  font-weight: 650;
}

.button.secondary {
  background: transparent;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 24px;
  margin-top: 72px;
  width: min(760px, 100%);
}

.stats div,
.page-stats div {
  padding: 18px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.55), rgba(9, 9, 10, 0));
}

.stats strong,
.page-stats strong {
  display: block;
  color: var(--text);
  font-size: 37px;
  line-height: 1.1;
}

.stats span,
.page-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.pretitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.section-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.82);
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.api-catalog {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.api-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(140px, 0.7fr) minmax(220px, 1fr) 90px;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  color: var(--muted);
}

.api-row:last-child {
  border-bottom: 0;
}

.api-row code {
  overflow-wrap: anywhere;
}

.api-head {
  min-height: 46px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 750;
}

.native-playground {
  margin-top: 18px;
}

.native-test-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.native-controls {
  display: grid;
  align-content: start;
  gap: 18px;
}

.native-controls .modal-field {
  gap: 10px;
}

.native-controls .modal-field span {
  font-size: 13px;
  text-transform: uppercase;
}

.native-controls .modal-field input,
.native-controls .modal-field select {
  height: 44px;
  background: #111114;
  font-size: 15px;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  text-align: center;
}

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

.ok {
  color: var(--purple-light) !important;
}

.bad {
  color: #ff7777 !important;
}

.models-layout {
  max-width: none;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.model-filter-panel {
  min-height: calc(100vh - 58px);
  border-right: 1px solid var(--border-soft);
  background: #09090a;
  padding: 16px 12px;
}

.filter-button {
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #101012;
  color: var(--text);
  padding: 0 14px;
  font-weight: 650;
}

.filter-group {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.filter-group h2 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.filter-group label span {
  margin-left: auto;
  color: var(--faint);
}

.models-content {
  padding: 30px clamp(28px, 5vw, 80px);
}

.models-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sort-tabs,
.modality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sort-tabs button,
.modality-row button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.sort-tabs button.active,
.modality-row button.active {
  color: var(--text);
}

.modality-row button {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 12px;
  background: #101012;
}

.openrouter-model-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.or-model-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #080809;
  color: var(--muted);
  text-align: left;
  padding: 16px;
  cursor: pointer;
}

.or-model-card:hover,
.or-model-card.active {
  border-color: var(--border);
  background: #101012;
}

.model-vendor {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #171719;
  color: var(--purple-light);
  font-weight: 800;
}

.model-main strong,
.model-main span,
.model-main small {
  display: block;
}

.model-main strong {
  color: var(--text);
  font-size: 18px;
}

.model-main span {
  margin-top: 4px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.model-main small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.model-meta {
  display: grid;
  gap: 6px;
  min-width: 150px;
  color: var(--muted);
  font-size: 13px;
}

.model-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.model-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.compact-list {
  max-height: 680px;
}

.model-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 14px 16px;
  background: #0a0a0c;
  color: var(--muted);
  cursor: pointer;
}

.model-card:hover,
.model-card.active {
  border-color: var(--border);
  background: #111114;
}

.model-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.model-card span span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 13px;
}

.price-chip {
  color: var(--purple-light);
  font-size: 13px;
  white-space: nowrap;
}

.model-detail,
.model-picker,
.response-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.82);
}

.model-detail {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 78px;
}

.model-detail h2,
.chat-model-line h2 {
  font-size: 25px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.model-name {
  margin-top: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.details-grid div {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #0a0a0c;
}

dt {
  color: var(--faint);
  font-size: 12px;
}

dd {
  margin: 6px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.description {
  color: var(--muted);
  line-height: 1.55;
}

code {
  color: var(--purple-light);
  font-size: 14px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.model-picker,
.response-box {
  padding: 18px;
}

.chat-model-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.prompt-box {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.prompt-box.flat {
  border: 0;
  background: transparent;
  padding: 0;
}

textarea {
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #08080a;
  color: var(--text);
  outline: 0;
  padding: 14px;
  line-height: 1.5;
}

textarea:focus {
  border-color: var(--purple);
}

.response-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.switch input {
  accent-color: var(--purple);
}

.run-actions {
  display: flex;
  gap: 10px;
}

.output {
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #08080a;
  color: #dedee5;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.run-meta {
  display: block;
  margin-top: 10px;
  min-height: 18px;
  color: var(--faint);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .api-key {
    border-radius: 7px;
  }

  main {
    padding: 0 18px 48px;
  }

  .page-main {
    padding-top: 24px;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 72px;
  }

  .hero-actions,
  .section-heading,
  .response-toolbar,
  .chat-model-line {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .page-stats,
  .model-browser,
  .chat-layout,
  .native-test-layout,
  .settings-layout,
  .models-layout,
  .keys-toolbar,
  .key-create-card,
  .or-model-card,
  .one-time-key {
    grid-template-columns: 1fr;
  }

  .settings-sidebar,
  .model-filter-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    min-width: 0;
  }

  .keys-content,
  .models-content {
    padding: 24px 18px;
    min-width: 0;
  }

  .model-detail {
    position: static;
  }
}

/* Launch polish for SettleKit */
:root {
  --background: #08090a;
  --surface: #101113;
  --surface-raised: #15171a;
  --surface-soft: #202328;
  --border: #2a2f35;
  --border-soft: #1d2228;
  --text: #f4f2ec;
  --muted: #a9aea8;
  --faint: #747b78;
  --purple: #2f8f71;
  --purple-light: #7fd8ae;
  --accent-blue: #7aa7ff;
  --accent-amber: #e4b85f;
}

body {
  background:
    linear-gradient(180deg, rgba(20, 35, 32, 0.56), rgba(8, 9, 10, 0) 420px),
    var(--background);
}

.site-nav {
  height: 64px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(8, 9, 10, 0.9);
}

.logo {
  letter-spacing: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f4f2ec;
  color: #101113;
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-search,
.api-key,
.workspace-select,
.filter-button,
.key-table-search input,
.modal-field input,
.modal-field select,
textarea,
.output {
  background: #111417;
}

.button {
  border-radius: 7px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.button.primary {
  border-color: #2f8f71;
  background: #2f8f71;
  color: #07100c;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.launch-hero {
  min-height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 104px 0 46px;
}

.hero-kicker {
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

.launch-hero h1 {
  max-width: 920px;
  margin-top: 18px;
  font-size: clamp(46px, 7vw, 88px);
}

.launch-hero .subtitle {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.5;
}

.terminal-panel {
  width: min(900px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c0f11;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 14px;
  color: var(--muted);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d85f5f;
}

.terminal-bar span:nth-child(2) {
  background: var(--accent-amber);
}

.terminal-bar span:nth-child(3) {
  background: #64bc82;
}

.terminal-bar strong {
  margin-left: 8px;
  font-size: 13px;
}

.terminal-panel pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
}

.terminal-panel code {
  color: #e9ece7;
  font-size: 14px;
  line-height: 1.7;
}

.stats {
  width: min(900px, 100%);
  margin-top: 32px;
}

.stats div,
.page-stats div {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(18, 21, 23, 0.78);
}

.stats strong,
.page-stats strong {
  font-size: 31px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 72px;
}

.workflow-card {
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 17, 19, 0.92);
  padding: 24px;
}

.workflow-card h2 {
  margin-top: 12px;
  font-size: 25px;
  line-height: 1.16;
}

.workflow-card p:not(.pretitle) {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.primary-workflow {
  background:
    linear-gradient(135deg, rgba(47, 143, 113, 0.17), rgba(122, 167, 255, 0.08)),
    rgba(15, 17, 19, 0.95);
}

.inline-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--purple-light);
  font-weight: 700;
}

.section-block,
.model-detail,
.model-picker,
.response-box,
.key-create-card,
.generated-key-panel,
.quickstart-card,
.or-modal {
  border-radius: 8px;
  background: rgba(15, 17, 19, 0.9);
}

.api-row {
  grid-template-columns: minmax(260px, 1.2fr) minmax(150px, 0.72fr) minmax(180px, 1fr) 90px;
}

.api-row code,
code,
.price-chip {
  color: var(--accent-blue);
}

.or-model-card,
.model-card,
.details-grid div,
.keys-table-wrap {
  border-radius: 8px;
  background: #0d1012;
}

.keys-table {
  background: #0d1012;
}

.keys-table tbody tr:nth-child(even) {
  background: #14181b;
}

.settings-sidebar,
.model-filter-panel {
  background: #0b0d0f;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-layout,
  .models-layout {
    width: 100%;
    min-width: 0;
  }

  .keys-table-wrap,
  .api-catalog {
    max-width: 100%;
  }

  .launch-hero {
    padding-top: 64px;
  }

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

  .terminal-panel code {
    font-size: 13px;
  }
}
