:root {
  --bg: #15110f;
  --bg-soft: #201916;
  --panel: rgba(36, 29, 25, 0.72);
  --panel-strong: rgba(48, 38, 33, 0.85);
  --line: rgba(228, 206, 181, 0.14);
  --text: #f4eadf;
  --muted: #ccb9a5;
  --sand: #d9c1a5;
  --sand-bright: #f0d7b6;
  --copper: #b5815d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(181, 129, 93, 0.18), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(217, 193, 165, 0.12), transparent 22%),
    linear-gradient(180deg, #120f0d 0%, #171311 40%, #120f0d 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.backdrop-top {
  top: -20rem;
  right: -12rem;
  background: #a9704d;
}

.backdrop-bottom {
  bottom: 5rem;
  left: -16rem;
  background: #8d664f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(21, 17, 15, 0.45);
}

.brand-lockup {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-lockup img {
  width: 2.3rem;
  height: 2.3rem;
}

.site-nav {
  display: inline-flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
  padding: 4rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
}

.hero-summary,
.section-heading p,
.card p,
.sources-list,
.proof-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-summary {
  max-width: 62ch;
  font-size: 1.05rem;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--sand), var(--sand-bright));
  color: #17110d;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-proof,
.grid,
.stack-layout {
  display: grid;
  gap: 1rem;
}

.hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.2rem;
}

.proof-card,
.card,
.panel-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(42, 33, 29, 0.82), rgba(25, 20, 18, 0.88));
  box-shadow: var(--shadow);
}

.proof-card,
.card {
  padding: 1.25rem;
}

.proof-label {
  display: block;
  color: var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.proof-card strong,
.card h3,
.stat {
  font-size: 1.2rem;
}

.hero-panel {
  min-height: 100%;
}

.panel-frame {
  height: 100%;
  padding: 1.5rem;
  overflow: hidden;
}

.panel-frame::before,
.card::before,
.proof-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(217, 193, 165, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-logo {
  width: min(100%, 24rem);
  display: block;
  margin: 0 auto 1.5rem;
}

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

.signal-list span {
  display: inline-block;
  color: var(--sand);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.signal-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.section {
  padding: 2.5rem 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.8rem;
}

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

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

.stack-layout {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  align-items: start;
}

.feature-tall {
  min-height: 100%;
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

.feature-list.compact li + li {
  margin-top: 0.45rem;
}

.stat-card {
  min-height: 15rem;
}

.stat {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--sand-bright);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
}

.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.sources-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sources-list li + li {
  margin-top: 0.9rem;
}

sup a {
  color: var(--sand-bright);
  text-decoration: none;
}

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

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

@media (max-width: 980px) {
  .hero,
  .stack-layout,
  .two-up,
  .three-up,
  .hero-proof,
  .repo-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .repo-card {
    justify-content: stretch;
  }

  .site-header {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 700px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }
}
