:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --bg: #08090b;
  --panel: #111318;
  --panel-2: #171a20;
  --line: #292c34;
  --text: #f4f2ed;
  --muted: #9699a3;
  --gold: #d9b76c;
  --gold-2: #f0d79b;
  --green: #65d6a0;
  --red: #f17d84;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 3%, rgba(217, 183, 108, .12), transparent 28rem),
    radial-gradient(circle at 5% 38%, rgba(82, 113, 162, .08), transparent 24rem),
    var(--bg);
  color: var(--text);
}
button, input, textarea { font: inherit; }
a { color: inherit; }
code { font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(18px);
}
.wordmark { color: #fff; font-size: 19px; font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
.wordmark span { color: var(--gold); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
nav a:hover { color: #fff; }
.nav-cta { border: 1px solid rgba(217,183,108,.45); border-radius: 999px; padding: 9px 14px; color: var(--gold-2); }
main { width: min(100% - 40px, 1160px); margin: 0 auto; }
.hero {
  display: grid;
  min-height: 550px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: center;
  gap: 72px;
  padding: 70px 0;
}
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
h1, h2 { margin-top: 0; letter-spacing: -.045em; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(42px, 6.6vw, 82px); line-height: .98; }
h2 { margin-bottom: 10px; font-size: 25px; }
.hero-copy { max-width: 660px; color: #b5b6bd; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 19px;
  color: #fff;
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #17130c; background: linear-gradient(135deg, var(--gold-2), #c69e50); }
.button.ghost { border-color: var(--line); background: #14161b; }
.button.wide { width: 100%; }
.health-card, .panel, .feature-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23,26,32,.96), rgba(13,15,19,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.health-card { border-radius: 20px; padding: 26px; }
.health-card > strong { display: block; margin: 14px 0 24px; font-size: 28px; }
.live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(101,214,160,.8); }
.health-card dl, .status-list, .contract-list { display: grid; gap: 12px; margin: 0; }
.health-card dl div, .status-list div, .contract-list div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid article { border-radius: 15px; padding: 22px; }
.feature-grid article > span { color: var(--gold); font-family: monospace; font-size: 12px; }
.feature-grid h2 { margin: 24px 0 8px; font-size: 17px; }
.feature-grid p, .panel > p, .fine { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.content-grid, .apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.content-grid { padding: 110px 0 48px; }
.panel { border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.signature-box { margin: 26px 0; border: 1px solid rgba(217,183,108,.2); border-radius: 12px; background: #0b0d10; padding: 17px; }
.signature-box span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.signature-box code { color: var(--gold-2); white-space: pre-line; line-height: 1.7; }
.contract-list { font-size: 12px; }
.endpoint-list { display: grid; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.endpoint-list li { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: #0d0f13; padding: 12px; font-size: 12px; }
.endpoint-list b { color: var(--green); font-size: 10px; }
.endpoint-list span { color: var(--muted); }
.apply-section { padding: 72px 0 110px; }
.section-title { max-width: 620px; margin-bottom: 30px; }
.section-title > p:last-child { color: var(--muted); line-height: 1.7; }
.form-panel { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #c9c9ce; font-size: 12px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  color: #fff;
  background: #0b0d10;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,183,108,.1); }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-message { min-height: 18px; margin: 0; color: var(--red); font-size: 12px; }
.status-panel { align-self: start; position: sticky; top: 92px; }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.text-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.empty-state { display: grid; min-height: 270px; place-content: center; text-align: center; color: var(--muted); }
.empty-state span { color: #fff; font-weight: 800; }
.status-content { display: grid; gap: 14px; }
.status-hero { display: grid; gap: 8px; border-radius: 13px; background: #0b0d10; padding: 18px; }
.status-badge { width: fit-content; border-radius: 999px; padding: 5px 9px; color: #17130c; background: var(--gold); font-size: 10px; font-weight: 900; }
.status-badge.approved { background: var(--green); }
.status-badge.rejected { color: #fff; background: var(--red); }
.status-hero code { color: var(--muted); font-size: 11px; }
.status-list { margin: 8px 0; font-size: 12px; }
.credentials-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,4,6,.82);
  backdrop-filter: blur(10px);
}
.credentials-card { width: min(100%, 720px); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid rgba(217,183,108,.38); border-radius: 20px; background: #121419; padding: clamp(24px, 5vw, 42px); box-shadow: 0 35px 100px #000; }
.credentials-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.credentials-card label { margin-top: 17px; }
.secret-row { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #080a0d; }
.secret-row code { padding: 14px; color: var(--gold-2); }
.secret-row button { border: 0; border-left: 1px solid var(--line); padding: 0 14px; color: #fff; background: #191c22; cursor: pointer; }
.credential-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.hidden { display: none !important; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 12px; }
footer a { color: var(--gold); }
@media (max-width: 820px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .apply-grid { grid-template-columns: 1fr; }
  .status-panel { position: static; }
  .endpoint-list li { grid-template-columns: 46px minmax(0,1fr); }
  .endpoint-list span { grid-column: 2; }
}
@media (max-width: 520px) {
  .topbar, main { width: min(100% - 24px, 1160px); }
  .topbar { padding: 14px 0; }
  .hero { padding: 48px 0; }
  h1 { font-size: 43px; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-grid { padding-top: 72px; }
  .panel { padding: 20px; }
  .hero-actions, .credential-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
