:root {
  color-scheme: dark;
  --bg: #090b0c;
  --ink: #f3ede3;
  --muted: #b5aaa0;
  --quiet: #7f7670;
  --panel: rgba(18, 20, 22, 0.78);
  --panel-solid: #151719;
  --line: rgba(224, 195, 143, 0.18);
  --crimson: #bf202d;
  --crimson-deep: #75141b;
  --gold: #e0c38f;
  --teal: #57d8c9;
  --green: #77d86b;
  --blue: #6aa7ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 12, 0.62), var(--bg) 720px),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(224, 195, 143, 0.14);
  background: rgba(9, 11, 12, 0.76);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1160px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 195, 143, 0.34);
  border-radius: 50%;
  background: rgba(191, 32, 45, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.nav-links a,
.text-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.text-link:hover {
  border-color: rgba(224, 195, 143, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 26%, rgba(191, 32, 45, 0.22), transparent 24%),
    linear-gradient(180deg, #17130e 0%, var(--bg) 88%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(1.08) contrast(1.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(9, 11, 12, 0.82), rgba(9, 11, 12, 0.48) 38%, rgba(9, 11, 12, 0.18) 68%, rgba(9, 11, 12, 0.46)),
    linear-gradient(180deg, rgba(9, 11, 12, 0.03), rgba(9, 11, 12, 0.16) 52%, var(--bg) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 46% 33%, rgba(224, 195, 143, 0.13), transparent 16%),
    linear-gradient(180deg, rgba(224, 195, 143, 0.08), transparent 38%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.62), transparent 76%);
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.hero-inner {
  padding: 39svh 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(119, 216, 107, 0.9);
}

h1 {
  width: min(850px, 100%);
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(3.1rem, 9vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 {
  width: min(760px, 100%);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.hero h1 span {
  display: block;
}

.hero h1,
.hero-copy,
.hero-anchor {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.84);
}

.page-hero h1 span {
  display: block;
}

.hero-copy {
  width: min(670px, 100%);
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-anchor {
  width: min(670px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-anchor strong {
  color: var(--gold);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(224, 195, 143, 0.36);
  border-radius: 6px;
  background: rgba(224, 195, 143, 0.1);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 34px rgba(191, 32, 45, 0.25);
}

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

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-tile {
  min-height: 116px;
  padding: 18px;
  background: rgba(9, 11, 12, 0.75);
}

.proof-tile strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.18rem, 3vw, 2rem);
  line-height: 1;
  color: var(--gold);
}

.proof-tile span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.identity-section {
  padding: 58px 0 72px;
  background:
    linear-gradient(135deg, rgba(87, 216, 201, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(191, 32, 45, 0.08), transparent 72%);
}

.identity-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 34px;
  align-items: center;
}

.identity-copy .section-title {
  width: min(700px, 100%);
}

.profile-photo-wrap {
  margin: 0;
  justify-self: end;
  width: min(360px, 100%);
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(224, 195, 143, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

main {
  background: var(--bg);
}

.section {
  padding: 82px 0;
  border-top: 1px solid rgba(224, 195, 143, 0.11);
}

.proof-section {
  padding: 0 0 36px;
  border-top: 0;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.section.tight {
  padding-top: 38px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.section-title {
  width: min(780px, 100%);
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.section-lede {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.card,
.status-board,
.terminal,
.pathway {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.step-card {
  position: relative;
  padding-top: 54px;
}

.step-number {
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.card h3,
.pathway h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 1.03rem;
}

.card p,
.pathway p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(87, 216, 201, 0.28);
  border-radius: 999px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.status-board {
  margin-top: 34px;
  overflow: hidden;
}

.status-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  border-top: 1px solid rgba(224, 195, 143, 0.11);
}

.status-row:first-child {
  border-top: 0;
}

.status-label {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-copy {
  color: var(--muted);
}

.status-state {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.terminal {
  margin-top: 34px;
  overflow: hidden;
  background: #0d1011;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(224, 195, 143, 0.12);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--crimson);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #d7e7dc;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

.code-panel {
  box-shadow: none;
}

.code-panel code {
  color: inherit;
}

.note-band {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(87, 216, 201, 0.28);
  border-radius: 8px;
  background: rgba(87, 216, 201, 0.08);
}

.note-band strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.note-band span {
  color: var(--muted);
}

.pathways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

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

.pathway {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.page-hero {
  padding: 142px 0 58px;
  border-bottom: 1px solid rgba(224, 195, 143, 0.12);
  background:
    linear-gradient(135deg, rgba(191, 32, 45, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(87, 216, 201, 0.08), transparent 60%);
}

.guide-hero h1 {
  width: min(900px, 100%);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(224, 195, 143, 0.13);
}

.list-item strong {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.list-item span {
  color: var(--muted);
}

.site-footer {
  padding: 36px 0 46px;
  border-top: 1px solid rgba(224, 195, 143, 0.12);
  color: var(--quiet);
}

.footer-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
}

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

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(9, 11, 12, 0.01) 0%, rgba(9, 11, 12, 0.08) 34%, rgba(9, 11, 12, 0.66) 60%, var(--bg) 96%),
      linear-gradient(90deg, rgba(9, 11, 12, 0.24), rgba(9, 11, 12, 0.1) 48%, rgba(9, 11, 12, 0.34));
    background-size: cover;
    background-position: center;
  }

  .hero-bg img {
    object-position: center 50%;
  }

  .hero-inner {
    padding-top: 54svh;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
    line-height: 0.92;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 0.95;
  }

  .proof-strip,
  .identity-inner,
  .grid,
  .grid.two,
  .pathways,
  .pathways.three {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    justify-self: start;
    width: min(260px, 78vw);
  }

  .status-row,
  .note-band,
  .list-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 28px), 362px);
    margin-left: 14px;
    margin-right: auto;
  }

  .nav {
    width: min(calc(100% - 28px), 362px);
    margin-left: 14px;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-links a {
    padding-left: 8px;
    padding-right: 8px;
  }

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

  .nav-links a {
    width: 100%;
  }

  .hero-copy,
  .section-lede {
    font-size: 1rem;
  }

  .hero-copy {
    width: min(330px, 100%);
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    line-height: 0.95;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.6vw, 3rem);
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .hero-inner {
    padding-top: max(46svh, 330px);
    padding-bottom: 44px;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    gap: 8px;
  }
}
