:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: #0f141d;
  --surface-2: #151c27;
  --border: #273143;
  --text: #f5f7fb;
  --muted: #9da9ba;
  --accent: #7cf3c8;
  --accent-2: #9a8cff;
  --danger: #ff7b87;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% -10%, rgba(154, 140, 255, .18), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(124, 243, 200, .12), transparent 28rem),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, textarea, select { font: inherit; }

.shell { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 26px 0 86px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #07100d; background: linear-gradient(135deg, var(--accent), #d9fff1);
  box-shadow: 0 0 30px rgba(124, 243, 200, .22);
}
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: .94rem; }
.nav-links a:hover { color: var(--text); }

.hero-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 70px; align-items: center; padding-top: 92px; }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 14px 0 22px; max-width: 820px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
h3 { margin: 12px 0 8px; font-size: 1.05rem; }
p { line-height: 1.65; }
.lead { max-width: 680px; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 750;
}
.button.primary { color: #06100c; background: var(--accent); }
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { color: var(--text); background: rgba(255,255,255,.035); border-color: var(--border); }

.status-card {
  padding: 24px; border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.status-row { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0ad52; box-shadow: 0 0 18px currentColor; }
.status-dot.online { background: var(--accent); }
.status-dot.offline { background: var(--danger); }
dl { margin: 8px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(39,49,67,.65); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); } dd { margin: 0; font-weight: 700; }

.section { padding: 90px 0; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading > p:last-child, .muted { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tool-card {
  min-height: 220px; padding: 22px; border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); transition: transform .18s ease, border-color .18s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: #42516a; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(124,243,200,.1); color: var(--accent); font-weight: 850; }
.tool-card p { color: var(--muted); font-size: .9rem; }
.tool-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; color: #c7d0dd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.price { color: var(--accent); }

.playground-section { padding: 90px 0; border-block: 1px solid var(--border); background: rgba(255,255,255,.018); }
.playground-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
label { display: block; margin: 22px 0 9px; color: #cbd4e1; font-size: .86rem; font-weight: 750; }
select, textarea {
  width: 100%; color: var(--text); background: #090d13; border: 1px solid var(--border); border-radius: 12px; outline: none;
}
select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,243,200,.1); }
select { min-height: 46px; padding: 0 12px; }
textarea { min-height: 240px; resize: vertical; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; }
.run-button { width: 100%; margin-top: 14px; }
.response-panel { overflow: hidden; min-height: 520px; border: 1px solid var(--border); border-radius: 18px; background: #06090e; }
.response-heading { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.response-status { color: var(--muted); }
.response-status.ok { color: var(--accent); }
.response-status.error { color: var(--danger); }
pre { margin: 0; padding: 20px; overflow: auto; max-height: 650px; color: #d8e1ec; font: .84rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.architecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.architecture-grid article { padding: 26px; border-top: 1px solid var(--border); }
.architecture-grid span { color: var(--accent-2); font-family: ui-monospace, monospace; }
.architecture-grid p { color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px 40px; color: var(--muted); border-top: 1px solid var(--border); font-size: .84rem; }

@media (max-width: 980px) {
  .hero-grid, .playground-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .architecture-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1140px); }
  .nav-links { display: none; }
  .hero { padding-bottom: 60px; }
  .hero-grid { padding-top: 62px; }
  .tool-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
