:root {
  --emerald-950: #0d3d30;
  --emerald-900: #15513f;
  --emerald-700: #2f7d61;
  --emerald-500: #5ca789;
  --mint-200: #d5ebe1;
  --mint-100: #eaf6f0;
  --mint-50: #f4faf7;
  --cream: #fff9ee;
  --peach: #f6d8aa;
  --ink: #18392e;
  --muted: #65766e;
  --white: #ffffff;
  --line: rgba(24, 57, 46, 0.12);
  --shadow: 0 24px 70px rgba(21, 81, 63, 0.11);
  font-family: Inter, ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--mint-50);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--mint-50); }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--emerald-950);
  border-radius: 0 0 0.5rem 0.5rem;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 3rem));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { width: 132px; height: auto; }
.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.85rem;
  color: var(--emerald-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}
.preview-pill span { width: 7px; height: 7px; background: var(--emerald-500); border-radius: 50%; box-shadow: 0 0 0 5px rgba(92, 167, 137, 0.13); }

.hero {
  width: min(1180px, calc(100% - 3rem));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--emerald-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .language-copy h2, .closing-section h2 {
  margin: 0;
  color: var(--emerald-950);
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.92;
}
.hero-lede {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}
.hero-actions { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.3rem;
  color: var(--white);
  background: var(--emerald-700);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(47, 125, 97, 0.22);
  font-size: 0.9rem;
  font-weight: 780;
}
.text-link { color: var(--emerald-900); font-size: 0.9rem; font-weight: 760; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-note { margin: 2.1rem 0 0; color: var(--emerald-700); font-size: 0.82rem; font-weight: 700; }

.hero-visual { min-height: 560px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before {
  content: "";
  width: min(450px, 92%);
  aspect-ratio: 1;
  position: absolute;
  z-index: -2;
  background: radial-gradient(circle at 42% 38%, #fff 0 24%, #e8f6ef 60%, #d5ebe1 100%);
  border: 1px solid rgba(47, 125, 97, 0.1);
  border-radius: 45% 55% 50% 50% / 55% 44% 56% 45%;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}
.soft-orbit { position: absolute; z-index: -1; border: 1px dashed rgba(47, 125, 97, 0.2); border-radius: 50%; }
.orbit-one { width: 510px; height: 420px; transform: rotate(18deg); }
.orbit-two { width: 420px; height: 510px; transform: rotate(-25deg); }
.mascot-wrap {
  width: min(360px, 75%);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  border-radius: 44% 56% 52% 48% / 48% 45% 55% 52%;
  box-shadow: 0 25px 65px rgba(21, 81, 63, 0.13);
  transform: rotate(2deg);
}
.mascot-wrap img { width: 100%; height: 100%; object-fit: cover; }
.word-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(21, 81, 63, 0.13);
  backdrop-filter: blur(12px);
}
.word-card-top { top: 9%; right: 0; flex-direction: column; align-items: flex-start; min-width: 150px; }
.word-hanzi { color: var(--emerald-950); font-size: 2rem; font-weight: 750; }
.word-pinyin { margin-top: 0.2rem; color: var(--emerald-700); font-size: 0.83rem; font-weight: 700; }
.word-meaning { margin-top: 0.45rem; color: var(--muted); font-size: 0.76rem; }
.word-card-bottom { bottom: 10%; left: -2%; gap: 0.8rem; }
.word-card-bottom span:last-child { display: flex; flex-direction: column; gap: 0.1rem; }
.word-card-bottom strong { font-size: 0.85rem; }
.word-card-bottom small { color: var(--muted); font-size: 0.72rem; }
.review-dot { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); background: var(--emerald-700); border-radius: 50%; font-weight: 800; }

.steps-section { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 1180px) / 2)); background: var(--white); }
.section-heading { max-width: 650px; }
.section-heading h2, .language-copy h2, .closing-section h2 { font-size: clamp(2.7rem, 5vw, 4.9rem); line-height: 0.98; }
.section-heading > p:last-child { max-width: 590px; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.7; }
.steps-grid { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { min-height: 330px; position: relative; padding: 1.6rem; background: var(--mint-50); border: 1px solid var(--line); border-radius: 28px; }
.step-card.featured { background: var(--emerald-950); color: var(--white); transform: translateY(-1rem); }
.step-number { position: absolute; top: 1.5rem; right: 1.5rem; color: rgba(47, 125, 97, 0.58); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.step-card.featured .step-number { color: rgba(255, 255, 255, 0.45); }
.step-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--emerald-700); background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.step-card.featured .step-icon { color: var(--white); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
.step-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card h3 { margin: 5rem 0 0.8rem; color: var(--emerald-950); font-size: 1.55rem; letter-spacing: -0.04em; }
.step-card.featured h3 { color: var(--white); }
.step-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.step-card.featured p { color: rgba(255, 255, 255, 0.68); }

.language-section { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 1180px) / 2)); background: var(--cream); }
.language-card { padding: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr minmax(320px, 0.75fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); background: var(--white); border: 1px solid rgba(106, 74, 31, 0.1); border-radius: 38px; box-shadow: 0 30px 80px rgba(106, 74, 31, 0.08); }
.language-copy > p:not(.eyebrow) { max-width: 580px; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.75; }
.language-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.language-tags span { padding: 0.55rem 0.8rem; color: var(--emerald-900); background: var(--mint-100); border-radius: 999px; font-size: 0.72rem; font-weight: 750; }
.vocabulary-preview { padding: 1.5rem; background: var(--mint-50); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.preview-label { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.preview-word-row { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.preview-hanzi { color: var(--emerald-950); font-size: 3.5rem; font-weight: 760; letter-spacing: -0.06em; }
.saved-check { width: 36px; height: 36px; display: grid; place-items: center; color: var(--emerald-700); background: var(--mint-200); border-radius: 50%; font-weight: 900; }
.preview-pinyin { display: block; margin: -0.35rem 0 1.5rem; color: var(--emerald-700); font-size: 0.9rem; font-weight: 700; }
.meaning-row { margin-top: 0.65rem; padding: 0.9rem; display: flex; align-items: center; gap: 0.8rem; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.meaning-row.active { background: var(--emerald-950); border-color: var(--emerald-950); }
.meaning-row span { min-width: 28px; color: var(--emerald-700); font-size: 0.66rem; font-weight: 850; }
.meaning-row strong { color: var(--ink); font-size: 0.78rem; }
.meaning-row.active span { color: #95d3b8; }
.meaning-row.active strong { color: var(--white); }

.closing-section { padding: clamp(6rem, 12vw, 11rem) 1.5rem; display: flex; align-items: center; flex-direction: column; text-align: center; background: var(--mint-100); }
.closing-section img { width: 118px; height: 118px; margin-bottom: 1.5rem; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 45px rgba(21, 81, 63, 0.12); }
.closing-section > p:not(.eyebrow) { margin: 1.25rem 0 0; color: var(--muted); }
.closing-status { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.9rem; color: var(--emerald-900); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 999px; font-size: 0.76rem; font-weight: 750; }
.closing-status i { width: 7px; height: 7px; background: var(--emerald-500); border-radius: 50%; }

footer { min-height: 120px; padding: 1.5rem max(1.5rem, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--emerald-950); }
footer img { width: 108px; filter: brightness(0) invert(1); opacity: 0.95; }
footer p { margin: 0; color: rgba(255, 255, 255, 0.56); font-size: 0.72rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(580px, 100%); margin: -1rem auto 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card, .step-card.featured { min-height: auto; transform: none; }
  .step-card h3 { margin-top: 3.5rem; }
  .language-card { grid-template-columns: 1fr; }
  .vocabulary-preview { width: min(480px, 100%); }
}

@media (max-width: 560px) {
  .site-header, .hero { width: min(100% - 2rem, 1180px); }
  .site-header { min-height: 76px; }
  .brand img { width: 112px; }
  .preview-pill { padding: 0.52rem 0.7rem; font-size: 0.67rem; }
  .hero { padding-top: 3.5rem; gap: 1rem; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .hero-lede { line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .text-link { text-align: center; }
  .hero-visual { min-height: 440px; transform: scale(0.94); }
  .orbit-one { width: 105%; height: 78%; }
  .orbit-two { width: 82%; height: 100%; }
  .word-card-top { top: 8%; right: -2%; }
  .word-card-bottom { bottom: 7%; left: -2%; }
  .steps-section, .language-section { padding-right: 1rem; padding-left: 1rem; }
  .language-card { padding: 1.5rem; border-radius: 26px; }
  .section-heading h2, .language-copy h2, .closing-section h2 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
