:root {
  --ink: #172326;
  --muted: #5e6869;
  --line: #d7dddc;
  --paper: #f7f7f3;
  --white: #ffffff;
  --teal: #0f4d4f;
  --teal-dark: #0b3236;
  --gold: #b88946;
  --coral: #b85f4f;
  --blue: #315f86;
  --shadow: 0 18px 50px rgba(12, 36, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 247, 243, 0.94);
  box-shadow: 0 10px 32px rgba(17, 35, 38, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}

.site-header.is-scrolled .brand-logo {
  background: var(--teal);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  opacity: 0.75;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: 14px;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

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

.button,
.icon-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(15, 77, 79, 0.24);
}

.button:hover,
.icon-btn:hover {
  background: var(--teal-dark);
}

.button svg,
.icon-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-small,
.icon-btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-btn {
  color: currentColor;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.site-header.is-scrolled .icon-btn {
  background: var(--white);
  border-color: var(--line);
}

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

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 24, 27, 0.92) 0%, rgba(9, 24, 27, 0.74) 42%, rgba(9, 24, 27, 0.2) 100%),
    linear-gradient(180deg, rgba(9, 24, 27, 0.35), rgba(9, 24, 27, 0.08) 65%, rgba(247, 247, 243, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 150px clamp(20px, 6vw, 84px) 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 760;
}

h2 {
  font-size: clamp(30px, 4.4vw, 52px);
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.metric {
  padding: 28px clamp(20px, 4vw, 54px);
  background: var(--white);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.alt {
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.section-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  max-width: 680px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.program-card {
  min-height: 204px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.program-card:nth-child(2n) {
  border-top: 4px solid var(--gold);
}

.program-card:nth-child(3n) {
  border-top: 4px solid var(--blue);
}

.program-card:nth-child(3n + 1) {
  border-top: 4px solid var(--coral);
}

.program-card p,
.steps p,
.insight-list p {
  margin: 0;
  color: var(--muted);
}

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

.steps article {
  padding: 30px;
  background: var(--white);
  min-height: 236px;
}

.steps span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--gold);
  font-weight: 800;
}

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

.insight-list article {
  padding: 30px;
  border-left: 3px solid var(--teal);
  background: var(--paper);
}

.insight-list svg {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--gold);
}

.consultation {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  background: var(--teal-dark);
  color: var(--white);
}

.consultation p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

.contact-list {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}

.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.contact-list svg {
  color: var(--gold);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfbf8;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.full {
  width: 100%;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 84px);
  background: #101719;
  color: var(--white);
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  align-items: start;
  gap: 20px;
  white-space: nowrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img,
.footer-brand svg {
  width: 34px;
  height: 34px;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 22px;
  background: var(--paper);
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 56px);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

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

  .nav-links {
    display: none;
  }

  .program-grid,
  .steps,
  .insight-list,
  .trust-band,
  .two-column,
  .consultation {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-actions .button-small {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(9, 24, 27, 0.94) 0%, rgba(9, 24, 27, 0.74) 60%, rgba(9, 24, 27, 0.34) 100%);
  }

  .hero-content {
    padding: 122px 20px 58px;
  }

  h1 {
    font-size: 42px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .icon-btn {
    width: 100%;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-actions .icon-btn {
    width: auto;
  }

  .program-card,
  .lead-form {
    padding: 22px;
  }

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