:root {
  --ink: #121513;
  --muted: #64706a;
  --line: #d7ded9;
  --paper: #f5f6f1;
  --panel: #ffffff;
  --track: #e8ece7;
  --green: #1f6a4d;
  --blue: #226f8b;
  --amber: #c77820;
  --red: #a34835;
  --dark: #171f1b;
  --shadow: 0 18px 42px rgba(18, 25, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.62;
}

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

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 13, 12, 0.88), rgba(9, 13, 12, 0.55) 55%, rgba(9, 13, 12, 0.28)),
    url("https://images.unsplash.com/photo-1544551763-46a013bb70d5?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.topbar {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 18px;
  font-weight: 900;
}

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

.nav-actions a {
  min-width: 56px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-copy {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  align-self: end;
  padding: 8vh 0 12vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(38px, 6.8vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

section {
  padding: 76px 0;
}

.advisor-band {
  background: #e9eee8;
}

.content-band {
  background: var(--paper);
}

.split-band {
  background: #eef1ec;
}

.depth-band {
  background: #eef5f3;
}

.section-head,
.advisor,
.table-wrap,
.cards,
.rules-grid,
.depth-layout,
.timeline {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.advisor {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.control-panel,
.result-panel,
.info-card,
.rules-grid > div,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.control-panel {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

select {
  width: 100%;
  appearance: none;
  border: 1px solid #c8d2cd;
  border-radius: 8px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 12px 40px 12px 12px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 53%,
    calc(100% - 12px) 53%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.result-panel {
  padding: 22px;
}

.result-title {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.result-title svg,
.info-card svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex: 0 0 auto;
}

.result-title span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.result-title strong {
  font-size: 22px;
}

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

.priority-strip span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e6f0ea;
  color: #174533;
  font-weight: 900;
}

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

.result-grid article {
  min-height: 136px;
  padding: 16px;
  border: 1px solid #dce3df;
  border-radius: 8px;
  background: #fbfcf8;
}

.result-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.result-grid strong {
  display: block;
  font-size: 16.5px;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #dde8e2;
  color: #17372c;
  font-size: 14px;
}

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

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

.info-card {
  min-height: 284px;
  padding: 20px;
}

.info-card h3,
.rules-grid h3,
.timeline h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.info-card p,
.rules-grid p,
.depth-copy p,
.timeline p,
footer p {
  margin: 0;
  color: var(--muted);
}

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

.rules-grid > div {
  padding: 22px;
}

.depth-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}

.depth-meter {
  min-height: 380px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(199, 120, 32, 0.88), rgba(31, 106, 77, 0.76), rgba(34, 111, 139, 0.84)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80") center/cover;
  display: grid;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
}

.depth-meter span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.depth-meter span:last-child {
  border-bottom: 0;
}

.depth-copy {
  display: grid;
  gap: 14px;
}

.depth-copy p {
  padding: 19px 22px;
  border: 1px solid #d3e0dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

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

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 22px;
}

.timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

footer {
  padding: 34px 20px;
  background: var(--dark);
  text-align: center;
}

footer p {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1020px) {
  .advisor,
  .depth-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .hero {
    min-height: 84vh;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions a {
    flex: 1 1 28%;
  }

  section {
    padding: 54px 0;
  }

  .cards,
  .rules-grid,
  .timeline,
  .result-grid,
  .priority-strip {
    grid-template-columns: 1fr;
  }

  .result-grid article,
  .timeline article {
    min-height: auto;
  }

  .depth-meter {
    min-height: 270px;
  }
}
