:root {
  --ink: #171915;
  --muted: #6f746a;
  --line: #dedfd8;
  --paper: #f6f4ee;
  --surface: #fff;
  --green: #1d6b52;
  --green2: #dcece5;
  --nav: #171d1a;
  --danger: #bd3e31;
  --shadow: 0 22px 70px rgba(28, 32, 26, 0.12);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
}
button, input {
  font: inherit;
}
button, a {
  transition: 0.2s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.brand b {
  color: var(--green);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font: 800 18px/1 Georgia;
}
.brand.inverse {
  color: white;
}
.brand.inverse b {
  color: #83d4b3;
}
.brand.inverse .brand-mark {
  background: #e9f3ed;
  color: #174d3d;
}
.landing-header {
  height: 78px;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}
.landing-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.landing-header nav > a:hover {
  color: var(--green);
}
button {
  border: 0;
  cursor: pointer;
}
.text-button {
  background: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 700;
  border: 1px solid transparent;
}
.button.dark {
  background: var(--ink);
  color: #fff;
}
.button.primary {
  background: var(--green);
  color: #fff;
}
.button.ghost {
  background: transparent;
  border-color: #cfd1ca;
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}
.button.wide {
  width: 100%;
}
.hero {
  max-width: 1240px;
  margin: auto;
  min-height: 650px;
  padding: 105px 26px 80px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 84px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero h1 {
  font: 600 clamp(52px, 6vw, 78px)/0.99 Georgia, "Songti SC", serif;
  letter-spacing: -3px;
  margin: 0;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero-lead {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  margin: 28px 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.api-endpoint {
  max-width: 520px;
  padding: 14px 16px 14px 18px;
  background: #ebeae4;
  border: 1px solid #d8d8d1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.api-endpoint small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 5px;
}
.api-endpoint code {
  font-size: 13px;
}
.api-endpoint button, .endpoint-card button, .token-value button {
  background: none;
  color: var(--green);
  font-weight: 700;
}
.hero-card {
  background: #1d2320;
  color: #edf5f0;
  border-radius: 15px;
  box-shadow: 0 30px 80px rgba(23, 29, 26, 0.22);
  overflow: hidden;
  transform: rotate(1deg);
}
.code-head {
  height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #252c28;
  border-bottom: 1px solid #37413b;
  font-size: 12px;
}
.code-head i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #617068;
  margin-right: 5px;
}
.hero-card pre, .docs-content pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  font: 12px/1.85 "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}
.code-result {
  padding: 18px 22px;
  background: #151a17;
  border-top: 1px solid #37413b;
  display: grid;
  gap: 8px;
  font-size: 11px;
}
.code-result span {
  color: #77d0a8;
  font-weight: 800;
  letter-spacing: 1px;
}
.benefits {
  max-width: 1188px;
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}
.benefits article {
  padding: 30px;
  border-right: 1px solid var(--line);
}
.benefits article:last-child {
  border: 0;
}
.benefits strong {
  font: italic 20px Georgia;
  color: #a1a69d;
}
.benefits h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}
.benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.landing-section {
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 0 120px;
}
.section-heading {
  max-width: 580px;
  margin-bottom: 42px;
}
.section-heading h2 {
  font: 600 44px/1.1 Georgia, "Songti SC", serif;
  margin: 0 0 16px;
}
.section-heading > p:last-child {
  color: var(--muted);
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.model-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  min-height: 190px;
}
.model-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.model-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green2);
  color: var(--green);
  font-weight: 900;
}
.model-card h3 {
  font-size: 16px;
  margin: 18px 0 8px;
  overflow-wrap: anywhere;
}
.model-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 8px;
  background: #f0f1ed;
  border-radius: 5px;
  font-size: 10px;
  color: #596058;
}
.badge.active {
  background: #ddf2e8;
  color: #167050;
}
.quickstart {
  background: #e9ece5;
  max-width: none;
  padding: 100px max(26px, calc((100vw - 1188px) / 2));
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #cfd3cb;
}
.steps article {
  background: #e9ece5;
  padding: 30px;
}
.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #aeb4aa;
  border-radius: 50%;
  font-weight: 800;
  color: var(--green);
}
.steps h3 {
  margin: 30px 0 8px;
}
.steps p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
footer {
  max-width: 1188px;
  margin: auto;
  padding: 30px 0 50px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
  padding: 50px;
}
.console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f4f5f1;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  padding: 0 10px;
  margin-bottom: 44px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  height: 46px;
  border-radius: 8px;
  background: transparent;
  color: #aeb8b2;
  text-align: left;
  padding: 0 15px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.sidebar nav button span {
  width: 18px;
  text-align: center;
}
.sidebar nav button:hover, .sidebar nav button.active {
  background: #2a332e;
  color: #fff;
}
.sidebar nav button.active {
  box-shadow: inset 3px 0 #64bd94;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #303b35;
  padding: 18px 8px 0;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.user-chip > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcece5;
  color: var(--green);
  font-weight: 800;
}
.user-chip div {
  min-width: 0;
}
.user-chip b, .user-chip small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip b {
  font-size: 13px;
}
.user-chip small {
  color: #89958e;
  font-size: 10px;
  margin-top: 3px;
}
.sidebar-logout {
  margin-top: 14px;
  background: none;
  color: #89958e;
  font-size: 11px;
  padding: 0;
}
.console-main {
  min-width: 0;
  padding: 36px 44px 70px;
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}
.console-header p {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 7px;
  text-transform: uppercase;
}
.console-header h1 {
  font: 600 32px/1.1 Georgia, "Songti SC", serif;
  margin: 0;
}
.console-header #menu-toggle {
  display: none;
  background: none;
  font-size: 22px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-grid article, .surface {
  background: #fff;
  border: 1px solid #dfe1dc;
  border-radius: 11px;
}
.stat-grid article {
  padding: 24px;
  min-height: 145px;
  display: flex;
  flex-direction: column;
}
.stat-grid small {
  color: var(--muted);
  font-size: 11px;
}
.stat-grid strong {
  font: 600 38px Georgia;
  margin: 18px 0 6px;
}
.stat-grid span {
  font-size: 11px;
  color: #92978f;
}
.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.surface {
  padding: 24px;
}
.surface-head {
  display: flex;
  justify-content: space-between;
}
.surface h2, .panel-heading h2 {
  font-size: 18px;
  margin: 0;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #eceee9;
}
.checklist li > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef0ec;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.checklist li.done > span {
  background: var(--green2);
  color: var(--green);
}
.checklist b, .checklist small {
  display: block;
}
.checklist b {
  font-size: 13px;
}
.checklist small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.endpoint-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f2ee;
  border: 1px solid #e0e2dc;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}
.endpoint-card code {
  overflow: hidden;
  text-overflow: ellipsis;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.table-wrap {
  padding: 0;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}
th {
  padding: 13px 18px;
  background: #f3f4f1;
  color: #747a71;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 17px 18px;
  border-top: 1px solid #e7e9e4;
  font-size: 12px;
}
td code {
  font-size: 11px;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eee;
  font-size: 10px;
}
.status.active, .status.succeeded {
  background: #def1e8;
  color: #156a4b;
}
.status.queued, .status.running {
  background: #e7edf7;
  color: #3d5f93;
}
.status.failed, .status.revoked, .status.cancelled {
  background: #f7e4e1;
  color: #9d352b;
}
.danger-link {
  background: none;
  color: var(--danger);
  font-size: 11px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
}
.docs-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}
.docs-nav button {
  background: transparent;
  text-align: left;
  padding: 12px;
  border-radius: 7px;
  color: var(--muted);
}
.docs-nav button.active {
  background: #fff;
  color: var(--green);
  font-weight: 700;
}
.docs-content {
  min-width: 0;
}
.docs-content article > h2 {
  font-size: 22px;
}
.method {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 6px 9px;
  background: var(--green2);
  color: var(--green);
  border-radius: 5px;
}
.docs-content p {
  color: var(--muted);
  line-height: 1.7;
}
.docs-content pre {
  background: #1c221f;
  color: #ecf3ef;
  border-radius: 8px;
  margin-top: 24px;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  background: #e7f1ec;
  color: #166449;
  margin: -16px 0 20px;
  font-size: 12px;
}
.notice.error {
  background: #f8e8e5;
  color: #9c3026;
}
.modal {
  border: 0;
  padding: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(440px, calc(100vw - 30px));
  background: #fff;
}
.modal::backdrop {
  background: rgba(16, 20, 17, 0.56);
  backdrop-filter: blur(3px);
}
.modal form, .modal > div {
  padding: 35px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  font-size: 24px;
  color: #8a8f87;
}
.modal h2 {
  font: 600 28px Georgia, "Songti SC", serif;
  margin: 0 0 8px;
}
.modal p:not(.eyebrow):not(.form-switch):not(.form-error) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.modal label {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  font-size: 11px;
  color: #555d54;
}
.modal input {
  width: 100%;
  height: 46px;
  border: 1px solid #d5d8d1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcfa;
  outline: none;
}
.modal input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 107, 82, 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-switch {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.form-switch button {
  background: none;
  color: var(--green);
  font-weight: 700;
}
.form-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 11px;
}
.token-value {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #eff1ed;
  border-radius: 8px;
  margin: 20px 0;
  align-items: center;
}
.token-value code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.token-modal {
  width: min(560px, calc(100vw - 30px));
}
@media (max-width: 900px) {
  .landing-header nav > a {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .hero-card {
    transform: none;
  }
  .benefits, .model-grid, .steps {
    grid-template-columns: 1fr;
  }
  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .landing-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .sidebar {
    position: fixed;
    z-index: 10;
    width: 250px;
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .console {
    display: block;
  }
  .console-main {
    padding: 26px 20px 60px;
  }
  .console-header #menu-toggle {
    display: inline-block;
    margin-right: 10px;
  }
  .console-header > div {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .console-header p {
    display: none;
  }
  .stat-grid, .two-column {
    grid-template-columns: 1fr;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    display: flex;
    overflow: auto;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .console-header .button {
    padding: 0 12px;
    font-size: 11px;
  }
}
@media (max-width: 560px) {
  .landing-header {
    padding: 0 16px;
  }
  .landing-header nav {
    gap: 8px;
  }
  .landing-header .text-button {
    display: none;
  }
  .hero {
    padding: 62px 18px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-card pre {
    font-size: 10px;
    padding: 18px;
  }
  .benefits {
    margin: 0 18px 90px;
  }
  .landing-section {
    padding-bottom: 90px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .console-header h1 {
    font-size: 25px;
  }
}
