:root {
  color-scheme: dark;
  --bg: #111210;
  --surface: #171917;
  --surface-strong: #1f221f;
  --surface-terminal: #121513;
  --line: #2f342f;
  --text: #f2f3ee;
  --muted: #b9c0b2;
  --green: #7fd66c;
  --teal: #45c7b8;
  --amber: #f0c15a;
  --coral: #f17c72;
  --max-width: 1160px;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #111210 0%, #151713 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

code,
pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.shell {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(17, 18, 16, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #101311;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.action-chip:hover,
.action-chip:focus-visible {
  background: rgba(127, 214, 108, 0.08);
  border-color: rgba(127, 214, 108, 0.4);
  transform: translateY(-1px);
}

.action-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 10, 0.3), rgba(10, 12, 10, 0.85)),
    linear-gradient(90deg, rgba(10, 12, 10, 0.8), rgba(10, 12, 10, 0.35));
}

.hero-content {
  position: relative;
  padding: 120px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.repo-grid h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 84px);
}

.hero-copy,
.section-heading p,
.intro-grid p,
.repo-grid p {
  max-width: 720px;
  color: #d4d9cf;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), #9cec84);
  color: #101311;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 840px;
}

.hero-stats > div {
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 17, 15, 0.62);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 32px;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.band {
  padding: 84px 0;
}

.band-muted {
  background: rgba(255, 255, 255, 0.02);
}

.band-accent {
  background:
    linear-gradient(180deg, rgba(69, 199, 184, 0.08), rgba(127, 214, 108, 0.03)),
    rgba(255, 255, 255, 0.015);
}

.intro-grid,
.usage-grid,
.repo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.feature-list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.feature-list li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.section-heading {
  margin-bottom: 30px;
}

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

.skill-card,
.command-grid article {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skill-card h3,
.command-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.skill-card p,
.command-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.install-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.install-tabs {
  display: grid;
  gap: 10px;
}

.install-tab {
  text-align: left;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.install-tab.active {
  color: var(--text);
  border-color: rgba(127, 214, 108, 0.45);
  background: rgba(127, 214, 108, 0.08);
}

.install-panel {
  display: grid;
  gap: 18px;
}

.install-meta {
  color: var(--muted);
  line-height: 1.7;
}

.install-code-block,
.demo-shell,
.usage-examples pre,
.repo-tree {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-terminal);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-head,
.demo-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.copy-button,
.demo-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.install-code-block pre,
.usage-examples pre,
.repo-tree {
  padding: 18px;
  overflow-x: auto;
  color: #dce3d7;
  font-size: 14px;
  line-height: 1.75;
}

.demo-stage {
  min-height: 620px;
  padding: 18px;
}

.usage-examples pre,
.repo-tree {
  min-height: 100%;
}

.coverage-list {
  display: grid;
  gap: 12px;
}

.coverage-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 16px;
}

.coverage-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
}

.coverage-list p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.repo-links {
  display: grid;
  gap: 12px;
}

.repo-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.site-footer {
  padding: 28px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .top-nav,
  .header-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 108px 0 84px;
  }

  .hero-stats,
  .intro-grid,
  .usage-grid,
  .repo-grid,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .demo-stage {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(var(--max-width), calc(100vw - 20px));
  }

  .band {
    padding: 64px 0;
  }

  .skills-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy,
  .section-heading p,
  .intro-grid p,
  .repo-grid p {
    font-size: 16px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats > div {
    padding: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
