:root {
  color-scheme: light;
  --paper: #f6f1eb;
  --ink: #101014;
  --muted: #5b5b63;
  --accent: #ff6b35;
  --teal: #2bb3a6;
  --violet: #5b3df6;
  --shadow: 0 18px 50px rgba(15, 16, 26, 0.12);
  --border: 1px solid rgba(16, 16, 20, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  gap: 80px;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.2;
  animation: float 16s ease-in-out infinite;
}

.glow-orange {
  background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.glow-teal {
  background: radial-gradient(circle, #2bb3a6 0%, transparent 70%);
  bottom: -180px;
  right: -120px;
  animation-delay: -6s;
}

.glow-ink {
  background: radial-gradient(circle, #111827 0%, transparent 70%);
  top: 35%;
  right: -180px;
  opacity: 0.12;
  animation-delay: -3s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 16, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 20, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 70%);
}

.hero {
  display: grid;
  gap: 24px;
  text-align: left;
}

.badge {
  align-self: flex-start;
  background: rgba(16, 16, 20, 0.06);
  border: var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.15rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: var(--border);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

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

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.section-title {
  display: grid;
  gap: 12px;
}

.flow-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.72);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.8s ease both;
}

.step-index {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.directions {
  display: grid;
  gap: 24px;
}

.direction-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.direction .swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.direction .swatches span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(16, 16, 20, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.terminal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.code-block {
  background: #111218;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block p {
  color: #cbd5f5;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.code-head button {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

pre {
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.diff pre {
  color: #e2e8f0;
}

.stack-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.arrow {
  font-size: 1.5rem;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 16, 20, 0.08);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.footer-links a {
  border-bottom: 1px solid rgba(16, 16, 20, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(22px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  main {
    padding: 72px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stack-row {
    gap: 8px;
  }
}
