:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-soft: #12161b;
  --surface: #171c22;
  --surface-strong: #202730;
  --line: #343c46;
  --line-bright: #66717d;
  --text: #f0eadc;
  --muted: #b7b3aa;
  --fog: #85919b;
  --ember: #d97b46;
  --moss: #7e9a74;
  --steel: #93a8b6;
  --danger: #b94f43;
  --max: 1280px;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(240, 234, 220, 0.12);
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(240, 234, 220, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(217, 123, 70, 0.8) 43% 56%, transparent 57%),
    linear-gradient(180deg, #242d36, #101419);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--muted);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"],
.button-link:hover {
  border-color: rgba(240, 234, 220, 0.18);
  background: rgba(240, 234, 220, 0.08);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(72vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 234, 220, 0.12);
}

.hero.compact {
  min-height: min(62vh, 700px);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.94), rgba(11, 13, 16, 0.5) 52%, rgba(11, 13, 16, 0.78)),
    linear-gradient(180deg, rgba(11, 13, 16, 0.16), rgba(11, 13, 16, 0.96));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(88px, 13vh, 150px) 0 54px;
}

.eyebrow,
.section-label,
.kicker {
  margin: 0 0 14px;
  color: var(--ember);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

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

h1 {
  width: min(760px, 100%);
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 4.4vw, 5.15rem);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

.lede {
  width: min(720px, 100%);
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
}

.hero-actions,
.chip-row,
.split-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link.primary {
  border-color: rgba(217, 123, 70, 0.52);
  background: rgba(217, 123, 70, 0.16);
  color: var(--text);
}

.chip,
.metric {
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(18, 22, 27, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
}

.band {
  border-bottom: 1px solid rgba(240, 234, 220, 0.1);
  padding: clamp(34px, 5vw, 74px) 0;
}

.band.alt {
  background: var(--bg-soft);
}

.intro-grid,
.content-grid,
.split-grid,
.task-grid,
.column-grid,
.route-grid {
  display: grid;
  gap: 24px;
}

.intro-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

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

.split-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
}

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

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

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

.panel,
.task-card,
.table-wrap,
.callout,
.route-node {
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: var(--radius);
  background: rgba(23, 28, 34, 0.88);
}

.panel,
.callout,
.task-card {
  padding: clamp(18px, 2vw, 28px);
}

.panel strong,
.task-card strong,
.callout strong {
  color: var(--text);
}

.task-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.task-card:hover {
  border-color: rgba(217, 123, 70, 0.42);
  background: rgba(32, 39, 48, 0.96);
  transform: translateY(-2px);
}

.task-number {
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 800;
}

.task-card p:last-child,
.panel p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: var(--radius);
  background: #07090b;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-frame.tall img {
  aspect-ratio: 16 / 11;
}

.list-clean {
  margin: 0;
  padding-left: 20px;
}

.list-clean li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(240, 234, 220, 0.12);
  padding: 14px 16px;
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

th {
  color: var(--text);
  font-size: 0.86rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  border-left: 3px solid var(--ember);
}

.callout.good {
  border-left-color: var(--moss);
}

.callout.risk {
  border-left-color: var(--danger);
}

.route-node {
  min-height: 142px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-node span {
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 800;
}

.route-node p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: steps;
  position: relative;
  min-height: 68px;
  border-top: 1px solid rgba(240, 234, 220, 0.12);
  padding: 14px 0 0 58px;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--ember);
  font-weight: 900;
}

.footer {
  padding: 28px 0 46px;
  color: var(--fog);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .intro-grid,
  .content-grid,
  .split-grid,
  .column-grid {
    grid-template-columns: 1fr;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

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

  .task-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .shell,
  .hero-copy {
    width: min(calc(100% - 24px), var(--max));
  }

  .header-inner {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .nav {
    gap: 4px;
  }

  .nav a,
  .button-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .hero,
  .hero.compact {
    min-height: 640px;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .image-frame img,
  .image-frame.tall img {
    aspect-ratio: 4 / 3;
  }
}
