:root {
  --navy: #031735;
  --blue: #075985;
  --amber: #d8a84d;
  --amber-bright: #ffd071;
  --purple: #5b50d6;
  --purple-dark: #4339b7;
  --ink: #ffffff;
  --muted: #c2cede;
  --line: rgba(216, 168, 77, .26);
  --paper: rgba(5, 22, 50, .94);
  --shadow: 0 18px 46px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 13%, rgba(216, 168, 77, .13), transparent 22%),
    radial-gradient(circle at 88% 29%, rgba(91, 80, 214, .15), transparent 25%),
    linear-gradient(180deg, #02122b 0%, #031735 48%, #051632 72%, #031735 100%);
  font-family: "Nunito", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; }
.main-nav {
  min-height: 64px;
  padding-block: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: 0 0 58px;
  overflow: hidden;
  background: #051632;
  border: 1px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.brand img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1 / 1; }
.brand:hover,
.brand:focus-visible {
  border-color: var(--amber-bright);
  box-shadow: 0 0 15px rgba(216, 168, 77, .2);
  transform: scale(1.04);
  outline: none;
}

.experience-switcher { display: flex; align-items: center; gap: 12px; }
.flag-button {
  display: block !important;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #051632;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  opacity: .86;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.flag-button:hover,
.flag-button:focus-visible {
  opacity: 1;
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(216, 168, 77, .2);
  transform: scale(1.05);
}
.flag-button img { width: 100%; height: 100%; display: block; object-fit: cover; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  padding-block: 52px 70px;
}

.hero-copy { min-width: 0; }
.hero-copy {
  position: relative;
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 8px;
  width: 126px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 113, .42) 28%, #ffd071 76%, transparent);
  box-shadow: 34px -8px 0 -1px rgba(255, 208, 113, .46);
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-copy::after {
  content: "✦";
  position: absolute;
  top: -34px;
  left: 125px;
  color: #ffd071;
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 208, 113, .5);
  transform: rotate(8deg);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-bright);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: "Baloo 2", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.04;
}

h1 {
  max-width: 700px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(52px, 6.2vw, 78px);
  font-weight: 900;
  line-height: .98;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .35);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: #d7e0ec;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 510px);
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: rgba(5, 22, 50, .54);
  border: 1px solid rgba(216, 168, 77, .2);
  border-radius: 46% 54% 45% 55% / 55% 42% 58% 45%;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 55px rgba(0, 0, 0, .25);
}

.hero-art img {
  width: min(86%, 390px);
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .3));
  animation: bob 3.2s ease-in-out infinite;
}

.speech-bubble {
  position: absolute;
  top: -2%;
  right: 5%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 11vw, 132px);
  min-width: 96px;
  min-height: 38px;
  aspect-ratio: 450 / 205;
  padding: 0 16%;
  color: #0f2b5b;
  background: url("../../../assets/Speech-bubble.svg") center / contain no-repeat;
  font-family: "Baloo 2", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  transform: rotate(3deg);
  pointer-events: none;
}

.speech-bubble .bubble-local {
  display: block;
  max-width: 100%;
  text-align: center;
  transform: translate(-20px, -2px);
}

.float-shape { position: absolute; color: var(--amber-bright); font-size: 30px; }
.shape-one { left: 8%; top: 18%; }
.shape-two { right: 9%; bottom: 18%; }

.english-intro,
.modules-section { padding-block: 46px 72px; }
.english-intro {
  padding-inline: clamp(22px, 4vw, 48px);
  background: #041b3f;
  border: 1px solid rgba(216, 168, 77, .25);
  border-radius: 28px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}
.intro-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.intro-heading h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.95rem, 4.2vw, 3.2rem);
}
.intro-heading > p:last-child {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 17px;
  background: #07224b;
  border: 1px solid rgba(216, 168, 77, .18);
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.fact-card > * { position: relative; z-index: 1; }
.fact-card::after {
  position: absolute;
  z-index: 0;
  right: -2%;
  bottom: -3%;
  width: 38%;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background-color: rgba(255, 208, 113, .045);
  border-radius: 50%;
}
.fact-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--amber-bright);
}
.fact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact-card h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 1.22rem;
}
.fact-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.56;
}
.section-heading h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.journey-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.3vw, 16px);
  margin: 0 0 22px;
  color: var(--amber-bright);
  font-size: clamp(.76rem, 1.1vw, .86rem);
  font-weight: 900;
  letter-spacing: .055em;
  text-align: center;
}
.journey-indicator span[aria-hidden="true"] { opacity: .58; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.module-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  background: linear-gradient(160deg, rgba(5, 22, 50, .98), rgba(7, 29, 64, .94));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.module-card-active {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.module-card-active:hover,
.module-card-active:focus-visible {
  border-color: rgba(255, 208, 113, .6);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34), 0 0 22px rgba(216, 168, 77, .15);
  transform: translateY(-5px);
  outline: none;
}
.module-card-disabled { opacity: .82; }
.module-image { position: relative; overflow: hidden; width: 100%; aspect-ratio: 8 / 5; }
.module-image > img { width: 100%; height: 100%; object-fit: cover; }
.module-image::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 22, 50, 0) 60%, rgba(5, 22, 50, .9) 100%);
}
.module-sparkles {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 16px;
  width: 35%;
  height: 24%;
  opacity: .22;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 224, 151, .9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 15%, rgba(255, 208, 113, .8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 76% 48%, rgba(255, 235, 184, .82) 0 1px, transparent 1.8px);
}
.module-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}
.module-step {
  color: var(--amber-bright);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.module-content h3 {
  margin: 14px 0 9px;
  color: #fff;
  font-size: 1.8rem;
}
.module-content p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  color: #ffe3a5;
  background: rgba(216, 168, 77, .15);
  border: 1px solid rgba(216, 168, 77, .3);
  border-radius: 16px;
  font-weight: 900;
}

.standard-footer .footer-tagline {
  color: var(--amber-bright);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-copy::before { left: 50%; transform: translateX(-50%) rotate(-8deg); }
  .hero-copy::after { left: calc(50% + 58px); }
  .hero-art { width: min(86vw, 480px); min-height: 330px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
}

@media (max-width: 600px) {
  .page-width { width: calc(100% - 24px); }
  .main-nav { min-height: 58px; padding-block: 7px; }
  .brand { width: 48px; height: 48px; flex-basis: 48px; }
  .flag-button { width: 36px; height: 36px; }
  h1 { font-size: clamp(2.55rem, 11.5vw, 2.8rem); }
  .hero { gap: 24px; padding-block: 36px 50px; }
  .hero-copy::before { top: -9px; width: 92px; }
  .hero-copy::after { top: -22px; left: calc(50% + 46px); font-size: 16px; }
  .hero-art { min-height: 260px; }
  .speech-bubble { top: -4%; right: 7%; width: clamp(96px, 28vw, 118px); min-width: 94px; max-width: calc(100% - 24px); font-size: 13px; }
  .speech-bubble .bubble-local { transform: translate(-20px, -2px); }
  .english-intro { padding-block: 28px; padding-inline: 16px; border-radius: 22px; }
  .fact-grid { grid-template-columns: 1fr; gap: 12px; }
  .modules-section { padding-block: 38px 54px; }
  .journey-indicator { flex-wrap: wrap; gap: 7px; }
  .module-card { border-radius: 24px; }
  .module-content { padding: 22px; }
}

@keyframes bob {
  50% { transform: translateY(-14px) rotate(2deg); }
}
