:root {
  color-scheme: dark;
  --bg: #090b0d;
  --bg-2: #0d1115;
  --panel: rgba(17, 22, 27, 0.82);
  --panel-2: #151b21;
  --text: #f2f5f7;
  --muted: #aeb9c2;
  --quiet: #73808a;
  --line: rgba(255, 255, 255, 0.1);
  --green: #7cffb2;
  --green-2: #2fd17d;
  --orange: #ffb454;
  --blue: #70b7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(124, 255, 178, 0.12), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(112, 183, 255, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #0c1013 54%, #101419 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 12, 15, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.metric-row,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(124, 255, 178, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 255, 178, 0.18), rgba(112, 183, 255, 0.1));
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
}

nav {
  gap: 4px;
}

nav a,
.github-link {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

nav a:hover,
.github-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.github-link {
  border: 1px solid var(--line);
}

main {
  padding: 46px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 28px 0 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(4.1rem, 7.8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.lede {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #07100b;
  box-shadow: 0 14px 46px rgba(47, 209, 125, 0.23);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.tertiary {
  color: var(--muted);
}

.metric-row {
  gap: 12px;
  margin-top: 34px;
}

.metric-row div {
  min-width: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-row strong {
  display: block;
  font-size: 1.8rem;
}

.metric-row span {
  color: var(--quiet);
  font-size: 0.86rem;
  font-weight: 760;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 72px 18px 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 255, 178, 0.2), rgba(112, 183, 255, 0.14));
  filter: blur(28px);
}

.console-card,
.lookup-card,
.workflow-grid article,
.project-card,
.file-map,
.quality-panel,
.quality-grid div,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.console-card {
  position: relative;
  overflow: hidden;
}

.console-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.console-title span {
  font-weight: 900;
}

.console-title small,
.label {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  max-width: 100%;
  color: #dde8e1;
  font-size: 0.96rem;
  line-height: 1.72;
}

.lookup-card {
  position: relative;
  width: min(94%, 440px);
  margin: -22px 0 0 auto;
  padding: 18px;
  background: #10161b;
}

.lookup-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lookup-card code {
  display: block;
  color: var(--green);
  line-height: 1.6;
}

.band,
.projects,
.contract,
.quality,
.faq {
  padding: 82px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-head.compact {
  max-width: 720px;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.workflow-grid,
.project-list,
.quality-grid {
  display: grid;
  gap: 16px;
}

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

.workflow-grid article {
  min-height: 260px;
  padding: 24px;
}

.step {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 900;
}

.workflow-grid p,
.project-card p,
.project-card li,
.contract-copy p,
.quality-panel p,
.quality-grid span,
details p,
.footer span {
  color: var(--muted);
  line-height: 1.68;
}

.project-list {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.project-card {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(124, 255, 178, 0.12), rgba(112, 183, 255, 0.08)),
    var(--panel);
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 22px;
}

.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
}

.project-card a {
  width: max-content;
  max-width: 100%;
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.contract {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

.file-map {
  display: grid;
  gap: 1px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.file-map div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 6px;
  background: #10161b;
}

.file-map span {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.file-map code {
  color: #e8f2ec;
  overflow-wrap: anywhere;
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.quality-panel,
.quality-grid div {
  padding: 26px;
}

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

.quality-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

details {
  padding: 0 20px;
}

summary {
  cursor: pointer;
  padding: 21px 0;
  color: var(--text);
  font-weight: 850;
}

details p {
  margin: -4px 0 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer strong {
  display: block;
  margin-bottom: 6px;
}

.footer-links {
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 780;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .workflow-grid,
  .project-list,
  .contract,
  .quality,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .contract {
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  main {
    padding-top: 28px;
  }

  .brand {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .hero-actions .button,
  .github-link {
    width: 100%;
  }

  .hero-copy,
  .hero-visual,
  .console-card,
  .lookup-card {
    max-width: 100%;
    min-width: 0;
  }

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

  .file-map div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .band,
  .projects,
  .contract,
  .quality,
  .faq {
    padding: 58px 0;
  }

  .footer {
    flex-direction: column;
  }
}
