:root {
  --bg: #081118;
  --bg2: #122432;
  --surface: rgba(13, 32, 46, 0.82);
  --surface-strong: rgba(16, 38, 53, 0.94);
  --line: rgba(144, 233, 226, 0.25);
  --text: #ecf5f9;
  --muted: #afc0ca;
  --cyan: #66f4df;
  --amber: #ffd08a;
  --danger: #ffb18a;
  --shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -20%, #1f5461 0%, transparent 38%),
    radial-gradient(circle at 90% 0%, #344b61 0%, transparent 38%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg2) 100%);
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 82%);
  z-index: -1;
}

.layout {
  width: min(1080px, 93vw);
  margin: 28px auto 64px;
  display: grid;
  gap: 16px;
}

.hero,
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 30px;
}

.card {
  padding: 24px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.6rem);
}

h3 {
  font-size: 1rem;
}

.lead {
  margin: 14px 0 0;
  max-width: 70ch;
  line-height: 1.6;
  color: #d8e7ee;
}

.muted {
  margin: 7px 0 0;
  color: var(--muted);
}

.cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  color: #062126;
  background: linear-gradient(135deg, #64efd9 0%, #9cfbe9 100%);
}

.btn-outline {
  color: #f8f7ef;
  border-color: rgba(255, 208, 138, 0.7);
  background: rgba(255, 208, 138, 0.11);
}

.runtime-pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(144, 233, 226, 0.35);
  background: rgba(144, 233, 226, 0.1);
  font-size: 0.84rem;
  color: #dff9f3;
}

.pill.warn {
  border-color: rgba(255, 177, 138, 0.6);
  background: rgba(255, 177, 138, 0.14);
  color: #ffe7db;
}

.wireframe {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.row.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.node {
  border: 1px solid rgba(102, 244, 223, 0.3);
  border-radius: 14px;
  padding: 14px;
  background: rgba(11, 27, 39, 0.72);
}

.node-host {
  border-color: rgba(255, 208, 138, 0.5);
  background: rgba(45, 33, 18, 0.45);
}

.node-public {
  border-color: rgba(255, 208, 138, 0.45);
  background: rgba(31, 43, 25, 0.44);
}

.node p {
  margin: 8px 0 0;
  color: var(--muted);
}

.arrow {
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  text-align: center;
  color: var(--amber);
}

ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #d8ecf7;
  line-height: 1.55;
}

code,
pre,
.label,
.pill,
textarea,
button {
  font-family: "IBM Plex Mono", monospace;
}

form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 11, 17, 0.7);
  color: var(--text);
  padding: 12px;
  font-size: 0.9rem;
}

button {
  width: fit-content;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #2d1d07;
  background: linear-gradient(135deg, #ffd08a 0%, #ffe4bb 100%);
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.response-block {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

pre {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.31);
  white-space: pre-wrap;
  line-height: 1.45;
  min-height: 86px;
}

.sources {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 10px 10px 28px;
  background: rgba(0, 0, 0, 0.2);
}

.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stats article {
  border: 1px solid rgba(102, 244, 223, 0.25);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-strong);
}

.label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  margin: 7px 0 0;
  font-size: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

@media (max-width: 880px) {
  .row.two-col,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .layout {
    margin: 16px auto 44px;
  }

  .hero,
  .card {
    border-radius: 14px;
  }

  .hero {
    padding: 22px;
  }

  .card {
    padding: 18px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
