:root {
  --ink: #10243a;
  --muted: #617488;
  --line: #d8e4eb;
  --blue: #2577b6;
  --blue-dark: #155782;
  --teal: #1c8b85;
  --gold: #b88a3d;
  --ice: #eef7f8;
  --mist: #f6f9fb;
  --white: #ffffff;
  --slate: #263b4f;
  --shadow: 0 22px 60px rgba(30, 74, 110, 0.14);
  --soft-shadow: 0 12px 34px rgba(24, 59, 86, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f2f7fa 0%, #ffffff 42%, #f7fafb 100%);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(18, 48, 72, 0.1);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(440px, 48vw);
}

.brand-mark {
  display: flex;
  width: 56px;
  height: 42px;
  align-items: center;
  justify-content: center;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(20, 40, 63, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 48, 72, 0.09);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

.brand small {
  max-width: 290px;
  color: currentColor;
  font-size: 11px;
  line-height: 1.25;
  opacity: 0.76;
  overflow-wrap: anywhere;
}

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

.site-nav a {
  position: relative;
  opacity: 0.86;
  transition: opacity 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 28, 48, 0.9) 0%, rgba(16, 56, 77, 0.72) 42%, rgba(16, 56, 77, 0.18) 74%),
    linear-gradient(0deg, rgba(8, 28, 48, 0.52), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfe4ff;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(47, 127, 191, 0.28);
}

.button.primary:hover {
  background: var(--blue-dark);
}

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

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
}

.hero-metrics {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  padding: 16px 18px;
  background: rgba(8, 28, 48, 0.3);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 22px;
  line-height: 1.1;
}

.hero-metrics span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.25;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 96px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -26px;
}

.section-heading h2 {
  grid-column: 1 / 2;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading.compact .eyebrow {
  margin-bottom: 14px;
}

.section-heading.compact h2 {
  margin-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.intro-grid p {
  min-height: 220px;
  margin: 0;
  padding: 30px;
  background: var(--white);
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.intro-grid p:hover {
  color: var(--ink);
  background: #fbfdff;
}

.clients {
  width: 100%;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, #e8f3f6 0%, #f6fbfb 100%);
}

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

.client-card,
.service-panel,
.timeline article,
.principles div,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.client-card {
  min-height: 270px;
  padding: 28px;
}

.client-card:hover,
.service-panel:hover,
.timeline article:hover,
.principles div:hover {
  border-color: rgba(37, 119, 182, 0.28);
  box-shadow: var(--soft-shadow);
  transform: translateY(-4px);
}

.card-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.client-card p,
.service-panel p,
.timeline p,
.framework-copy p,
.contact-panel p {
  color: var(--muted);
}

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

.service-panel {
  padding: 30px;
}

.service-panel.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 248, 0.98) 100%);
  box-shadow: var(--shadow);
}

.service-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-grid {
  display: grid;
  gap: 12px;
}

.course-grid div {
  padding: 18px;
  border: 1px solid #cbe1e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.course-grid strong,
.course-grid span {
  display: block;
}

.course-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.clean-list li:first-child {
  border-top: 0;
}

.clean-list li::before {
  position: absolute;
  top: 23px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.threshold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(184, 138, 61, 0.28);
  background: #fff8eb;
}

.threshold span {
  color: var(--muted);
}

.threshold strong {
  color: #8e6424;
}

.curriculum {
  width: 100%;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: var(--white);
}

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

.timeline article {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
}

.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.timeline h3 {
  min-height: 58px;
  font-size: 19px;
}

.framework {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles div {
  padding: 24px;
}

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

.principles strong {
  margin-bottom: 6px;
  color: var(--slate);
  font-size: 20px;
}

.principles div {
  position: relative;
  overflow: hidden;
}

.principles div::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.principles span {
  color: var(--muted);
}

.contact {
  width: 100%;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, #eef7f8 0%, #ffffff 100%);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 40px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.contact-notes {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-notes span {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-notes span::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.wechat-card {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(28, 139, 133, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 247, 248, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.wechat-card span,
.wechat-card strong,
.wechat-card p {
  display: block;
}

.wechat-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.wechat-card strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.wechat-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label,
.contact-form span {
  display: block;
}

.contact-form span {
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #fbfdff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.13);
  background: #ffffff;
}

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

.form-hint.is-ready {
  color: var(--teal);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 30px clamp(20px, 4vw, 56px);
  color: #7890a4;
  background: #10243a;
  font-size: 13px;
}

.footer-logo {
  width: 58px;
  height: 40px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    max-width: calc(100% - 64px);
  }

  .brand small {
    max-width: min(340px, 58vw);
  }

  .nav-toggle {
    flex: 0 0 42px;
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 11px 12px;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: var(--ice);
  }

  .site-nav a::after {
    display: none;
  }

  .section-heading,
  .service-panel.featured,
  .framework,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow,
  .section-heading h2 {
    grid-column: auto;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .intro-grid,
  .client-grid,
  .service-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    width: min(760px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-grid p,
  .client-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand {
    max-width: calc(100% - 58px);
  }

  .brand small {
    display: none;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 35, 58, 0.9) 0%, rgba(17, 52, 78, 0.68) 100%),
      linear-gradient(0deg, rgba(10, 35, 58, 0.42), transparent 45%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 104px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.14;
  }

  h2 {
    font-size: 29px;
    line-height: 1.22;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .hero .button {
    width: auto;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
  }

  .hero-metrics div {
    padding: 12px 9px;
  }

  .hero-metrics strong {
    font-size: 18px;
  }

  .hero-metrics span {
    font-size: 11px;
    line-height: 1.35;
  }

  .section {
    width: calc(100% - 32px);
    padding: 64px 0;
    scroll-margin-top: 82px;
  }

  .clients,
  .curriculum,
  .contact {
    padding-right: 16px;
    padding-left: 16px;
  }

  .button {
    width: 100%;
  }

  .trust-strip {
    gap: 8px;
  }

  .trust-strip span {
    width: auto;
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
