:root {
  --bg: #050505;
  --ink: #f5f2e8;
  --muted: #b9b5aa;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(5, 5, 5, 0.72);
  --gold: #f4d86b;
  --green: #76b900;
  --cyan: #76d6ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/listharmonicsbackground.png");
  background-position: center;
  background-size: cover;
  opacity: 0.48;
  filter: contrast(1.08) brightness(0.76);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.38) 36%, rgba(0, 0, 0, 0.88));
  background-size: 64px 64px, 64px 64px, auto;
}

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

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

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px clamp(18px, 4vw, 62px) 54px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.nav-links a:hover,
.link-stack a:hover,
.receipt-list a:hover {
  color: var(--gold);
}

.hero-content {
  align-self: center;
  max-width: 1040px;
  padding: 54px 0 34px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  max-width: 1050px;
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.86;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(244, 216, 107, 0.18);
}

h2 {
  max-width: 980px;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-line {
  margin-top: 20px;
  color: var(--gold);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.03;
}

.hero-copy {
  max-width: 860px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 850;
}

.button.primary {
  border-color: rgba(244, 216, 107, 0.7);
  background: linear-gradient(180deg, #ffe98d, #cfae38);
  color: #080806;
}

.band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: center;
}

.copy-block p:not(.eyebrow),
.github p,
.boundary,
.video-copy p,
.lane-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.52;
}

.copy-block p:not(.eyebrow) {
  max-width: 850px;
  margin-top: 20px;
}

.badge-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.56);
}

.badge-panel img {
  width: min(246px, 86%);
  height: auto;
  image-rendering: auto;
}

.section-head {
  margin-bottom: 26px;
}

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

.video-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-copy {
  padding: 20px;
}

.video-copy p {
  margin-top: 12px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.screen-card {
  margin: 0;
  border: 1px solid rgba(244, 216, 107, 0.28);
  background: rgba(0, 0, 0, 0.58);
}

.screen-card.wide {
  grid-row: span 2;
}

.screen-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top left;
  background: #000;
}

.screen-card figcaption {
  min-height: 64px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
}

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

.story-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(244, 216, 107, 0.32);
  background: rgba(0, 0, 0, 0.58);
}

.story-grid p,
.contact p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.52;
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack-node {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(244, 216, 107, 0.3);
  background:
    linear-gradient(180deg, rgba(244, 216, 107, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.58);
}

.stack-node.primary-node {
  border-color: rgba(117, 255, 166, 0.55);
  box-shadow: inset 0 0 0 1px rgba(117, 255, 166, 0.08);
}

.stack-node span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.stack-node h3 {
  margin-top: 18px;
  font-size: 22px;
}

.stack-node p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.paper-actions,
.contact-actions,
.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.video-copy a,
.receipt-list a,
.link-stack a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 850;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.proof .section-intro {
  max-width: 940px;
}

.proof .screen-card img {
  max-height: 440px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.metrics article,
.lane-grid article {
  border: 1px solid rgba(244, 216, 107, 0.32);
  background: rgba(0, 0, 0, 0.56);
  padding: 18px;
}

.metrics strong {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.32;
}

.receipt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
}

.boundary {
  max-width: 960px;
  margin-top: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lane-grid span {
  color: var(--gold);
  font-size: 30px;
  font-weight: 300;
}

.lane-grid h3 {
  margin-top: 14px;
}

.lane-grid p {
  margin-top: 14px;
  font-size: 15px;
}

.github {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding-bottom: 110px;
}

.github p {
  max-width: 760px;
  margin-top: 18px;
}

.contact {
  padding-bottom: 110px;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-stack a {
  margin: 0;
  min-height: 64px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.54);
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 14px;
  }

  .brand span {
    font-size: 12px;
  }

  .hero {
    min-height: 88vh;
    padding-inline: 18px;
  }

  .intro,
  .github,
  .video-grid,
  .metrics,
    .lane-grid,
    .proof-grid,
    .showcase-grid,
    .story-grid,
  .stack-flow {
    grid-template-columns: 1fr;
  }

  .screen-card.wide {
    grid-row: auto;
  }

  .badge-panel {
    min-height: 118px;
  }
}
