:root {
  color-scheme: light;
  --ink: #1d2935;
  --muted: #5c6875;
  --paper: #f7fbfa;
  --surface: #ffffff;
  --line: #dce5e1;
  --red: #b6382f;
  --red-dark: #90291f;
  --green: #15803d;
  --gold: #d29a3b;
  --blue: #2f5f8f;
  --mint: #e9f6f1;
  --cream: #fff8ec;
  --shadow: 0 18px 45px rgba(29, 41, 53, 0.12);
  --shadow-strong: 0 28px 70px rgba(29, 41, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 251, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  min-width: 44px;
  height: 36px;
  place-items: center;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.nav {
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding-right: clamp(20px, 6vw, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 251, 250, 0.97) 0%, rgba(247, 251, 250, 0.9) 44%, rgba(247, 251, 250, 0.38) 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(48px, 9vw, 104px) clamp(20px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 10ch;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.hero-copy,
.tagline,
.section p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.tagline {
  margin: 16px 0 0;
  color: var(--red);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

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

.hero-panel {
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(47, 95, 143, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.path-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  margin-top: 22px;
}

.path-list span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.path-list p {
  margin: 4px 0 0;
}

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

.primary {
  background: var(--red);
  color: #fff;
}

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

.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.pay {
  background: var(--ink);
  color: #fff;
}

.pay:hover {
  background: var(--blue);
}

.section {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 6vw, 86px);
}

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

.intro div {
  padding: 28px;
  border-left: 3px solid var(--gold);
}

.intro p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.stat {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.story {
  background: var(--surface);
}

.story-inner {
  width: min(920px, 100%);
}

.story-inner p:last-child {
  max-width: 840px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--mint);
}

.about-copy p {
  max-width: 760px;
}

.teacher-card {
  padding: 24px;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.teacher-initial {
  display: grid;
  width: 86px;
  height: 70px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.teacher-card p {
  margin-top: 0;
}

.founder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--surface);
}

.founder p,
.founder-list {
  max-width: 760px;
}

.founder-profile {
  display: grid;
  gap: 14px;
  width: min(320px, 100%);
}

.founder-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 24%;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.founder-actions {
  display: grid;
  gap: 10px;
}

.linkedin {
  background: #0a66c2;
  color: #fff;
}

.linkedin:hover {
  background: #084f96;
}

.youtube {
  background: #162632;
}

.youtube h2,
.youtube .video-preview strong {
  color: #fff;
}

.youtube-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(22px, 5vw, 60px);
  align-items: center;
}

.video-preview {
  display: grid;
  gap: 16px;
  min-height: 280px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 56, 47, 0.82), rgba(47, 95, 143, 0.76)),
    url("assets/chinese-course-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.video-preview span {
  width: fit-content;
  height: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.video-preview strong {
  align-self: end;
  max-width: 560px;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.youtube-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.pricing-heading {
  justify-content: flex-start;
  align-items: baseline;
  gap: 14px;
}

.pricing-heading .eyebrow {
  margin-bottom: 0;
  white-space: nowrap;
}

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

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

.course-card,
.price-card,
.trial-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-card,
.price-card {
  padding: 24px;
}

.course-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.course-card h3,
.course-card p,
.course-card ul {
  margin-top: 0;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.pricing {
  background: var(--cream);
}

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

.price-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.price-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.price-card.featured {
  border-color: rgba(182, 56, 47, 0.42);
  box-shadow: 0 22px 55px rgba(182, 56, 47, 0.18);
}

.price-card h3,
.price-card p,
.price-card ul {
  margin-top: 0;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.pricing-note {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 95, 143, 0.12);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: #eef4f1;
}

.schedule-box {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(21, 128, 61, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.schedule-box strong {
  color: var(--ink);
}

.trial-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 95, 143, 0.16);
}

.full {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
}

.contact p {
  margin-bottom: 0;
}

.whatsapp {
  min-width: 156px;
  background: var(--green);
  color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .topbar,
  .footer,
  .founder,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 248, 243, 0.98) 0%, rgba(251, 248, 243, 0.88) 58%, rgba(251, 248, 243, 0.3) 100%);
  }

  h1 {
    max-width: 12ch;
  }

  .hero-panel {
    margin: 0 20px 42px;
  }

  .intro,
  .about,
  .course-grid,
  .price-grid,
  .youtube-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 520px) {
  .brand {
    white-space: normal;
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    width: calc(100% - 40px);
  }

  .nav {
    justify-content: flex-start;
    font-size: 0.88rem;
  }
}
