:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --text: #f5f1ea;
  --muted: #9b968d;
  --dim: #5b5750;
  --line: rgba(245, 241, 234, 0.12);
  --line-strong: rgba(245, 241, 234, 0.2);
  --orange: #ff6a00;
  --orange-soft: rgba(255, 106, 0, 0.1);
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Avenir, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 74%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(58px, 9vw, 132px);
}

h2 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.6vw, 88px);
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nav a {
  white-space: nowrap;
}

.nav-cta {
  color: var(--text);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 160px) 0;
}

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

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

.lead,
.section-intro p,
.apply-copy p,
.audit-shell p {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button.primary {
  color: #090909;
  background: var(--orange);
  border-color: var(--orange);
}

.button.primary:hover {
  border-color: var(--orange);
}

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

.system-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
}

.flow-node {
  position: relative;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 800;
  text-align: center;
}

.flow-node:not(:last-child)::after,
.journey-list li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 24px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--dim);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transform: translateX(-50%);
}

.flow-node.active {
  border-color: rgba(255,106,0,0.55);
  box-shadow: inset 0 0 0 1px rgba(255,106,0,0.08);
}

.flow-node.active:last-child {
  color: #090909;
  border-color: var(--orange);
  background: var(--orange);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: 38px;
}

.section-intro.narrow {
  max-width: 940px;
  display: block;
}

.card-grid,
.component-grid,
.artifact-grid,
.tag-cloud {
  display: grid;
  gap: 16px;
}

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

.card,
.journey-card,
.method-step,
.artifact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
}

.card {
  min-height: 270px;
  padding: 28px;
}

.card span,
.method-step span,
.artifact span {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--dim);
  font-family: "SF Mono", SFMono-Regular, ui-monospace, monospace;
  font-size: 13px;
}

.card p,
.method-step p,
.dont-list p {
  color: var(--muted);
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: 18px;
}

.journey-card {
  padding: clamp(24px, 4vw, 38px);
}

.journey-card.large {
  border-color: rgba(255,106,0,0.34);
  background: rgba(255,255,255,0.025);
}

.journey-list {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-left: 42px;
  color: var(--text);
  font-weight: 800;
}

.journey-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

.journey-list li:not(:last-child)::after {
  left: 7px;
  top: 30px;
  height: 32px;
  color: var(--dim);
  transform: none;
}

.journey-list.simple {
  gap: 18px;
  margin-top: 34px;
}

.journey-list.simple li {
  min-height: 44px;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 0 42px;
  text-align: left;
}

.journey-list.simple li::before {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.journey-list.simple li:not(:last-child)::after {
  left: -4.5px;
  top: 37px;
  height: 18px;
  transform: none;
}

.journey-list.complex {
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}

.journey-list.complex li:not(:last-child)::after {
  display: none;
}

.statement {
  max-width: 780px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(24px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.statement strong {
  color: var(--orange);
}

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

.component-grid div,
.audit-list div,
.tag-cloud span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 900;
}

.audit-list div:first-child,
.audit-list div:last-child {
  border-color: rgba(255,106,0,0.34);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.method-step {
  min-height: 340px;
  padding: 26px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
}

.audit-shell,
.application {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(340px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(255,106,0,0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,106,0,0.045), rgba(255,255,255,0.02));
}

.review-note {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.audit-list {
  display: grid;
  gap: 12px;
}

.tag-cloud {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dont-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.dont-list p {
  margin: 0;
  padding: 24px;
  background: var(--bg);
  font-size: 20px;
  font-weight: 800;
}

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

.artifact {
  min-height: 230px;
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    var(--panel);
  background-size: 24px 24px;
}

.application {
  background: transparent;
  border-color: var(--line);
}

.application-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.thank-you-page {
  min-height: calc(100svh - 170px);
  display: grid;
  place-items: center;
}

.thank-you-card {
  width: min(780px, 100%);
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid rgba(255,106,0,0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,106,0,0.045), rgba(255,255,255,0.02));
  text-align: center;
}

.thank-you-card img {
  width: 82px;
  height: 82px;
  margin: 0 auto 30px;
}

.thank-you-card h1 {
  max-width: none;
  font-size: clamp(56px, 8vw, 108px);
}

.thank-you-card .lead {
  margin-inline: auto;
}

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

.thank-you-card .actions {
  justify-content: center;
}

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

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

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section-intro,
  .journey-grid,
  .audit-shell,
  .application {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .component-grid,
  .method-steps,
  .tag-cloud,
  .artifact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, var(--max));
    padding: 76px 0;
  }

  .card-grid.three,
  .component-grid,
  .method-steps,
  .tag-cloud,
  .artifact-grid,
  .field-grid,
  .journey-list.complex {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
