:root {
  --bg: #f7f4ee;
  --ink: #17252f;
  --muted: #4f6772;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(23, 37, 47, 0.14);
  --accent: #e87330;
  --accent-2: #1e8d8b;
  --shadow: 0 18px 38px rgba(23, 37, 47, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 12% 0%, #ffedd8 0%, var(--bg) 42%),
              radial-gradient(circle at 88% 4%, #d5efef 0%, transparent 40%),
              var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(23, 37, 47, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(23, 37, 47, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 20%, black 10%, transparent 78%);
  z-index: -3;
}

.orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.38;
  z-index: -2;
}

.orb-a {
  top: -80px;
  right: -40px;
  background: #ff9f68;
}

.orb-b {
  bottom: -120px;
  left: -60px;
  background: #4bbebc;
}

.hero {
  padding: 88px 20px 34px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fade-slide 780ms ease-out both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-2);
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.02;
}

.tagline {
  margin: 16px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #db5d19);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(227, 115, 48, 0.36);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 76px;
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

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

.stats article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.stats h3 {
  margin: 0;
  font-size: 1rem;
}

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

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

pre {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 26, 31, 0.22);
  background: #132129;
  color: #ecf6f8;
  padding: 14px;
  overflow: auto;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doc-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.doc-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(23, 37, 47, 0.12);
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 30px;
  color: #55707c;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  animation: fade-slide 560ms ease forwards;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .stats,
  .code-grid,
  .doc-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  footer {
    flex-direction: column;
  }
}
