:root {
  color-scheme: dark;
  --background: #07070b;
  --panel: #14121d;
  --panel-strong: #1c1828;
  --text: #f5f2ff;
  --muted: #a8a0b8;
  --line: #31283f;
  --accent: #a855f7;
  --accent-strong: #7c3aed;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(168, 85, 247, 0.22), transparent 34rem),
    var(--background);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 64px 0;
}

.hero,
.grid article {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.hero {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 8px;
}

.api-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

code {
  color: #d8b4fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.api-proof p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

pre {
  min-height: 164px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: #d8b4fe;
  background: #0c0a13;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--text);
  background: var(--panel-strong);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grid article {
  min-height: 126px;
  border-radius: 8px;
  padding: 20px;
}

.grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid strong {
  display: block;
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .api-proof {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 24px, 1120px);
    padding: 24px 0;
  }

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