:root {
  --bg: #0d1117;
  --panel: #151c25;
  --line: #2a3747;
  --text: #f1f5f9;
  --muted: #9aa8b6;
  --quiet: #8796a8;
  --ai: #57d68d;
  --finance: #f4c76b;
  --automation: #7dd3fc;
  --host: #c084fc;
  --shadow: rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.06), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(87, 214, 141, 0.08), transparent 22rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(125, 211, 252, 0.45);
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration-color: var(--automation);
}

a:focus-visible {
  outline: 2px solid var(--automation);
  outline-offset: 3px;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(154, 168, 182, 0.18);
}

.brand,
.system-label,
.section-kicker,
.card-meta,
.project-card span,
.panel-topline,
.stack-row,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav,
.external-nav,
.hero-actions,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a,
.external-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.external-nav a {
  padding: 8px 10px;
  border: 1px solid rgba(154, 168, 182, 0.2);
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.system-label,
.section-kicker {
  margin: 0 0 14px;
  color: var(--automation);
  font-size: 0.76rem;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-lede,
.statement p,
.featured-card p,
.project-card p {
  color: var(--muted);
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  color: #0b1016;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.bench-panel,
.featured-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
}

.bench-panel {
  padding: 18px;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.stack-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border-top: 1px solid rgba(154, 168, 182, 0.14);
  color: #c6d3df;
}

.stack-name {
  color: var(--text);
}

.stack-state {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.72rem;
}

.stack-state.ai { color: var(--ai); }
.stack-state.finance { color: var(--finance); }
.stack-state.automation { color: var(--automation); }
.stack-state.host { color: var(--host); }

.section {
  padding: 72px 0;
}

.statement {
  border-top: 1px solid rgba(154, 168, 182, 0.18);
  border-bottom: 1px solid rgba(154, 168, 182, 0.18);
}

.statement p {
  max-width: 850px;
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(240px, 0.28fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--quiet);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.featured-card h3 {
  margin-bottom: 10px;
}

.featured-card p {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 140px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 18px;
  box-shadow: none;
}

.project-card > a {
  font-weight: 800;
}

.project-card span {
  color: var(--quiet);
  font-size: 0.78rem;
}

.project-card p {
  margin-bottom: 0;
}

.site-footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(154, 168, 182, 0.18);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer > span {
  color: var(--text);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .section-heading,
  .featured-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 26px 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

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

  .project-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stack-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
