:root {
  --ink: #131512;
  --muted: #697067;
  --paper: #f8f5ee;
  --paper-deep: #ebe5d9;
  --pine: #163d2e;
  --moss: #627463;
  --walnut: #7a5232;
  --line: rgba(19, 21, 18, 0.12);
  --white: #fffefa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 245, 238, 0.92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 10, 0.82) 0%, rgba(9, 13, 10, 0.52) 36%, rgba(9, 13, 10, 0.05) 72%),
    linear-gradient(180deg, rgba(9, 13, 10, 0.28) 0%, rgba(9, 13, 10, 0.12) 62%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 110px);
  padding-top: 56px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 254, 250, 0.72);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(76px, 13vw, 178px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-subtitle {
  width: min(590px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 254, 250, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.primary {
  background: var(--pine);
  color: var(--white);
}

.hero .button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 254, 250, 0.45);
  color: var(--white);
}

.hero-proof {
  margin-top: 30px;
  color: rgba(255, 254, 250, 0.72);
  font-size: 13px;
}

.hero-proof span {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 254, 250, 0.28);
}

.hero-proof span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 8vw, 96px);
  align-items: end;
  background: var(--paper);
}

.intro p,
.outcome-copy p,
.course-card p,
.method-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics article {
  min-height: 160px;
  padding: 34px clamp(20px, 5vw, 62px);
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
}

.metrics span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 44px;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.method {
  background: #111610;
  color: var(--white);
}

.method .section-kicker {
  color: #aab7a3;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 254, 250, 0.16);
}

.method-grid article {
  min-height: 270px;
  padding: 30px 26px;
  border-right: 1px solid rgba(255, 254, 250, 0.16);
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid span {
  display: block;
  margin-bottom: 76px;
  color: #aab7a3;
  font-weight: 800;
}

.method-grid p {
  color: rgba(255, 254, 250, 0.68);
  line-height: 1.75;
}

.courses {
  background: var(--paper-deep);
}

.course-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.course-card.featured {
  background: var(--pine);
  color: var(--white);
}

.course-card.featured p,
.course-card.featured li,
.course-card.featured .tag {
  color: rgba(255, 254, 250, 0.74);
}

.course-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.55;
}

.course-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: currentColor;
  vertical-align: 2px;
}

.text-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.outcomes {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
  background: var(--paper);
}

.outcome-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.outcome-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.outcome-list strong {
  color: var(--walnut);
}

.outcome-list span {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(23px, 3vw, 36px);
}

.apply {
  background: #d9d1c2;
}

.apply-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.apply-panel p {
  max-width: 620px;
  color: #4f564f;
  font-size: 18px;
  line-height: 1.75;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #9f3a2d;
  background: #fff8f4;
}

textarea {
  min-height: 110px;
  padding-top: 13px;
  resize: vertical;
  line-height: 1.6;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-note.is-success {
  color: var(--pine);
  font-weight: 800;
}

.form-note.is-error {
  color: #9f3a2d;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 6vw, 88px);
  background: var(--ink);
  color: rgba(255, 254, 250, 0.72);
}

.footer p {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: rgba(248, 245, 238, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 18px 24px;
    border-top: 1px solid var(--line);
  }

  .intro,
  .outcomes,
  .apply-panel,
  .course-grid {
    grid-template-columns: 1fr;
  }

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

  .method-grid article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .nav {
    top: 64px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: clamp(64px, 21vw, 104px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

  .metrics article,
  .method-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid article {
    min-height: 220px;
    border-bottom-color: rgba(255, 254, 250, 0.16);
  }

  .method-grid span {
    margin-bottom: 44px;
  }

  .section-heading.compact {
    display: block;
  }

  .course-card {
    min-height: 360px;
  }

  .outcome-list div {
    grid-template-columns: 52px 1fr;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-top: 10px;
  }
}
