@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: rgba(15, 18, 24, 0.84);
  --panel-strong: #141820;
  --ink: #f5f1e8;
  --muted: #b8b0a4;
  --quiet: #807a72;
  --line: rgba(245, 241, 232, 0.14);
  --orange: #e8793a;
  --orange-hot: #ff7a2c;
  --ice: #bde9ff;
  --green: #72ef9f;
  --red: #e86161;
  --radius: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.35), #08090c 52%),
    url("../assets/alltraxx-hero-kit.png") center top / min(1600px, 160vw) auto no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: url("../assets/revelstoke-contours.png") right 14vh / min(760px, 120vw) auto no-repeat;
  filter: invert(1) grayscale(1);
  opacity: 0.035;
  pointer-events: none;
}

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

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

.mono {
  font-family: var(--mono);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(8, 9, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 48px;
}

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

.wordmark {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(245, 241, 232, 0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary,
.header-cta {
  background: linear-gradient(180deg, #ff914d, var(--orange));
  border-color: rgba(255, 255, 255, 0.16);
  color: #170b05;
  box-shadow: 0 20px 54px rgba(232, 121, 58, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
}

.page-hero {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 160px 0 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange-hot);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lede {
  max-width: 760px;
  color: #ded8cf;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
}

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

.band {
  border-top: 1px solid var(--line);
  padding: clamp(58px, 8vw, 108px) 0;
}

.section-inner {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

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

.card,
.step,
.faq-item,
.manual-panel,
.score-row,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 15, 20, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.card,
.step,
.faq-item {
  padding: 24px;
}

.card p,
.step p,
.faq-item p,
.manual-panel p,
.score-row p {
  color: var(--muted);
  line-height: 1.6;
}

.card strong,
.score-value {
  color: var(--green);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 121, 58, 0.52);
  border-radius: 50%;
  color: var(--orange-hot);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.manual-panel {
  overflow: hidden;
}

.manual-panel header,
.manual-panel .panel-body {
  padding: 24px;
}

.manual-panel header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.check-list,
.manual-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.manual-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before,
.manual-list li::before {
  content: "✓";
  color: var(--orange-hot);
  font-weight: 900;
}

.note {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(189, 233, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(189, 233, 255, 0.07);
  color: #d8eef8;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.form-card {
  padding: 26px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-field {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.check-field span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-field input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

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

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--muted);
}

.form-status.good {
  color: var(--green);
}

.form-status.bad {
  color: var(--red);
}

.scoreboard {
  display: grid;
  gap: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 130px 120px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.rank {
  color: var(--orange-hot);
  font-family: var(--mono);
  font-weight: 900;
}

.score-row h3 {
  margin-bottom: 4px;
}

.score-label {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(114, 239, 159, 0.28);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 4vw, 56px);
  color: var(--quiet);
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .split,
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
    padding: 12px 18px;
  }

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

  .wordmark {
    font-size: 21px;
  }

  .header-cta {
    display: none;
  }

  .page-hero,
  .section-inner {
    width: calc(100vw - 36px);
  }

  .page-hero {
    padding-top: 118px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-actions,
  .field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .score-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .score-row > :nth-child(3),
  .score-row > :nth-child(4) {
    grid-column: 2;
  }
}
