:root {
  --ink: #132018;
  --paper: #f3f0e7;
  --lime: #c8f55b;
  --mint: #d9f7e1;
  --line: #1b2b21;
  --muted: #657067;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(19,32,24,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(19,32,24,.12) 1px, transparent 1px);
  background-size: 42px 42px;
}
main { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 40px; }
.account-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 16px; margin-bottom: 64px; }
.brand { color: inherit; text-decoration: none; font: 800 14px ui-monospace, monospace; letter-spacing: .16em; }
.account-nav > div { display: flex; gap: 8px; }
.nav-button { border: 1px solid var(--line); background: transparent; padding: 9px 13px; cursor: pointer; font-weight: 700; }
.hero { max-width: 880px; margin-bottom: 54px; }
.eyebrow { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 18px 0; max-width: 900px; font-size: clamp(42px, 7vw, 84px); line-height: .96; letter-spacing: -.065em; }
.hero p { max-width: 650px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.promo-notice { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; margin: 0 0 28px; padding: 24px; border: 2px solid var(--line); background: #eadfd4; }
.promo-mark { padding: 10px 12px; background: var(--ink); color: var(--lime); font: 800 13px ui-monospace, monospace; letter-spacing: .12em; }
.promo-notice h2 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.promo-notice p { margin: 0; color: #6f6257; line-height: 1.65; }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--line); background: var(--line); gap: 2px; }
.card { min-height: 430px; padding: 26px; display: flex; flex-direction: column; background: #fbfaf5; }
.limited-badge { align-self: flex-start; margin-top: 18px; border: 1px solid var(--line); padding: 6px 9px; background: #eadfd4; font: 800 11px ui-monospace, monospace; letter-spacing: .12em; }
.featured .limited-badge { background: var(--ink); color: var(--lime); }
.card.featured { background: var(--lime); }
.card h2 { margin: 28px 0 4px; font-size: 23px; }
.price { margin: 0 0 30px; font-size: 54px; font-weight: 800; letter-spacing: -.06em; }
.price small { font-size: 14px; letter-spacing: 0; }
.quota { border-top: 1px solid rgba(19,32,24,.35); padding: 13px 0; display: flex; justify-content: space-between; font-size: 14px; }
.quota strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.buy { margin-top: auto; width: 100%; border: 2px solid var(--line); background: var(--ink); color: white; padding: 14px; font: 700 14px/1 inherit; cursor: pointer; }
.featured .buy { background: var(--paper); color: var(--ink); }
.buy:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.pay-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pay-choices button { padding: 10px 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 70px 0; }
.details > div { border-top: 2px solid var(--line); padding-top: 20px; }
.details h2 { margin: 18px 0 8px; }
.details p { color: var(--muted); line-height: 1.6; }
.number { font: 700 13px ui-monospace, monospace; }
.guide, .reference, .quota-guide, .faq, .fallback-route { margin: 110px 0; }
.guide-intro, .section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: end; margin-bottom: 36px; }
.guide-intro h2, .section-heading h2, .quota-copy h2 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.guide-intro p, .section-heading p, .quota-copy p { color: var(--muted); line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line); background: var(--line); gap: 2px; }
.step { min-height: 225px; padding: 25px; background: #fbfaf5; }
.step > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: white; font: 700 13px ui-monospace, monospace; }
.step h3 { margin: 35px 0 10px; font-size: 20px; }
.step p { color: var(--muted); line-height: 1.55; }
.endpoint-row { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.endpoint-row code { overflow: hidden; text-overflow: ellipsis; }
.mini-copy, .code-copy { border: 1px solid currentColor; background: transparent; color: inherit; padding: 7px 10px; cursor: pointer; font: 700 11px ui-monospace, monospace; white-space: nowrap; }
.request-lab { margin-top: 28px; border: 2px solid var(--line); background: #fbfaf5; padding: clamp(20px, 4vw, 38px); }
.request-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.request-head h3 { margin: 10px 0 0; font-size: 30px; }
.tabs { display: flex; border: 1px solid var(--line); }
.tab { border: 0; border-right: 1px solid var(--line); padding: 10px 16px; background: transparent; cursor: pointer; font-weight: 700; }
.tab:last-child { border-right: 0; }
.tab.active { background: var(--ink); color: white; }
.code-shell { background: #111a14; color: #d8f4df; border: 1px solid #111a14; }
.code-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #344039; padding: 10px 14px; color: #9bae9f; font: 11px ui-monospace, monospace; }
.code-shell pre { margin: 0; padding: 22px; overflow-x: auto; min-height: 250px; }
.code-shell code { font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.fallback-route { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; border: 2px solid var(--line); padding: clamp(28px, 5vw, 52px); background: #eadfd4; }
.fallback-route h2 { margin: 12px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.05em; }
.fallback-route p { color: #6f6257; line-height: 1.7; }
.fallback-address { align-self: center; border-top: 2px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; display: grid; gap: 14px; }
.fallback-address span { color: #6f6257; font-size: 13px; }
.fallback-address code { overflow-wrap: anywhere; font-weight: 700; }
.fallback-address .mini-copy { justify-self: start; }
.model-list { border-top: 2px solid var(--line); }
.model-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.model-row code { font-weight: 700; }
.model-row span { color: var(--muted); }
.quota-guide { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; padding: clamp(28px, 5vw, 58px); background: var(--lime); border: 2px solid var(--line); }
.primary-link { display: inline-block; margin-top: 12px; padding: 14px 18px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; }
.quota-facts { border-top: 2px solid var(--line); }
.quota-facts div { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quota-facts span { color: #475348; }
.quota-facts strong { text-align: right; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 42px 22px 0; font-size: 18px; font-weight: 750; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 4px; font: 400 26px/1 ui-monospace, monospace; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 800px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.order { border: 2px solid var(--line); background: var(--mint); padding: clamp(24px, 5vw, 54px); margin: 60px 0; }
.account-panel { border: 2px solid var(--line); background: #fbfaf5; padding: clamp(24px, 5vw, 52px); margin: 70px 0; }
.account-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.account-title h2 { margin: 10px 0 32px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; }
.account-welcome { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.account-orders { display: grid; gap: 16px; }
.account-order { border: 1px solid var(--line); padding: 20px; }
.account-order-head { display: flex; justify-content: space-between; gap: 16px; }
.account-order-head h3 { margin: 0 0 8px; }
.account-order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.account-order-meta div { border-top: 1px solid var(--line); padding-top: 8px; }
.account-order-meta small { color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-actions button, .account-actions a { border: 1px solid var(--line); background: transparent; color: inherit; padding: 9px 12px; text-decoration: none; cursor: pointer; font-weight: 700; }
.account-actions .danger { color: #8d231f; border-color: #8d231f; }
.balance-result { margin-top: 14px; padding: 14px; background: var(--mint); overflow-wrap: anywhere; }
.password-form { margin-top: 38px; padding-top: 28px; border-top: 2px solid var(--line); max-width: 520px; display: grid; gap: 10px; }
.password-form input, .auth-card input { width: 100%; border: 1px solid var(--line); background: white; padding: 13px; font: inherit; }
.auth-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(19,32,24,.76); }
.auth-modal.hidden { display: none; }
.auth-card { position: relative; width: min(460px, 100%); padding: 34px; border: 2px solid var(--line); background: var(--paper); box-shadow: 12px 12px 0 var(--lime); }
.auth-card h2 { font-size: 38px; margin: 12px 0 22px; letter-spacing: -.05em; }
.modal-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 18px; }
.auth-tab { border: 0; background: transparent; padding: 11px; cursor: pointer; font-weight: 700; }
.auth-tab.active { background: var(--ink); color: white; }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form-message { min-height: 20px; margin: 0; color: #8d231f; font-size: 13px; }
.hidden { display: none; }
.order-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.order-head h2 { font-size: 34px; margin: 12px 0 30px; }
.status { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font: 700 12px ui-monospace, monospace; }
.key-box { margin-top: 28px; padding: 20px; background: var(--ink); color: white; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy { margin-top: 12px; border: 1px solid var(--line); background: transparent; padding: 10px 16px; cursor: pointer; font-weight: 700; }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.order-grid div { border-top: 1px solid var(--line); padding-top: 10px; }
footer { border-top: 2px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font: 12px ui-monospace, monospace; }
footer a { color: inherit; font-weight: 700; }

@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: 1fr; }
  .guide-intro, .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .quota-guide { grid-template-columns: 1fr; gap: 35px; }
  .fallback-route { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 560px) {
  main { width: min(100% - 24px, 1180px); padding-top: 42px; }
  h1 { font-size: 44px; }
  .packages { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .order-head, footer { flex-direction: column; }
  .order-grid { grid-template-columns: 1fr; }
  .account-nav, .account-title, .account-order-head { align-items: stretch; flex-direction: column; }
  .account-nav > div { width: 100%; }
  .account-nav .nav-button { flex: 1; }
  .account-order-meta { grid-template-columns: 1fr 1fr; }
  .promo-notice { grid-template-columns: 1fr; gap: 14px; }
  .guide, .reference, .quota-guide, .faq, .fallback-route { margin: 75px 0; }
  .request-head { align-items: stretch; flex-direction: column; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding-inline: 8px; }
  .code-shell pre { padding: 16px; min-height: 320px; }
  .model-row { grid-template-columns: 1fr; gap: 8px; }
  .endpoint-row { align-items: flex-start; }
  .endpoint-row code { overflow-wrap: anywhere; }
}
