:root {
  --bg: #0f1b19;
  --bg-2: #132623;
  --text: #f3fbf8;
  --muted: #c8d8d3;
  --line: rgba(255, 255, 255, 0.16);
  --mint: #5ad9b2;
  --mint-dark: #2db08b;
  --panel: #0f2622;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.hero {
  min-height: 100vh;
  padding: 1.25rem clamp(1rem, 2vw, 2rem) clamp(2rem, 5vw, 3.5rem);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(90, 217, 178, 0.24), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(36, 198, 169, 0.14), transparent 26%),
    linear-gradient(125deg, rgba(7, 22, 19, 0.9) 10%, rgba(13, 42, 35, 0.78) 48%, rgba(20, 58, 49, 0.38) 100%);
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.top-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.hero-content {
  max-width: 760px;
  align-self: center;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  text-wrap: balance;
}

.subtitle {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.74rem 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-primary {
  border: none;
  background: linear-gradient(180deg, var(--mint), var(--mint-dark));
  color: #062118;
  font-weight: 500;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(9, 18, 16, 0.24);
}

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

.band {
  padding: clamp(2.4rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
}

.band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.band p {
  margin: 0;
  color: var(--muted);
}

.demo {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.compare-shell {
  max-width: 1050px;
}

.compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 36px var(--shadow);
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-wrap {
  position: absolute;
  inset: 0;
  width: 54%;
  overflow: hidden;
}

.after {
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(90, 217, 178, 0.18) 25%, transparent 25%, transparent 50%, rgba(90, 217, 178, 0.18) 50%, rgba(90, 217, 178, 0.18) 75%, transparent 75%, transparent),
    #05120f;
  background-size: 24px 24px;
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 2px;
  background: #ffffffde;
  transform: translateX(-1px);
}

#compare-range {
  width: 100%;
  margin-top: 1rem;
}

.features {
  background: var(--bg-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(8, 18, 16, 0.32);
}

.feature-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 1.04rem;
}

.install {
  background: linear-gradient(180deg, var(--bg-2), #0b1513);
}

.command-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

#npx-command {
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 14, 0.45);
}

.snippet {
  margin-top: 1rem;
  background: #0a1714;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
  text-align: center;
  background: #080f0e;
}

.footer p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .hero {
    min-height: 92vh;
  }

  .subtitle {
    max-width: 100%;
  }

  .section-title-row {
    align-items: start;
  }
}
