:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;

  --bg: #07111f;
  --text: #ecf4ff;
  --muted: #a9bad0;
  --dim: #91a5bd;
  --accent: #8fe7d6;
  --accent-ink: #07111f;
  --accent-soft: #c7f7ee;
  --border: rgb(114 147 178 / 22%);
  --border-strong: #29435d;
  --surface: rgb(8 23 38 / 72%);
  --surface-control: rgb(15 36 55 / 80%);
  --surface-mark: rgb(17 45 68 / 75%);
  --code: #b9f4e9;
  --radius-sm: 0.75rem;
  --radius-lg: 1rem;

  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgb(23 99 156 / 35%), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgb(31 194 164 / 18%), transparent 28rem),
    var(--bg);
}

a {
  color: inherit;
}

::selection {
  background: rgb(143 231 214 / 30%);
}

.page {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
  padding-block: 2rem 3rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgb(143 231 214 / 35%);
  border-radius: var(--radius-sm);
  background: var(--surface-mark);
  color: var(--accent);
  font-weight: 800;
  transition: border-color 160ms ease;
}

.brand:hover .brand-mark {
  border-color: var(--accent);
}

.github-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: currentColor;
}

/* Hero */

.hero {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 9vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.lede {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  text-wrap: balance;
}

/* Architecture badges */

.arch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.75rem 0 1.75rem;
}

.arch-badge {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--dim);
  font: 650 0.75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-control);
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0.5rem 1.75rem rgb(143 231 214 / 14%);
  color: var(--accent-ink);
}

.button:hover {
  border-color: #d6fff7;
  transform: translateY(-2px);
}

.button-primary:hover {
  box-shadow: 0 0.75rem 2rem rgb(143 231 214 / 22%);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.copy-button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #d6fff7;
  outline-offset: 3px;
}

/* Install fallback */

.fallback {
  margin: 1.5rem 0 0;
  color: var(--dim);
  font-size: 0.925rem;
  line-height: 1.6;
}

.fallback a {
  color: var(--accent-soft);
}

/* Catalog */

.catalog {
  max-width: 48rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.catalog-list {
  display: grid;
  gap: 1rem;
}

.card,
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 18%);
  backdrop-filter: blur(12px);
}

.card {
  padding: 1.25rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.card.app-card {
  padding: 1.5rem;
  border-color: rgb(143 231 214 / 28%);
  background:
    linear-gradient(120deg, rgb(17 45 68 / 45%), transparent 70%),
    var(--surface);
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.app-card-arrow {
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 160ms ease;
}

.app-card:hover .app-card-arrow {
  transform: translateX(4px);
}

/* Benefits */

.benefits {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.benefit {
  padding-inline: 1.5rem;
}

.benefit:first-child {
  padding-left: 0;
}

.benefit + .benefit {
  border-left: 1px solid var(--border);
}

.benefit h2 {
  font-size: 1rem;
}

.benefit p {
  margin-bottom: 0;
  color: var(--dim);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Terminal and collapsible commands */

.terminal {
  margin-top: 1rem;
  padding: 1.25rem;
}

.hero + .terminal {
  max-width: 48rem;
  margin-top: 2rem;
}

.repository-setup {
  max-width: 48rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  color: #d7e4f4;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  color: var(--accent);
  font-size: 0.8em;
  transition: transform 160ms ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

.command-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

pre {
  flex: 1;
  margin: 0;
  overflow-x: auto;
  color: var(--code);
  font: 0.875rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.copy-button {
  flex: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-soft);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.copy-button:hover {
  border-color: var(--accent);
  background: var(--surface-control);
}

@media (max-width: 44rem) {
  .page {
    width: min(100% - 1.25rem, 68rem);
    padding-top: 1rem;
  }

  .site-header {
    margin-bottom: 3rem;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
  }

  .benefit + .benefit {
    border-left: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
