/* =========================================================
   FluentPath English Academy — Responsive Landing Page
   ========================================================= */

:root {
  --navy-950: #071827;
  --navy-900: #0c2135;
  --navy-850: #102a43;
  --navy-800: #163a5d;
  --blue-700: #1f55d5;
  --blue-600: #2f6bff;
  --blue-500: #4a7cff;
  --blue-100: #eaf0ff;
  --orange-500: #ff9f43;
  --orange-100: #fff0dc;
  --green-600: #1e9b76;
  --green-100: #def8ef;
  --purple-600: #7b61d1;
  --purple-100: #eee9ff;
  --cyan-600: #1687a7;
  --cyan-100: #dcf5fa;
  --rose-600: #d95d7d;
  --rose-100: #ffe6ed;
  --ink: #142438;
  --muted: #607086;
  --muted-2: #8996a6;
  --line: #dce4ed;
  --line-light: #e9eef4;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-blue: #f1f5ff;
  --accent: #ffb45a;
  --success: #19a974;
  --danger: #d9485f;
  --shadow-sm: 0 8px 24px rgba(10, 32, 55, 0.08);
  --shadow-md: 0 18px 50px rgba(10, 32, 55, 0.12);
  --shadow-lg: 0 28px 80px rgba(10, 32, 55, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 78px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  margin-top: 0;
}

ul,
ol {
  padding-left: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: var(--blue-600);
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 15px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-light {
  background: var(--surface-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 23px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.eyebrow.light {
  color: #90b0ff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.method-copy h2,
.story-heading h2,
.faq-heading h2,
.contact-copy h2 {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.section-heading p,
.section-intro,
.story-heading > p,
.faq-heading > p,
.contact-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(220, 228, 237, 0.85);
  box-shadow: 0 10px 35px rgba(11, 35, 60, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-850);
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--blue-600);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.primary-nav > a {
  position: relative;
  color: #40536a;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition);
}

.primary-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.primary-nav > a:hover,
.primary-nav > a.active {
  color: var(--blue-600);
}

.primary-nav > a:hover::after,
.primary-nav > a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy-850);
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-sm {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.button-primary {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 10px 26px rgba(47, 107, 255, 0.25);
}

.button-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 14px 32px rgba(47, 107, 255, 0.32);
}

.button-secondary {
  color: var(--blue-600);
  background: var(--blue-100);
}

.button-secondary:hover {
  background: #dfe8ff;
}

.button-ghost {
  color: var(--navy-850);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: #bfcbd9;
  box-shadow: var(--shadow-sm);
}

.button-accent {
  color: var(--navy-950);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(255, 180, 90, 0.22);
}

.button-accent:hover {
  background: #ffc171;
  box-shadow: 0 15px 34px rgba(255, 180, 90, 0.3);
}

.button-block {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 850px;
  padding-top: calc(var(--header-height) + 85px);
  padding-bottom: 56px;
  background:
    radial-gradient(circle at 75% 25%, rgba(47, 107, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #f9fbff 0%, #ffffff 70%);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-orb-one {
  top: 130px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: rgba(47, 107, 255, 0.07);
}

.hero-orb-two {
  bottom: 130px;
  left: -140px;
  width: 290px;
  height: 290px;
  background: rgba(255, 180, 90, 0.08);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--navy-900);
  font-size: clamp(3rem, 5.8vw, 5.15rem);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--blue-600);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 33px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proof-avatars {
  display: flex;
  padding-left: 8px;
}

.proof-avatars span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  place-items: center;
  color: #fff;
  background: var(--navy-850);
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
}

.proof-avatars span:nth-child(2) { background: var(--blue-600); }
.proof-avatars span:nth-child(3) { background: var(--orange-500); }
.proof-avatars span:nth-child(4) { background: var(--green-600); }

.stars {
  color: #ffad33;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.hero-proof p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-proof p strong {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  width: 500px;
  height: 500px;
  background: linear-gradient(145deg, #dbe6ff, #edf2ff 55%, #e4f3ff);
  border-radius: 44% 56% 56% 44% / 48% 42% 58% 52%;
  content: "";
  transform: rotate(-6deg);
  animation: blob 12s ease-in-out infinite;
}

@keyframes blob {
  0%, 100% { border-radius: 44% 56% 56% 44% / 48% 42% 58% 52%; transform: rotate(-6deg) scale(1); }
  50% { border-radius: 56% 44% 48% 52% / 42% 55% 45% 58%; transform: rotate(2deg) scale(1.035); }
}

.visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.main-dashboard {
  width: 440px;
  padding: 27px;
  border-radius: 24px;
  transform: rotate(1.5deg);
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}

.dashboard-top > div {
  display: grid;
  gap: 4px;
}

.mini-label {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.dashboard-top strong {
  color: var(--navy-900);
  font-size: 1.06rem;
}

.status-pill {
  padding: 6px 10px;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
}

.progress-ring-wrap {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 26px 6px 25px;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  place-items: center;
  background: conic-gradient(var(--blue-600) 0 72%, #e8edf4 72% 100%);
  border-radius: 50%;
}

.progress-ring::before {
  position: absolute;
  width: 78px;
  height: 78px;
  background: #fff;
  border-radius: 50%;
  content: "";
}

.progress-ring span {
  position: relative;
  z-index: 1;
  color: var(--navy-900);
  font-size: 1.55rem;
  font-weight: 800;
}

.progress-ring small {
  font-size: 0.75rem;
}

.progress-copy p {
  margin-bottom: 3px;
  color: var(--navy-850);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-copy small {
  color: var(--muted);
}

.lesson-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  background: var(--surface-blue);
  border: 1px solid #e0e8fb;
  border-radius: 15px;
}

.lesson-date {
  display: grid;
  width: 49px;
  height: 52px;
  place-content: center;
  color: #fff;
  background: var(--blue-600);
  border-radius: 10px;
  text-align: center;
  line-height: 1;
}

.lesson-date strong {
  font-size: 1rem;
}

.lesson-date span {
  margin-top: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lesson-info {
  display: grid;
  min-width: 0;
}

.lesson-info > span,
.lesson-info small {
  color: var(--muted);
  font-size: 0.64rem;
}

.lesson-info strong {
  overflow: hidden;
  margin: 2px 0;
  color: var(--navy-900);
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-card > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue-600);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(47, 107, 255, 0.12);
  cursor: pointer;
}

.lesson-card > button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding-top: 19px;
}

.dashboard-metrics > div {
  display: grid;
  padding: 12px 10px;
  background: var(--surface-soft);
  border-radius: 10px;
  text-align: center;
}

.dashboard-metrics span {
  color: var(--muted-2);
  font-size: 0.58rem;
}

.dashboard-metrics strong {
  margin-top: 2px;
  color: var(--navy-850);
  font-size: 0.86rem;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(223, 231, 241, 0.85);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.teacher-float {
  top: 40px;
  left: -8px;
  gap: 10px;
  width: 245px;
  padding: 13px;
  animation: float-y 5s ease-in-out infinite;
}

.teacher-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f7a978, #b96555);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.teacher-float > div {
  display: grid;
  min-width: 0;
}

.teacher-float strong {
  overflow: hidden;
  color: var(--navy-850);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-float small {
  color: var(--muted);
  font-size: 0.57rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  background: #25c58a;
  border: 2px solid #dff8ef;
  border-radius: 50%;
}

.score-float {
  right: -28px;
  bottom: 52px;
  gap: 10px;
  padding: 14px 18px;
  animation: float-y 5.7s ease-in-out infinite reverse;
}

.score-float svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.score-float > div {
  display: grid;
}

.score-float span {
  color: var(--muted);
  font-size: 0.63rem;
}

.score-float strong {
  color: var(--green-600);
  font-size: 1rem;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.trust-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 62px;
  padding-top: 34px;
  border-top: 1px solid var(--line-light);
}

.trust-bar > span {
  color: var(--muted-2);
  font-size: 0.75rem;
  white-space: nowrap;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #9aa6b5;
}

.trust-items strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Programs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-button {
  padding: 10px 17px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-button:hover {
  color: var(--blue-600);
  border-color: #b9cbf8;
  transform: translateY(-1px);
}

.filter-button.active {
  color: #fff;
  background: var(--navy-850);
  border-color: var(--navy-850);
}

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

.course-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(12, 36, 60, 0.045);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity 180ms ease;
}

.course-card:hover {
  border-color: #d4deeb;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.course-card.is-hiding {
  opacity: 0;
  transform: scale(0.97);
}

.course-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
}

.course-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-blue { color: var(--blue-600); background: var(--blue-100); }
.icon-orange { color: #db7a1f; background: var(--orange-100); }
.icon-green { color: var(--green-600); background: var(--green-100); }
.icon-purple { color: var(--purple-600); background: var(--purple-100); }
.icon-cyan { color: var(--cyan-600); background: var(--cyan-100); }
.icon-rose { color: var(--rose-600); background: var(--rose-100); }

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.course-tags span {
  padding: 4px 8px;
  color: var(--blue-600);
  background: var(--surface-blue);
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 750;
}

.course-card h3 {
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.course-card > p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.course-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 23px;
  list-style: none;
}

.course-card li {
  position: relative;
  padding-left: 18px;
  color: #526579;
  font-size: 0.82rem;
}

.course-card li::before {
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--blue-600);
  border-radius: 50%;
  content: "";
}

.course-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  color: var(--blue-600);
  font-size: 0.86rem;
  font-weight: 750;
}

.course-card > a span {
  transition: transform var(--transition);
}

.course-card > a:hover span {
  transform: translateX(4px);
}

/* Method */
.method-section {
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 95px;
  align-items: center;
}

.method-image-card {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
}

.image-scene {
  position: relative;
  height: 530px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(145deg, #183c61, #0b2138);
  background-size: 32px 32px, 32px 32px, auto;
  border-radius: 20px;
  overflow: hidden;
}

.image-scene::before {
  position: absolute;
  top: -130px;
  right: -110px;
  width: 340px;
  height: 340px;
  background: rgba(74, 124, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.scene-board {
  position: absolute;
  top: 65px;
  right: 40px;
  left: 40px;
  padding: 29px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.scene-badge {
  display: inline-flex;
  padding: 6px 9px;
  color: #bcd0ff;
  background: rgba(47, 107, 255, 0.25);
  border-radius: 5px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.scene-board h3 {
  margin: 17px 0 19px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.scene-lines {
  display: grid;
  gap: 8px;
}

.scene-lines span {
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
}

.scene-lines span:nth-child(1) { width: 88%; }
.scene-lines span:nth-child(2) { width: 72%; }
.scene-lines span:nth-child(3) { width: 55%; }

.scene-controls {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.scene-controls i {
  width: 29px;
  height: 29px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
}

.scene-controls i:last-child {
  background: #f06969;
}

.scene-person {
  position: absolute;
  right: 70px;
  bottom: -18px;
  width: 180px;
  height: 230px;
}

.person-head {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 82px;
  height: 98px;
  background: linear-gradient(145deg, #f4b68c, #cf7e62);
  border: 8px solid #3b2522;
  border-bottom-width: 3px;
  border-radius: 45% 45% 48% 48%;
  transform: translateX(-50%);
}

.person-head::before {
  position: absolute;
  top: -18px;
  left: -7px;
  width: 81px;
  height: 45px;
  background: #2a1b1a;
  border-radius: 55% 55% 30% 30%;
  content: "";
  transform: rotate(-4deg);
}

.person-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 176px;
  height: 160px;
  background: linear-gradient(145deg, #527cf1, #244bb7);
  border-radius: 70px 70px 15px 15px;
  transform: translateX(-50%);
}

.person-body::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 46px;
  height: 70px;
  background: #f0ad84;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}

.feedback-card {
  position: absolute;
  right: -38px;
  bottom: 48px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

.feedback-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 11px;
}

.feedback-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-card > div:last-child {
  display: grid;
}

.feedback-card span {
  color: var(--muted);
  font-size: 0.65rem;
}

.feedback-card strong {
  color: var(--navy-850);
  font-size: 0.8rem;
}

.method-copy .section-intro {
  margin: 21px 0 35px;
}

.method-list {
  display: grid;
  gap: 0;
  margin: 0;
  list-style: none;
}

.method-list li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 0 0 26px;
}

.method-list li:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: 5px;
  left: 26px;
  width: 1px;
  background: var(--line);
  content: "";
}

.method-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 800;
}

.method-list h3 {
  margin: 2px 0 4px;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.method-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* Stats */
.stats-section {
  padding: 55px 0;
  color: #fff;
  background: var(--navy-900);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 10px 30px;
  text-align: center;
}

.stat:not(:last-child)::after {
  position: absolute;
  top: 9px;
  right: 0;
  bottom: 9px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.stat strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat span {
  color: #9fb3c7;
  font-size: 0.78rem;
}

/* Teachers */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.teacher-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(12, 36, 60, 0.045);
  transition: transform var(--transition), box-shadow var(--transition);
}

.teacher-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.teacher-portrait {
  position: relative;
  display: grid;
  height: 270px;
  place-items: center;
  overflow: hidden;
}

.teacher-portrait::before,
.teacher-portrait::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.teacher-portrait::before {
  width: 230px;
  height: 230px;
  background: rgba(255,255,255,.26);
}

.teacher-portrait::after {
  right: -50px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  background: rgba(255,255,255,.18);
}

.portrait-one { background: linear-gradient(145deg, #ffd8bc, #e59371); }
.portrait-two { background: linear-gradient(145deg, #bad0ff, #6e91e7); }
.portrait-three { background: linear-gradient(145deg, #c7eadf, #72baa2); }

.teacher-portrait > span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  color: rgba(255,255,255,.95);
  background: rgba(16, 42, 67, 0.78);
  border: 8px solid rgba(255,255,255,.4);
  border-radius: 50%;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 40px rgba(10, 31, 54, 0.18);
}

.portrait-tag {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  color: var(--navy-850);
  background: rgba(255,255,255,.87);
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.teacher-detail {
  padding: 24px;
}

.teacher-detail > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-detail h3 {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: 1.13rem;
}

.teacher-detail > div:first-child > span {
  padding-top: 3px;
  color: var(--muted-2);
  font-size: 0.68rem;
  white-space: nowrap;
}

.teacher-detail p {
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-pills span {
  padding: 5px 8px;
  color: #51647b;
  background: var(--surface-soft);
  border: 1px solid var(--line-light);
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 650;
}

/* Stories */
.story-section {
  background:
    radial-gradient(circle at 10% 30%, rgba(47, 107, 255, 0.18), transparent 28%),
    linear-gradient(145deg, var(--navy-950), var(--navy-850));
  overflow: hidden;
}

.story-section::after {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.018), 0 0 0 110px rgba(255,255,255,.012);
  content: "";
}

.story-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
  align-items: center;
}

.story-heading h2 {
  color: #fff;
}

.story-heading > p {
  margin: 20px 0 31px;
  color: #a9b9c9;
}

.slider-controls {
  display: flex;
  gap: 9px;
}

.slider-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.slider-button:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

.slider-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonial-shell {
  position: relative;
  padding: 42px 44px 25px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.testimonial {
  animation: testimonial-in 350ms ease;
}

@keyframes testimonial-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.quote-mark {
  height: 42px;
  color: var(--blue-600);
  font-family: Georgia, serif;
  font-size: 4.4rem;
  line-height: 0.9;
}

.testimonial blockquote {
  margin: 18px 0 34px;
  color: var(--navy-850);
  font-size: 1.13rem;
  font-weight: 520;
  line-height: 1.9;
}

.student-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 23px;
  border-top: 1px solid var(--line-light);
}

.student-avatar {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
}

.avatar-a { background: linear-gradient(145deg, #6c8ff2, #3556b8); }
.avatar-b { background: linear-gradient(145deg, #e58b86, #aa4f58); }
.avatar-c { background: linear-gradient(145deg, #64baa1, #26775f); }

.student-row > div:nth-child(2) {
  display: grid;
}

.student-row > div:nth-child(2) strong {
  color: var(--navy-900);
  font-size: 0.86rem;
}

.student-row > div:nth-child(2) span,
.student-result span {
  color: var(--muted-2);
  font-size: 0.65rem;
}

.student-result {
  display: grid;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.student-result strong {
  color: var(--blue-600);
  font-size: 0.9rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #d6dde7;
  border-radius: 50%;
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.slider-dots button.active {
  width: 24px;
  background: var(--blue-600);
  border-radius: 99px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 100px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.faq-heading > p {
  margin: 20px 0 28px;
}

.faq-list {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(12, 36, 60, 0.045);
}

.faq-item:not(:last-child) {
  border-bottom: 1px solid var(--line-light);
}

.faq-item h3 {
  margin: 0;
}

.faq-item h3 button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 25px;
  color: var(--navy-850);
  background: transparent;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
}

.faq-item h3 button > span {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.faq-item h3 button > span::before,
.faq-item h3 button > span::after {
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 99px;
  content: "";
  transition: transform var(--transition);
}

.faq-item h3 button > span::after {
  transform: rotate(90deg);
}

.faq-item.open h3 button > span::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 54px 25px 25px;
  animation: faq-open 240ms ease;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact */
.contact-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 70px;
  padding: 58px;
  background:
    radial-gradient(circle at 0 100%, rgba(47, 107, 255, 0.2), transparent 34%),
    linear-gradient(135deg, var(--navy-950), #123d65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-copy {
  padding: 12px 0;
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy > p {
  margin: 20px 0 30px;
  color: #b5c4d3;
}

.contact-copy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #d9e3ec;
  list-style: none;
}

.contact-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.contact-copy li svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  color: var(--navy-950);
  background: var(--accent);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-form {
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.17);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-field {
  position: relative;
  display: grid;
  margin-bottom: 15px;
}

.form-field label {
  margin-bottom: 7px;
  color: #344a60;
  font-size: 0.74rem;
  font-weight: 750;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  font-size: 0.84rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field select {
  padding-right: 35px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23607086' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.form-field input::placeholder {
  color: #a0acb9;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.11);
}

.form-field.invalid input,
.form-field.invalid select {
  background-color: #fff9fa;
  border-color: var(--danger);
}

.field-error {
  min-height: 16px;
  margin-top: 4px;
  color: var(--danger);
  font-size: 0.65rem;
  line-height: 1.3;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1.45;
}

.consent-check input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--blue-600);
}

.consent-error {
  display: block;
  min-height: 18px;
  margin-top: 2px;
}

.form-note {
  display: block;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.65rem;
  text-align: center;
}

/* Footer */
.site-footer {
  color: #bdc9d5;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  padding-top: 70px;
  padding-bottom: 55px;
}

.brand-footer {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #7f94a8;
}

.footer-brand > p {
  max-width: 290px;
  margin: 21px 0 0;
  color: #8195a8;
  font-size: 0.82rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.82rem;
}

.footer-links a,
.footer-links span {
  color: #8195a8;
  font-size: 0.76rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 25px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #667c90;
  font-size: 0.68rem;
}

.footer-bottom > div {
  display: flex;
  gap: 18px;
}

.footer-bottom .icp-link {
  color: inherit;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(189, 201, 213, .35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-bottom a:hover,
.footer-bottom .icp-link:focus-visible {
  color: #d5dee7;
}

.footer-bottom .icp-link:hover,
.footer-bottom .icp-link:focus-visible {
  text-decoration-color: currentColor;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--navy-850);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-600);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 25, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  padding: 35px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow-y: auto;
  transform: translateY(18px) scale(0.98);
  transition: transform 250ms ease;
}

.modal.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.modal-close:hover {
  color: var(--navy-900);
  background: #e9eef4;
  transform: rotate(5deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.modal-dialog h2 {
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.modal-dialog > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal-consent {
  margin-top: 2px;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 3000;
  right: 25px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  padding: 14px 18px;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  color: var(--navy-950);
  background: #6fe0b5;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast span {
  font-size: 0.8rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  :root {
    --container: 960px;
  }

  .primary-nav {
    gap: 20px;
  }

  .primary-nav > a {
    font-size: 0.84rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 35px;
  }

  .main-dashboard {
    width: 400px;
  }

  .teacher-float {
    left: -3px;
  }

  .score-float {
    right: -7px;
  }

  .course-card {
    padding: 24px;
  }

  .method-grid {
    gap: 60px;
  }

  .feedback-card {
    right: -18px;
  }

  .faq-layout {
    gap: 65px;
  }

  .contact-card {
    gap: 45px;
    padding: 45px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a {
    padding: 12px 13px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .primary-nav > a::after {
    display: none;
  }

  .primary-nav > a:hover,
  .primary-nav > a.active {
    background: var(--surface-blue);
  }

  .primary-nav .button {
    margin-top: 7px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 710px;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .main-dashboard {
    width: min(80%, 440px);
  }

  .teacher-float {
    left: 2%;
  }

  .score-float {
    right: 2%;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trust-items {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .method-visual {
    order: 2;
  }

  .method-copy {
    order: 1;
  }

  .method-image-card {
    max-width: 570px;
  }

  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .story-heading {
    max-width: 630px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .faq-heading {
    position: static;
    max-width: 630px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 620px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    font-size: 0.5rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 55px);
    padding-bottom: 45px;
  }

  .hero-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-proof {
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 510px;
  }

  .hero-visual::before {
    width: 430px;
    height: 430px;
  }

  .main-dashboard {
    width: min(95%, 410px);
    padding: 20px;
    transform: rotate(0.5deg);
  }

  .teacher-float {
    top: 5px;
    left: -2px;
    width: 220px;
  }

  .score-float {
    right: -2px;
    bottom: 20px;
  }

  .progress-ring-wrap {
    gap: 16px;
  }

  .progress-ring {
    width: 88px;
    height: 88px;
  }

  .progress-ring::before {
    width: 68px;
    height: 68px;
  }

  .dashboard-metrics {
    gap: 6px;
  }

  .dashboard-metrics > div {
    padding: 10px 5px;
  }

  .trust-items {
    gap: 22px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
  }

  .section-heading h2,
  .method-copy h2,
  .story-heading h2,
  .faq-heading h2,
  .contact-copy h2 {
    font-size: 2.25rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .image-scene {
    height: 440px;
  }

  .scene-board {
    top: 45px;
    right: 24px;
    left: 24px;
    padding: 22px;
  }

  .scene-person {
    right: 40px;
    transform: scale(.88);
    transform-origin: bottom right;
  }

  .feedback-card {
    right: 8px;
    bottom: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .teacher-portrait {
    height: 245px;
  }

  .testimonial-shell {
    padding: 34px 25px 23px;
  }

  .testimonial blockquote {
    font-size: 1rem;
    line-height: 1.8;
  }

  .student-row {
    grid-template-columns: auto 1fr;
  }

  .student-result {
    grid-column: 1 / -1;
    padding: 13px 0 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
    text-align: left;
  }

  .contact-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .contact-card {
    width: min(calc(100% - 20px), var(--container));
    gap: 35px;
    padding: 32px 20px 20px;
    border-radius: 22px;
  }

  .lead-form {
    padding: 22px 17px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    padding-top: 55px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-dialog {
    padding: 30px 20px 24px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

@media (max-width: 450px) {
  .hero-visual {
    min-height: 500px;
    margin-top: -8px;
  }

  .main-dashboard {
    width: 100%;
    padding: 17px;
  }

  .dashboard-top strong {
    font-size: 0.92rem;
  }

  .teacher-float {
    top: 0;
    left: 5px;
    width: 205px;
    padding: 10px;
  }

  .score-float {
    right: 4px;
    bottom: 12px;
    padding: 11px 13px;
  }

  .score-float svg {
    width: 30px;
    height: 30px;
  }

  .lesson-card {
    gap: 9px;
    padding: 11px;
  }

  .lesson-info strong {
    max-width: 170px;
  }

  .progress-copy p {
    font-size: 0.82rem;
  }

  .progress-copy small {
    font-size: 0.7rem;
  }

  .dashboard-metrics span {
    font-size: 0.52rem;
  }

  .dashboard-metrics strong {
    font-size: 0.76rem;
  }

  .image-scene {
    height: 390px;
  }

  .scene-board h3 {
    font-size: 1.45rem;
  }

  .scene-person {
    right: 25px;
    transform: scale(.77);
  }

  .feedback-card {
    right: 3px;
    bottom: 20px;
    padding: 12px;
  }

  .feedback-icon {
    width: 35px;
    height: 35px;
  }

  .method-list li {
    grid-template-columns: 46px 1fr;
    gap: 15px;
  }

  .method-number {
    width: 46px;
    height: 46px;
  }

  .method-list li:not(:last-child)::after {
    top: 41px;
    left: 22px;
  }

  .stat {
    padding: 8px 12px;
  }

  .faq-item h3 button {
    padding: 21px 18px;
  }

  .faq-answer {
    padding: 0 38px 22px 18px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
