:root {
  --bg: #0f1117;
  --s1: #13161e;
  --s2: #181c26;
  --s3: #1f2535;
  --s4: #252d42;
  --border: #2a3148;
  --border2: #343d5a;
  --amber: #f5a623;
  --amber-light: #f7c050;
  --amber-glow: rgba(245, 166, 35, 0.08);
  --amber-border: rgba(245, 166, 35, 0.24);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.08);
  --green-border: rgba(34, 197, 94, 0.24);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.08);
  --blue-border: rgba(59, 130, 246, 0.24);
  --red: #f43f5e;
  --red-glow: rgba(244, 63, 94, 0.08);
  --red-border: rgba(244, 63, 94, 0.24);
  --text: #dce3f0;
  --text-soft: #7a8aaa;
  --muted: #4a5470;
  --mono: "JetBrains Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 49, 72, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 49, 72, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

code {
  font-family: var(--mono);
}

.ambient-glow {
  position: fixed;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
}

.ambient-glow-left {
  top: -8rem;
  left: -7rem;
  background: rgba(245, 166, 35, 0.12);
}

.ambient-glow-right {
  right: -7rem;
  top: 22rem;
  background: rgba(59, 130, 246, 0.1);
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.95rem 1rem;
  background: rgba(15, 17, 23, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #0f1117;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-copy small,
.nav a,
.eyebrow,
.panel-label,
.card-tag,
.repo-group-label,
.metric-label,
.command-label,
.footer-note {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.brand-copy small,
.nav a,
.metric-label,
.footer-note {
  color: var(--text-soft);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--s1);
}

.nav a {
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.nav a:hover {
  color: var(--amber);
  background: var(--amber-glow);
}

.hero,
.lane-strip,
.lanes,
.repos,
.focus-band,
.command-deck,
.footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: start;
  padding: 0.5rem 0 2rem;
}

.hero-copy,
.panel-card,
.metric-card,
.lane-card,
.repo-group,
.focus-card,
.command-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-top: 3px solid var(--amber);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(245, 166, 35, 0.1), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
}

.hero-copy > * {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--amber-border);
  background: var(--amber-glow);
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
}

.hero h1 span {
  color: var(--amber);
}

.lede {
  max-width: 60ch;
  margin: 1.4rem 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 150ms ease;
}

.button {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid transparent;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #0f1117;
}

.button-primary:hover {
  opacity: 0.92;
}

.button-secondary {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}

.button-secondary:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card,
.lane-card,
.repo-group,
.focus-card,
.command-card {
  position: relative;
  overflow: hidden;
}

.panel-card::before,
.lane-card::before,
.repo-group::before,
.focus-card::before,
.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
}

.panel-card {
  padding: 1.35rem;
}

.panel-card-large {
  border-top: 2px solid var(--amber);
}

.panel-card-accent {
  border-top: 2px solid var(--blue);
}

.panel-label,
.card-tag,
.repo-group-label,
.command-label {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  gap: 0.28rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.signal-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.signal-list span,
.lane-card p,
.focus-card p,
.panel-callout,
.footer-note,
.note-card p {
  color: var(--text-soft);
}

.signal-list strong,
.panel-callout {
  font-size: 0.98rem;
  line-height: 1.7;
}

.lane-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  padding: 1.2rem 1.25rem;
}

.metric-card:nth-child(1) {
  border-top: 2px solid var(--amber);
}

.metric-card:nth-child(2) {
  border-top: 2px solid var(--green);
}

.metric-card:nth-child(3) {
  border-top: 2px solid var(--blue);
}

.metric-card:nth-child(4) {
  border-top: 2px solid var(--amber-light);
}

.metric-number {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.metric-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lanes,
.repos,
.focus-band,
.command-deck {
  padding: 0.75rem 0;
}

.section-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.lane-grid,
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lane-card,
.focus-card,
.repo-group,
.command-card {
  padding: 1.35rem;
}

.lane-card {
  min-height: 18.5rem;
}

.lane-card::after,
.focus-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lane-accent, var(--amber));
}

.lane-card h3,
.focus-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
}

.lane-card p,
.focus-card p {
  margin: 0.95rem 0 0;
  line-height: 1.7;
}

.lane-card-shell {
  --lane-accent: var(--amber);
}

.lane-card-desktop {
  --lane-accent: var(--blue);
}

.lane-card-field {
  --lane-accent: var(--green);
}

.lane-card-web {
  --lane-accent: var(--amber-light);
}

.repo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.repo-list li,
.repo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--s3);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.repo-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.repo-group {
  background: var(--s2);
}

.repo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card:nth-child(1) {
  --lane-accent: var(--amber);
}

.focus-card:nth-child(2) {
  --lane-accent: var(--green);
}

.focus-card:nth-child(3) {
  --lane-accent: var(--blue);
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

.command-card {
  min-height: 100%;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--s1);
  overflow-x: auto;
}

.code-row code {
  flex: 1;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.65;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 2.55rem;
  padding: 0 0.95rem;
  border: 0;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #0f1117;
  cursor: pointer;
}

.copy-button.is-copied {
  background: var(--green);
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--s2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.footer-note {
  max-width: 38rem;
  font-size: 0.72rem;
  line-height: 1.8;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .command-layout,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .lane-strip,
  .lane-grid,
  .repo-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 1rem 1rem 3.25rem;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero-copy,
  .panel-card,
  .metric-card,
  .lane-card,
  .repo-group,
  .focus-card,
  .command-card {
    padding: 1.15rem;
  }

  .hero h1 {
    max-width: 11.5ch;
    font-size: clamp(2.6rem, 13vw, 4.3rem);
  }

  .lane-strip,
  .lane-grid,
  .repo-matrix,
  .focus-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-note {
    text-align: left;
  }

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