:root {
  --gold: #d4a843;
  --gold-soft: #e8cd85;
  --gold-deep: #b98a2f;
  --night: #1a1f3c;
  --night-2: #242b55;
  --night-3: #10142b;
  --paper: #f8f6f1;
  --paper-2: #efeae0;
  --white: #ffffff;
  --root: #8b6343;
  --root-soft: #a97f5c;
  --green: #4a7c59;
  --green-soft: #6e9b7b;
  --ink: #20242e;
  --muted: #626a72;
  --line: #ddd7ca;
  --line-dark: rgba(255, 255, 255, 0.14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", "Times New Roman", serif;
  --shadow-sm: 0 8px 24px rgba(26, 31, 60, 0.08);
  --shadow-md: 0 18px 44px rgba(26, 31, 60, 0.14);
  --radius: 2px;
  --header-h: 76px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(212, 168, 67, 0.32);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section.tight {
  padding: 64px 0;
}

.section.dark {
  background: var(--night);
  color: var(--white);
}

.section.paper {
  background: var(--paper);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.wide {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.dark .eyebrow,
.on-dark .eyebrow {
  color: var(--gold-soft);
}

.section-head h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.dark .section-head p,
.on-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 10px 24px rgba(212, 168, 67, 0.28);
}

.btn-primary:hover {
  background: var(--gold-soft);
  box-shadow: 0 14px 30px rgba(212, 168, 67, 0.36);
}

.btn-dark {
  background: var(--night);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--night-2);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--root);
  color: var(--root);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-soft);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.badge.gold {
  border-color: rgba(212, 168, 67, 0.45);
  color: var(--gold-deep);
  background: rgba(212, 168, 67, 0.1);
}

.badge.green {
  border-color: rgba(74, 124, 89, 0.4);
  color: var(--green);
  background: rgba(74, 124, 89, 0.1);
}

.badge.root {
  border-color: rgba(139, 99, 67, 0.4);
  color: var(--root);
  background: rgba(139, 99, 67, 0.1);
}

.text-gold {
  color: var(--gold-deep);
}

.text-green {
  color: var(--green);
}

.text-root {
  color: var(--root);
}

.mark {
  background: linear-gradient(transparent 62%, rgba(212, 168, 67, 0.34) 62%);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(248, 246, 241, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(26, 31, 60, 0.06);
  backdrop-filter: blur(14px);
}

body:not([data-hero="dark"]) .site-header:not(.is-scrolled) {
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--night);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(212, 168, 67, 0.34);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.brand-name small {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.72;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-scroll {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > .nav-scroll > a,
.nav-group-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-group-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.nav-group.active > .nav-group-toggle {
  color: var(--gold-deep);
}

body[data-hero="dark"] .site-header:not(.is-scrolled) .nav-group.active > .nav-group-toggle {
  color: var(--gold-soft);
}

.nav-group:hover .nav-group-toggle svg,
.nav-group.open .nav-group-toggle svg {
  transform: rotate(180deg);
}

.main-nav > .nav-scroll > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav > .nav-scroll > a:hover::after,
.main-nav > .nav-scroll > a.active::after {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-group-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

body:not([data-hero="dark"]) .nav-group-toggle:hover,
.site-header.is-scrolled .nav-group-toggle:hover {
  background: var(--paper-2);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown,
.nav-group.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 14px;
  border-radius: var(--radius);
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.dropdown a:hover {
  background: var(--paper);
  color: var(--green);
  padding-left: 18px;
}

.dropdown .dropdown-label {
  display: block;
  padding: 8px 14px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.nav-cta {
  margin-left: 14px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

body:not([data-hero="dark"]) .nav-cta,
.site-header.is-scrolled .nav-cta {
  border-color: var(--night);
  color: var(--night);
}

body:not([data-hero="dark"]) .nav-cta:hover,
.site-header.is-scrolled .nav-cta:hover {
  background: var(--night);
  border-color: var(--night);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(26, 31, 60, 0.3);
  color: inherit;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

body:not([data-hero="dark"]) .menu-toggle {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night-3);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-ink.jpg");
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 43, 0.92) 0%, rgba(16, 20, 43, 0.52) 48%, rgba(16, 20, 43, 0.12) 78%),
    linear-gradient(0deg, rgba(16, 20, 43, 0.72) 0%, rgba(16, 20, 43, 0.1) 46%, rgba(16, 20, 43, 0.18) 100%);
}

.hero-glow {
  position: absolute;
  top: 42%;
  left: 52%;
  width: 920px;
  height: 920px;
  transform: translate(-50%, -50%) scale(0.62);
  background: radial-gradient(circle, rgba(212, 168, 67, 0.5) 0%, rgba(212, 168, 67, 0.16) 38%, transparent 66%);
  animation: dawnPulse 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes dawnPulse {
  from {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.58);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: calc(var(--header-h) + 64px) 0 96px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 600;
}

.hero-kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(232, 205, 133, 0.6);
}

.hero h1 {
  font-size: 66px;
  margin-bottom: 18px;
}

.hero h1 .cn {
  font-family: var(--serif);
}

.hero h1 .en {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

.hero-lead {
  font-size: 21px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--gold-soft);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(232, 205, 133, 0.9), transparent);
}

/* Page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
  background: var(--paper);
}

.page-hero.dark {
  background: var(--night);
  color: var(--white);
}

.page-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-ink.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.42;
}

.page-hero.dark .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 43, 0.92), rgba(16, 20, 43, 0.55));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 52px;
  margin-bottom: 14px;
}

.page-hero .page-lead {
  max-width: 640px;
  font-size: 18px;
  color: var(--muted);
}

.page-hero.dark .page-lead {
  color: rgba(255, 255, 255, 0.76);
}

.page-hero .page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Pain cards */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pain-card {
  position: relative;
  padding: 34px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--root));
  opacity: 0.85;
}

.pain-num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.pain-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.pain-card p {
  color: var(--muted);
  font-size: 15px;
}

.pain-answer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.pain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--root);
  font-size: 14px;
  font-weight: 600;
}

.pain-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.pain-link:hover svg {
  transform: translateX(4px);
}

/* Mission timeline */
.mission {
  position: relative;
}

.mission-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.mission-step {
  position: relative;
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.mission-step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 168, 67, 0.18);
}

.mission-step:first-child::before {
  left: 30px;
  top: -12px;
}

.mission-step .step-num {
  font-family: var(--display);
  font-size: 26px;
  color: var(--gold-soft);
}

.mission-step h3 {
  font-size: 22px;
  margin: 10px 0 8px;
}

.mission-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.mission-step a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 600;
}

.mission-step a svg {
  width: 15px;
  height: 15px;
}

/* Compare */
.compare {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}

.compare-cell {
  padding: 22px 26px;
  font-size: 16px;
}

.compare-cell:first-child {
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.compare-cell:last-child {
  font-weight: 600;
  color: var(--green);
}

.compare-head .compare-cell {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  padding: 18px 26px;
}

.compare-head .compare-cell:first-child {
  color: var(--muted);
}

.compare-head .compare-cell:last-child {
  color: var(--night);
  background: rgba(212, 168, 67, 0.1);
}

.compare-quote {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
  color: var(--root);
}

/* Pillar cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pillar-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-media img {
  transform: scale(1.04);
}

.pillar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.pillar-body h3 {
  font-size: 21px;
  margin: 10px 0 8px;
}

.pillar-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.pillar-body p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 16px;
}

.pillar-list {
  margin-bottom: 20px;
}

.pillar-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}

.pillar-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.pillar-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--root);
  font-size: 14px;
  font-weight: 600;
}

.pillar-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.pillar-link:hover svg {
  transform: translateX(4px);
}

/* Case cards */
.case-list {
  display: grid;
  gap: 16px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.case-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.case-head:hover {
  background: var(--paper);
}

.case-head .case-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.case-head svg {
  width: 20px;
  height: 20px;
  color: var(--root);
  transition: transform 0.25s ease;
}

.case-card.open .case-head svg {
  transform: rotate(180deg);
}

.case-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.case-card.open .case-body-wrap {
  grid-template-rows: 1fr;
}

.case-body {
  overflow: hidden;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 4px 28px 28px;
  border-top: 1px dashed var(--line);
}

.case-grid h4 {
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.case-grid p {
  color: var(--muted);
  font-size: 14px;
}

.heysun-note {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: rgba(74, 124, 89, 0.08);
  font-family: var(--serif);
  color: var(--ink);
  font-size: 15px;
}

.heysun-note strong {
  color: var(--green);
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.founder-media {
  position: relative;
}

.founder-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.founder-media::after {
  content: "万甲功 · 蒙学门创始人";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: rgba(16, 20, 43, 0.78);
  color: var(--white);
  font-size: 13px;
  border-radius: var(--radius);
}

.founder-quote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.founder-copy {
  color: var(--muted);
  margin-bottom: 26px;
}

.founder-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.founder-seal {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--root);
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
  border-radius: var(--radius);
}

/* Path cards */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.path-card .path-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.14);
  color: var(--gold-deep);
}

.path-card .path-icon svg {
  width: 24px;
  height: 24px;
}

.path-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.path-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.path-card .path-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.path-card:nth-child(2) .path-icon {
  background: rgba(74, 124, 89, 0.14);
  color: var(--green);
}

.path-card:nth-child(3) .path-icon {
  background: rgba(139, 99, 67, 0.14);
  color: var(--root);
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 168, 67, 0.26), transparent 62%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.74);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Lead magnets */
.magnet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.magnet-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.magnet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.magnet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.magnet-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.14);
  color: var(--gold-deep);
}

.magnet-icon svg {
  width: 22px;
  height: 22px;
}

.magnet-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.magnet-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.magnet-card .btn {
  margin-top: auto;
}

.dark .magnet-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  box-shadow: none;
}

.dark .magnet-card p {
  color: rgba(255, 255, 255, 0.72);
}

/* Content hub */
.notes-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.notes-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.notes-tab.active {
  background: var(--night);
  border-color: var(--night);
  color: var(--white);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.note-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.note-cat {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.note-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.note-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.note-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.note-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--root);
  font-weight: 600;
}

.note-meta svg {
  width: 14px;
  height: 14px;
}

/* Solution detail sections */
.solution-block {
  scroll-margin-top: 90px;
  padding: 88px 0;
}

.solution-block + .solution-block {
  border-top: 1px solid var(--line);
}

.solution-block:nth-child(even) {
  background: var(--white);
}

.solution-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.solution-layout.reverse .solution-visual {
  order: 2;
}

.solution-visual {
  position: relative;
}

.solution-visual img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.solution-visual .visual-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  background: var(--night);
  color: var(--white);
  font-size: 13px;
  border-radius: var(--radius);
}

.solution-copy .eyebrow {
  margin-bottom: 8px;
}

.solution-copy h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.solution-copy .solution-desc {
  color: var(--muted);
  margin-bottom: 22px;
}

.spec-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 26px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.spec-row + .spec-row {
  border-top: 1px solid var(--line);
}

.spec-row dt {
  padding: 12px 16px;
  background: var(--paper);
  color: var(--root);
  font-size: 13px;
  font-weight: 700;
}

.spec-row dd {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}

/* Forms */
.form-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.form-card .form-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.16);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.form-actions {
  margin-top: 18px;
}

.form-privacy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.form-success {
  display: none;
  padding: 30px 0;
  text-align: center;
}

.form-card.submitted .form-fields {
  display: none;
}

.form-card.submitted .form-success {
  display: block;
}

.form-success .success-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(74, 124, 89, 0.14);
  color: var(--green);
}

.form-success .success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--muted);
  font-size: 14px;
}

/* QR */
.qr-panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.qr-panel img {
  width: 216px;
  height: 216px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--white);
}

.qr-panel h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.qr-panel p {
  color: var(--muted);
  font-size: 14px;
}

.dark .qr-panel,
.on-dark .qr-panel {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
}

.dark .qr-panel img {
  background: var(--white);
}

.dark .qr-panel p {
  color: rgba(255, 255, 255, 0.72);
}

/* Split conversion */
.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

/* Popup */
.lead-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 48px));
  z-index: 120;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px;
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s ease;
}

.lead-popup.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.popup-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.popup-close svg {
  width: 18px;
  height: 18px;
}

.popup-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.14);
  color: var(--gold-deep);
}

.popup-icon svg {
  width: 22px;
  height: 22px;
}

.lead-popup h3 {
  font-size: 19px;
  margin-bottom: 8px;
  padding-right: 24px;
}

.lead-popup .popup-copy {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.lead-popup .field input {
  min-height: 44px;
}

.lead-popup .form-grid {
  gap: 12px;
}

.lead-popup .btn {
  min-height: 46px;
}

.lead-popup .form-success {
  padding: 16px 0;
}

.lead-popup.submitted .popup-form {
  display: none;
}

.lead-popup.submitted .form-success {
  display: block;
}

.popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.popup-tag svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* Footer */
.site-footer {
  background: var(--night-3);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h3 {
  font-size: 15px;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

/* Feature strips */
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strip-item {
  padding: 24px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.strip-item .strip-num {
  font-family: var(--display);
  font-size: 24px;
  color: var(--gold-soft);
}

.strip-item h3 {
  font-size: 17px;
  margin: 8px 0 6px;
}

.strip-item p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

/* Article page */
.article-shell {
  max-width: 780px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 56px) 0 90px;
}

.article-shell h1 {
  font-size: 40px;
  margin: 14px 0 18px;
}

.article-shell .article-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}

.article-body {
  font-size: 16px;
  color: #333a42;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 26px;
  margin: 36px 0 14px;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--root);
}

/* Reveal */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js-ready [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-ready [data-reveal],
  .hero-glow,
  .case-body-wrap {
    transition: none !important;
    animation: none !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    inset: 0;
    display: block;
    padding: 96px 30px 44px;
    background: var(--night);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
    z-index: 110;
  }

  .main-nav.open {
    transform: none;
  }

  .nav-scroll {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > .nav-scroll > a,
  .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
    font-family: var(--serif);
    font-size: 21px;
  }

  .nav-group-toggle:hover {
    background: transparent;
  }

  .main-nav > .nav-scroll > a::after {
    display: none;
  }

  .nav-group {
    border-bottom: 1px solid var(--line-dark);
  }

  .dropdown {
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-group.open .dropdown {
    max-height: 320px;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.78);
    padding: 12px 16px;
    font-size: 16px;
    font-family: var(--sans);
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-soft);
    padding-left: 20px;
  }

  .nav-cta {
    margin: 26px 0 0;
    justify-content: center;
    border-color: var(--gold);
    color: var(--gold-soft);
  }

  body:not([data-hero="dark"]) .nav-cta,
  .site-header.is-scrolled .nav-cta {
    border-color: var(--gold);
    color: var(--gold-soft);
  }

  body:not([data-hero="dark"]) .nav-cta:hover,
  .site-header.is-scrolled .nav-cta:hover {
    background: var(--gold);
    color: var(--night);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero h1 {
    font-size: 56px;
  }

  .pain-grid,
  .pillar-grid,
  .path-grid,
  .magnet-grid,
  .notes-grid,
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .hero-content {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .mission-track {
    grid-template-columns: 1fr;
  }

  .mission-step::before {
    left: 30px;
    top: -12px;
  }

  .founder-grid,
  .solution-layout,
  .split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .solution-layout.reverse .solution-visual {
    order: 0;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-cell:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lead-popup {
    left: 24px;
    right: 24px;
    width: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 60px 0;
  }

  .section-head h2,
  .cta-band h2 {
    font-size: 32px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h1 .en {
    font-size: 17px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta span {
    justify-content: center;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .pain-grid,
  .pillar-grid,
  .path-grid,
  .magnet-grid,
  .notes-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .pain-card,
  .path-card,
  .magnet-card,
  .note-card {
    padding: 26px 22px;
  }

  .case-head {
    grid-template-columns: 1fr auto;
    padding: 20px;
    gap: 10px;
  }

  .case-head .case-tag {
    grid-column: 1 / -1;
  }

  .case-grid {
    padding: 4px 20px 20px;
  }

  .founder-quote {
    font-size: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .compare-cell {
    padding: 18px 20px;
  }

  .cta-band {
    padding: 70px 0;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .spec-row dt {
    border-bottom: 1px solid var(--line);
  }
}

.brand-mark[src] { background: transparent; box-shadow: none; object-fit: contain; padding: 2px; }
