﻿:root {
  --navy: #061a38;
  --blue: #075985;
  --japan-blue: #006aa7;
  --japan-gold: #fecc00;
  --amber: #d8a84d;
  --purple: #5b50d6;
  --purple-dark: #4339b7;
  --yellow: #ffd646;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink: #242347;
  --muted: #777590;
  --line: #e8e4f2;
  --shadow: 0 20px 55px rgba(6, 26, 56, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 214, 70, .23) 0 90px, transparent 92px),
    radial-gradient(circle at 88% 30%, rgba(91, 80, 214, .12) 0 130px, transparent 132px),
    var(--cream);
  font-family: "Nunito", 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: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
}

.main-nav {
  width: min(1080px, calc(100% - 40px));
  min-height: 82px;
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.brand:hover,
.brand:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(216, 168, 77, .2);
  transform: scale(1.05);
}

.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: .8;
  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: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  padding-block: 70px 80px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--japan-blue);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.flag {
  margin-right: 6px;
  font-size: 1.3rem;
  vertical-align: middle;
}

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

h1 {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 700;
  line-height: .98;
}

h1 span { color: var(--purple); }

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 27px;
  color: white;
  background: var(--purple);
  border: 0;
  border-radius: 17px;
  box-shadow: 0 8px 0 var(--purple-dark);
  cursor: pointer;
  font: 800 18px "Nunito", sans-serif;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 var(--purple-dark);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 510px);
  min-height: 520px;
  display: grid;
  place-items: center;
  background: #dcd8ff;
  border-radius: 46% 54% 45% 55% / 55% 42% 58% 45%;
}

.hero-art img {
  width: min(90%, 470px);
  filter: drop-shadow(0 22px 15px rgba(68, 52, 143, .16));
  animation: bob 3.2s ease-in-out infinite;
}

.float-shape {
  position: absolute;
  color: var(--yellow);
  font-size: 30px;
}

.shape-one {
  left: 4%;
  top: 18%;
}

.shape-two {
  right: 9%;
  bottom: 18%;
  color: var(--purple);
}

.speech-bubble {
  position: absolute;
  top: 3%;
  right: -4%;
  z-index: 10;
  width: clamp(130px, 14vw, 190px);
  max-width: none;
  aspect-ratio: 520 / 190;
  padding: 0 18%;
  color: #0F2B5B;
  background: url("../../assets/Speech-bubble.svg") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: rotate(4deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.speech-bubble small {
  display: block;
  margin-top: 3px;
  color: #5F6B7A;
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.speech-bubble::after {
  content: none;
}

.japan-intro,
.modules-section { padding-block: 84px; }

.japan-intro {
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  padding-inline: clamp(24px, 5vw, 64px);
}

.intro-heading,
.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.intro-heading h2,
.section-heading h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.intro-heading > p:last-child,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.fact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.fact-icon { font-size: 2rem; }

.fact-card h3 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 1.35rem;
}

.fact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.module-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(6, 26, 56, 0.18);
}

.module-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.module-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.module-step {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(254, 204, 0, 0.2);
  color: #6a5300;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-content h3 {
  margin: 15px 0 9px;
  color: var(--navy);
  font-size: 1.8rem;
}

.module-content p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  margin-top: 30px;
  padding: 10px 20px 24px;
  color: #9895a8;
  background: transparent;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }

  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-art { width: min(86vw, 480px); min-height: 390px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .module-card { display: grid; grid-template-columns: minmax(240px, 0.9fr) 1.1fr; }
  .module-card > img { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 600px) {
  .page-width { width: calc(100% - 20px); }
  .main-nav { width: calc(100% - 20px); min-height: 68px; padding-block: 7px; }
  .brand,
  .brand img { width: 48px; height: 48px; flex-basis: 48px; }
  .flag-button { width: 36px; height: 36px; }
  .hero { min-height: auto; gap: 24px; padding-block: 48px 56px; }
  h1 { font-size: clamp(2.55rem, 11.5vw, 2.8rem); }
  .hero-art { min-height: 330px; }
  .speech-bubble { top: -3%; right: -2%; width: clamp(112px, 34vw, 150px); padding: 0 18%; font-size: clamp(17px, 5vw, 20px); }
  .speech-bubble small { font-size: 10px; }
  .japan-intro, .modules-section { padding-block: 58px; }
  .japan-intro { border-radius: 24px; padding-inline: 18px; }
  .fact-grid { grid-template-columns: 1fr; }
  .module-card { display: flex; }
  .module-card > img { height: auto; aspect-ratio: 4 / 3; }
  .module-content { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* Japanese landing: dark StarPath transformation */
:root {
  --navy: #031735;
  --blue: #0b2a57;
  --amber: #d8a84d;
  --amber-bright: #ffd071;
  --ink: #ffffff;
  --muted: #c2cede;
  --line: rgba(216, 168, 77, .28);
  --paper: rgba(5, 22, 50, .9);
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

html {
  background: #031735;
}

body {
  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%);
}

.site-header {
  background: linear-gradient(180deg, rgba(2, 18, 43, .92), rgba(2, 18, 43, .15));
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  min-height: 570px;
  padding-block: 52px 70px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6%;
  left: -18%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 106, 167, .22), transparent 68%);
  pointer-events: none;
}

h1 {
  color: #fff;
  font-size: clamp(52px, 6.2vw, 78px);
  font-weight: 800;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .35);
}

h1 span {
  color: var(--amber-bright);
}

.hero-copy > p:not(.eyebrow) {
  color: #d7e0ec;
}

.hero-art {
  min-height: 470px;
  background:
    radial-gradient(circle at 50% 42%, rgba(91, 80, 214, .3), transparent 57%),
    rgba(5, 22, 50, .54);
  border: 1px solid rgba(216, 168, 77, .2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 55px rgba(0, 0, 0, .25);
}

.hero-art img {
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .3));
}

.shape-two {
  color: var(--amber-bright);
}

.speech-bubble {
  color: #0F2B5B;
  background: url("../../assets/Speech-bubble.svg") center / contain no-repeat;
  border: 0;
  box-shadow: none;
  letter-spacing: .01em;
}

.speech-bubble small {
  color: rgba(15, 43, 91, .76);
}

.japan-intro {
  background:
    linear-gradient(145deg, rgba(5, 22, 50, .92), rgba(7, 29, 64, .86));
  border-color: rgba(216, 168, 77, .3);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

.eyebrow,
.module-step {
  color: var(--amber-bright);
}

.intro-heading h2,
.section-heading h2,
.fact-card h3,
.module-content h3 {
  color: #fff;
}

.intro-heading > p:last-child,
.section-heading > p:last-child,
.fact-card p,
.module-content p {
  color: var(--muted);
}

.fact-card {
  background: rgba(3, 23, 53, .76);
  border-color: rgba(216, 168, 77, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.fact-card:hover {
  border-color: rgba(216, 168, 77, .42);
}

.modules-section {
  padding-bottom: 72px;
}

.section-heading h2 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}

.module-card {
  background: linear-gradient(160deg, rgba(5, 22, 50, .98), rgba(7, 29, 64, .94));
  border-color: rgba(216, 168, 77, .26);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
}

.module-card:hover {
  border-color: rgba(230, 184, 92, .62);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .34), 0 0 22px rgba(216, 168, 77, .08);
}

.module-card > img {
  border-bottom: 1px solid rgba(216, 168, 77, .2);
}

.module-step {
  background: rgba(216, 168, 77, .13);
  border: 1px solid rgba(216, 168, 77, .28);
}

footer {
  margin-top: 0;
  padding: 8px 20px 16px;
  color: var(--amber-bright);
  background: transparent;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-art {
    min-height: 410px;
  }
}

@media (max-width: 600px) {
  .site-header {
    position: relative;
  }

  .hero {
    padding-block: 32px 46px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 3.25rem);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-art {
    min-height: 320px;
    border-radius: 34% 46% 38% 48% / 48% 38% 48% 40%;
  }

  .japan-intro,
  .modules-section {
    padding-block: 48px;
  }

  .fact-card {
    padding: 20px;
  }
}

/* Japanese landing: post-transformation spacing refinement */
.hero {
  min-height: 520px;
  gap: clamp(28px, 5vw, 64px);
  padding-block: 34px 52px;
}

.hero-art {
  width: min(100%, 470px);
  min-height: 430px;
}

.hero-art img {
  width: min(88%, 430px);
}

.japan-intro {
  padding-block: 64px;
  background:
    linear-gradient(145deg, rgba(5, 22, 50, .88), rgba(7, 29, 64, .82));
  border-color: rgba(216, 168, 77, .34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .045);
}

.intro-heading,
.section-heading {
  margin-bottom: 32px;
}

.modules-section {
  padding-block: 60px 52px;
}

.module-grid {
  gap: 22px;
}

footer {
  padding-bottom: 12px;
}

@media (max-width: 900px) {
  .hero {
    gap: 26px;
    padding-block: 32px 48px;
  }

  .hero-art {
    width: min(82vw, 450px);
    min-height: 380px;
  }

  .japan-intro {
    padding-block: 54px;
  }

  .modules-section {
    padding-block: 52px 46px;
  }
}

@media (max-width: 600px) {
  .hero {
    gap: 18px;
    padding-block: 24px 38px;
  }

  .hero-art {
    width: min(88vw, 360px);
    min-height: 285px;
  }

  .hero-art img {
    width: min(86%, 320px);
  }

  .japan-intro {
    padding-block: 38px;
  }

  .modules-section {
    padding-block: 42px 36px;
  }

  .intro-heading,
  .section-heading {
    margin-bottom: 26px;
  }

  .module-grid {
    gap: 18px;
  }

  footer {
    padding-bottom: 10px;
  }
}

/* Japanese landing: StarPath family alignment */
.main-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  padding-block: 7px;
}

.hero {
  min-height: 500px;
  gap: clamp(28px, 4.5vw, 56px);
  padding-block: 30px 46px;
}

h1 {
  font-size: clamp(48px, 5.4vw, 68px);
  line-height: 1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  line-height: 1.62;
}

.hero-art {
  width: min(100%, 450px);
  min-height: 410px;
  background:
    radial-gradient(circle at 50% 42%, rgba(91, 80, 214, .25), transparent 58%),
    rgba(5, 22, 50, .34);
  border-color: rgba(216, 168, 77, .16);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 16px 42px rgba(0, 0, 0, .21);
}

.hero-art img {
  width: min(87%, 405px);
}

.intro-heading h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.2rem);
}

.section-heading h2 {
  font-size: clamp(2rem, 4.25vw, 3.25rem);
}

.intro-heading > p:last-child,
.section-heading > p:last-child {
  font-size: 1rem;
  line-height: 1.62;
}

.japan-intro {
  padding-block: 58px;
  border-radius: 28px;
}

.fact-grid {
  gap: 16px;
}

.fact-card {
  padding: 20px;
  border-radius: 18px;
}

.fact-card h3 {
  margin-top: 10px;
  font-size: 1.22rem;
}

.fact-card p {
  font-size: .92rem;
  line-height: 1.55;
}

.modules-section {
  padding-block: 56px 48px;
}

.module-card {
  border-radius: 22px;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .25);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 39px rgba(0, 0, 0, .31), 0 0 18px rgba(216, 168, 77, .07);
}

.module-content {
  padding: 24px;
}

.module-content h3 {
  font-size: 1.65rem;
}

.module-content p {
  line-height: 1.58;
}

@media (max-width: 900px) {
  .hero {
    padding-block: 28px 44px;
  }

  .hero-art {
    width: min(80vw, 430px);
    min-height: 360px;
  }

  .japan-intro {
    padding-block: 50px;
  }

  .modules-section {
    padding-block: 48px 42px;
  }
}

@media (max-width: 600px) {
  .main-nav {
    width: calc(100% - 20px);
    min-height: 58px;
    padding-block: 5px;
  }

  .hero {
    gap: 18px;
    padding-block: 22px 36px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3rem);
  }

  .hero-art {
    width: min(86vw, 340px);
    min-height: 270px;
  }

  .hero-art img {
    width: min(84%, 295px);
  }

  .speech-bubble {
    top: 0;
    right: 2%;
    width: clamp(112px, 22vw, 158px);
  }

  .japan-intro {
    padding-block: 36px;
    border-radius: 22px;
  }

  .modules-section {
    padding-block: 40px 34px;
  }

  .fact-card {
    padding: 18px;
  }

  .module-content {
    padding: 21px;
  }
}

@media (max-width: 340px) {
  .page-width {
    width: calc(100% - 20px);
  }

  .hero-art {
    width: min(88vw, 300px);
    min-height: 245px;
  }

  .hero-art img {
    width: min(82%, 260px);
  }

  .speech-bubble {
    right: 1%;
    width: clamp(106px, 22vw, 148px);
    font-size: 15px;
  }
}

/* Japanese landing: compact journey refinement */
.hero {
  min-height: 430px;
  gap: clamp(24px, 4vw, 48px);
  padding-block: 20px 32px;
}

.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;
}

.hero-art {
  width: min(100%, 410px);
  min-height: 350px;
}

.hero-art img {
  width: min(86%, 360px);
}

.japan-intro {
  padding-block: 42px;
  padding-inline: clamp(22px, 4vw, 48px);
}

.japan-intro .intro-heading {
  margin-bottom: 24px;
}

.japan-intro .intro-heading h2 {
  margin-bottom: 10px;
}

.fact-grid {
  gap: 14px;
}

.fact-card {
  padding: 17px;
}

.fact-card h3 {
  margin: 8px 0 6px;
}

.fact-card p {
  line-height: 1.5;
}

.modules-section {
  padding-block: 46px 38px;
}

.modules-section .section-heading {
  margin-bottom: 26px;
}

.module-grid {
  gap: 20px;
}

.module-card > img {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center top;
}

.module-content {
  padding: 22px;
}

.module-content h3 {
  margin: 13px 0 7px;
}

.module-content p {
  margin-bottom: 20px;
}

footer {
  padding-block: 6px 10px;
}

@media (max-width: 900px) {
  .hero {
    gap: 22px;
    padding-block: 18px 30px;
  }

  .hero-art {
    width: min(76vw, 390px);
    min-height: 320px;
  }

  .hero-art img {
    width: min(85%, 340px);
  }

  .japan-intro {
    padding-block: 38px;
  }

  .modules-section {
    padding-block: 42px 34px;
  }

  .module-content {
    padding: 21px;
  }
}

@media (max-width: 600px) {
  .hero {
    gap: 14px;
    padding-block: 18px 28px;
  }

  .hero-copy::before {
    top: -9px;
    left: 12%;
    width: 92px;
  }

  .hero-copy::after {
    top: -22px;
    left: calc(12% + 88px);
    font-size: 16px;
  }

  .hero-art {
    width: min(82vw, 315px);
    min-height: 230px;
  }

  .hero-art img {
    width: min(82%, 270px);
  }

  .speech-bubble {
    width: 150px;
    padding: 10px 13px;
    font-size: 15px;
  }

  .japan-intro {
    padding-block: 30px;
    padding-inline: 16px;
  }

  .japan-intro .intro-heading,
  .modules-section .section-heading {
    margin-bottom: 22px;
  }

  .fact-grid {
    gap: 12px;
  }

  .fact-card {
    padding: 16px;
  }

  .modules-section {
    padding-block: 36px 30px;
  }

  .module-card > img {
    aspect-ratio: 8 / 5;
  }

  .module-content {
    padding: 19px;
  }

  .module-content p {
    margin-bottom: 18px;
  }
}

@media (max-width: 340px) {
  .hero-art {
    width: min(84vw, 285px);
    min-height: 215px;
  }

  .hero-art img {
    width: min(80%, 245px);
  }

  .hero-copy::before {
    left: 9%;
  }

  .hero-copy::after {
    left: calc(9% + 88px);
  }
}

/* Japanese information section: layered navy hierarchy */
.japan-intro {
  background: #041b3f;
}

.japan-intro .fact-card {
  background: #07224b;
}

/* Japanese modules: seamless image-to-card transition */
.module-card > img {
  border-bottom: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 74%,
    rgba(0, 0, 0, .88) 82%,
    rgba(0, 0, 0, .38) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 74%,
    rgba(0, 0, 0, .88) 82%,
    rgba(0, 0, 0, .38) 94%,
    transparent 100%
  );
}

.module-step {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .74rem;
  letter-spacing: .11em;
}

.module-card:nth-child(1) > img {
  object-position: center top;
}

.module-card:nth-child(2) > img {
  object-position: center 48%;
}

.module-card:nth-child(3) > img {
  object-position: center 42%;
}

/* Japanese landing: final flow and readability refinement */
@media (min-width: 601px) {
  .hero {
    padding-bottom: 28px;
  }
}

.japan-intro {
  border-color: rgba(216, 168, 77, .25);
}

.fact-card {
  padding-block: 18px;
}

.fact-card p {
  line-height: 1.56;
}

.module-card > img {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    rgba(0, 0, 0, .9) 85%,
    rgba(0, 0, 0, .45) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    rgba(0, 0, 0, .9) 85%,
    rgba(0, 0, 0, .45) 95%,
    transparent 100%
  );
}

/* Japanese landing: premium finishing details */
.japan-intro {
  padding-block: 39px;
}

.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;
}

.modules-section .section-heading {
  margin-bottom: 12px;
}

.journey-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.3vw, 16px);
  margin: 0 0 20px;
  color: var(--amber-bright);
  font-size: clamp(.76rem, 1.1vw, .86rem);
  font-weight: 800;
  letter-spacing: .055em;
  text-align: center;
}

.journey-indicator span[aria-hidden="true"] {
  opacity: .58;
}

.module-card {
  position: relative;
}

a.module-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.module-card:focus-visible {
  border-color: rgba(230, 184, 92, .72);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .34), 0 0 0 3px rgba(255, 208, 113, .24);
  outline: none;
  transform: translateY(-4px);
}

.module-sparkles {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 16px;
  width: 35%;
  height: 24%;
  opacity: .2;
  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),
    radial-gradient(circle at 38% 78%, rgba(255, 208, 113, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 94% 82%, rgba(255, 224, 151, .78) 0 1.1px, transparent 2px);
}

.module-sparkles::before,
.module-sparkles::after {
  position: absolute;
  color: #ffe097;
  font-size: 9px;
  line-height: 1;
  content: "✦";
}

.module-sparkles::before {
  top: 38%;
  left: 27%;
}

.module-sparkles::after {
  right: 17%;
  bottom: 10%;
  font-size: 7px;
  opacity: .72;
}

@media (max-width: 900px) {
  .japan-intro {
    padding-block: 35px;
  }
}

@media (max-width: 600px) {
  .japan-intro {
    padding-block: 28px;
  }

  .journey-indicator {
    gap: 7px;
    margin-bottom: 18px;
    font-size: .72rem;
    letter-spacing: .025em;
  }

  .module-sparkles {
    top: 11px;
    right: 13px;
    opacity: .18;
  }
}

/* Japanese modules: subtle image-to-card gradient blend */
.module-image {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 8 / 5;
}

.module-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: none;
  mask-image: none;
}

.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, .2) 75%,
    rgba(5, 22, 50, .55) 90%,
    rgba(5, 22, 50, .9) 100%
  );
}

.module-card:nth-child(2) .module-image > img {
  object-position: center 48%;
}

.module-card:nth-child(3) .module-image > img {
  object-position: center 42%;
}

@media (max-width: 900px) {
  .module-image {
    width: auto;
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  .module-image {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }
}

/* Japanese landing: intentional mobile composition */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body,
  main,
  header,
  footer,
  section,
  nav,
  .page-width {
    box-sizing: border-box;
    max-width: 100%;
  }

  main {
    width: 100%;
    overflow: hidden;
  }

  .page-width,
  .main-nav {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .site-header {
    position: relative;
  }

  .main-nav {
    min-height: 62px;
    padding-block: 6px;
  }

  .brand,
  .experience-switcher,
  .flag-button {
    flex-shrink: 0;
  }

  .experience-switcher {
    max-width: calc(100% - 68px);
  }

  .hero {
    width: calc(100% - 32px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 15px;
    padding-block: 20px 26px;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 660px;
    min-width: 0;
    margin-inline: auto;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 13px;
    font-size: clamp(2.08rem, 9vw, 3.05rem);
    line-height: .98;
    overflow-wrap: normal;
  }

  .hero-copy > p:not(.eyebrow) {
    width: auto;
    max-width: min(90%, 590px);
    margin: 0 auto;
    padding-inline: 4px;
    font-size: clamp(.98rem, 3.1vw, 1.08rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .hero-copy::before {
    left: 50%;
    width: min(112px, 34vw);
    transform: translateX(-50%) rotate(-8deg);
  }

  .hero-copy::after {
    left: calc(50% + min(54px, 17vw));
  }

  .hero-art {
    justify-self: center;
    width: min(78vw, 330px);
    max-width: 100%;
    min-height: clamp(200px, 57vw, 260px);
    margin-inline: auto;
  }

  .hero-art img {
    width: min(80%, 265px);
    max-height: 90%;
    object-fit: contain;
  }

  .speech-bubble {
    top: 2%;
    right: 3%;
    width: min(145px, 44vw);
    max-width: calc(100% - 24px);
    padding: 9px 11px;
    font-size: 14px;
    transform: rotate(2deg);
  }

  .speech-bubble small {
    font-size: 9px;
  }

  .japan-intro {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 26px 18px;
    border-radius: 22px;
  }

  .intro-heading,
  .section-heading {
    width: 100%;
    max-width: 100%;
  }

  .japan-intro .intro-heading {
    margin-bottom: 18px;
  }

  .intro-heading h2,
  .section-heading h2 {
    overflow-wrap: anywhere;
  }

  .fact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .fact-card {
    min-width: 0;
  }

  .modules-section {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding-block: 38px 30px;
  }

  .journey-indicator {
    flex-wrap: wrap;
  }

  .module-grid {
    width: 100%;
    max-width: 560px;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto;
  }

  .module-card {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
  }

  .module-image {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }

  .module-content {
    width: 100%;
  }

  .primary-button {
    min-height: 52px;
  }
}

@media (max-width: 390px) {
  .page-width,
  .main-nav,
  .hero,
  .japan-intro,
  .modules-section {
    width: calc(100% - 24px);
  }

  .hero {
    gap: 12px;
    padding-block: 16px 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.3rem);
  }

  .hero-art {
    width: min(76vw, 292px);
    min-height: clamp(190px, 56vw, 225px);
  }

  .hero-art img {
    width: min(79%, 238px);
  }

  .speech-bubble {
    right: 2%;
    width: min(137px, 43vw);
    padding: 8px 10px;
    font-size: 13px;
  }

  .japan-intro {
    padding: 24px 16px;
  }

  .modules-section {
    padding-block: 34px 28px;
  }
}

/* Japanese landing: thematic fact-card watermarks and clearer mascot greeting */
.fact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.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);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.fact-card:nth-child(1)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round'%3E%3Ccircle cx='50' cy='50' r='19'/%3E%3Cpath d='M50 5v17M50 78v17M5 50h17M78 50h17M18 18l12 12M70 70l12 12M82 18L70 30M30 70L18 82'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='6' stroke-linecap='round'%3E%3Ccircle cx='50' cy='50' r='19'/%3E%3Cpath d='M50 5v17M50 78v17M5 50h17M78 50h17M18 18l12 12M70 70l12 12M82 18L70 30M30 70L18 82'/%3E%3C/g%3E%3C/svg%3E");
}

.fact-card:nth-child(2)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 22h25c9 0 15 6 15 15v48c-4-9-10-13-20-13H10zM90 22H65c-9 0-15 6-15 15v48c4-9 10-13 20-13h20z'/%3E%3Cpath d='M20 36h17M20 47h17M63 36h17M63 47h17'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 22h25c9 0 15 6 15 15v48c-4-9-10-13-20-13H10zM90 22H65c-9 0-15 6-15 15v48c4-9 10-13 20-13h20z'/%3E%3Cpath d='M20 36h17M20 47h17M63 36h17M63 47h17'/%3E%3C/g%3E%3C/svg%3E");
}

.fact-card:nth-child(3)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='black' d='M33 28c-8-5-13-13-13-24 8 5 13 11 15 19 2-10 7-17 15-21-1 12-5 21-12 27-8 5-13 14-13 27v17c0 15 10 25 25 25s25-10 25-25V56c0-13-5-22-13-27-7-6-11-15-12-27 8 4 13 11 15 21 2-8 7-14 15-19 0 11-5 19-13 24l11 2-6 14-11 5v22c0 6-5 11-11 11s-11-5-11-11V49l-11-5-6-14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='black' d='M33 28c-8-5-13-13-13-24 8 5 13 11 15 19 2-10 7-17 15-21-1 12-5 21-12 27-8 5-13 14-13 27v17c0 15 10 25 25 25s25-10 25-25V56c0-13-5-22-13-27-7-6-11-15-12-27 8 4 13 11 15 21 2-8 7-14 15-19 0 11-5 19-13 24l11 2-6 14-11 5v22c0 6-5 11-11 11s-11-5-11-11V49l-11-5-6-14z'/%3E%3C/svg%3E");
}

.fact-card:nth-child(4)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg fill='none' stroke='black' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M4 67C25 22 43 22 61 61s34 35 55-4'/%3E%3Cpath d='M5 42c20-30 38-29 56 2s35 31 55 1'/%3E%3Cpath d='M13 84h94'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg fill='none' stroke='black' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M4 67C25 22 43 22 61 61s34 35 55-4'/%3E%3Cpath d='M5 42c20-30 38-29 56 2s35 31 55 1'/%3E%3Cpath d='M13 84h94'/%3E%3C/g%3E%3C/svg%3E");
}

.speech-bubble {
  top: -4%;
  right: -1%;
  width: clamp(116px, 14vw, 170px);
  max-width: 46%;
  padding: 0 18%;
  font-size: 18px;
  transform: rotate(3deg);
}

.speech-bubble .bubble-local,
.speech-bubble .bubble-translation {
  display: block;
  text-align: center;
}

.speech-bubble .bubble-translation {
  margin-top: 2px;
  color: #5F6B7A;
  font: 700 10px/1.1 "Nunito", sans-serif;
}

@media (max-width: 768px) {
  .fact-card::after {
    right: -1%;
    bottom: -4%;
    width: min(36%, 138px);
  }

  .speech-bubble {
    top: -4%;
    right: 1%;
    width: clamp(106px, 34vw, 132px);
    max-width: calc(100% - 24px);
    padding: 0 18%;
    font-size: 16px;
    transform: rotate(2deg);
  }

  .speech-bubble small {
    margin-top: 3px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .speech-bubble {
    top: -5%;
    right: 0;
    width: clamp(100px, 34vw, 125px);
    max-width: calc(100% - 20px);
    padding: 0 18%;
    font-size: 15px;
  }
}

/* Japanese header: match the English Learners navigation system */
.site-header {
  position: relative;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.main-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  padding-block: 7px;
}

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

.site-header .brand:hover,
.site-header .brand:focus-visible {
  background: #08244d;
  border-color: #e6b85c;
  box-shadow: 0 0 15px rgba(216, 168, 77, .18);
  transform: scale(1.04);
}

.site-header .brand:focus-visible {
  outline: 2px solid rgba(230, 184, 92, .42);
  outline-offset: 3px;
}

.site-header .brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: none;
}

.experience-switcher {
  gap: 12px;
}

.flag-button {
  width: 42px;
  height: 42px;
  background: #051632;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.flag-button:hover,
.flag-button:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(216, 168, 77, .2);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .main-nav {
    width: calc(100% - 20px);
    min-height: 58px;
    padding-block: 7px;
  }
}

@media (max-width: 540px) {
  .site-header .brand {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .flag-button {
    width: 36px;
    height: 36px;
  }
}

/* Japanese-style country intro cards */
.japan-intro {
  margin-block: clamp(36px, 7vw, 84px);
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 12% 10%, rgba(118, 179, 255, .26), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(232, 241, 255, .9));
  border: 2px solid rgba(82, 139, 216, .34);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(7, 31, 77, .12);
}

.japan-intro .intro-heading {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(221, 235, 255, .78));
  border: 1px solid rgba(82, 139, 216, .32);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 34px rgba(7, 31, 77, .08);
}

.japan-intro .fact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(235, 243, 255, .92));
  border: 1px solid rgba(82, 139, 216, .32);
  box-shadow: 0 18px 42px rgba(7, 31, 77, .1);
}

.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #16498f;
  background: linear-gradient(135deg, #fff8d7, #dfeaff);
}

.fact-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Match the StarPath navy-and-amber country fact treatment */
.japan-intro {
  padding-block: 39px;
  padding-inline: clamp(24px, 5vw, 64px);
  background: linear-gradient(145deg, rgba(5, 22, 50, .92), rgba(7, 29, 64, .86));
  border: 1px solid rgba(216, 168, 77, .25);
  border-radius: 36px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

.japan-intro .intro-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.japan-intro .intro-heading h2,
.japan-intro .fact-card h3 {
  color: #fff;
}

.japan-intro .intro-heading > p:last-child,
.japan-intro .fact-card p {
  color: var(--muted);
}

.japan-intro .fact-card {
  padding-block: 18px;
  background: rgba(3, 23, 53, .76);
  border: 1px solid rgba(216, 168, 77, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.japan-intro .fact-card:hover {
  border-color: rgba(216, 168, 77, .42);
}

.fact-icon {
  width: 32px;
  height: 32px;
  color: var(--amber-bright);
  background: transparent;
  border-radius: 0;
}

.fact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}

.module-card.coming-soon-card {
  opacity: 0.78;
}

.module-card.coming-soon-card .primary-button {
  cursor: not-allowed;
  filter: saturate(0.75);
}

.module-image-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(254, 204, 0, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(8, 42, 96, 0.92), rgba(72, 42, 122, 0.86));
  color: #fff7df;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


