:root {
  color-scheme: light;
  --bg: #fffaf3;
  --bg-soft: #fff4e6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #fff7ed;
  --text: #222034;
  --muted: #686174;
  --line: rgba(58, 45, 69, 0.12);
  --line-strong: rgba(58, 45, 69, 0.20);
  --primary: #7c3aed;
  --primary-deep: #5b21b6;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #22c55e;
  --cyan: #06b6d4;
  --header: rgba(255, 250, 243, 0.84);
  --shadow: 0 28px 80px rgba(74, 47, 83, 0.16);
  --shadow-soft: 0 14px 38px rgba(74, 47, 83, 0.10);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --max: 1240px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11101c;
  --bg-soft: #191627;
  --surface: rgba(31, 28, 46, 0.84);
  --surface-solid: #201d30;
  --surface-soft: #2a243d;
  --text: #fbf7ff;
  --muted: #b8afc5;
  --line: rgba(239, 226, 255, 0.12);
  --line-strong: rgba(239, 226, 255, 0.22);
  --primary: #c4b5fd;
  --primary-deep: #a78bfa;
  --pink: #f9a8d4;
  --orange: #fdba74;
  --yellow: #fde68a;
  --green: #86efac;
  --cyan: #67e8f9;
  --header: rgba(17, 16, 28, 0.86);
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 7%, rgba(250, 204, 21, 0.13), transparent 25rem),
    radial-gradient(circle at 90% 22%, rgba(236, 72, 153, 0.11), transparent 27rem),
    radial-gradient(circle at 50% 65%, rgba(6, 182, 212, 0.06), transparent 36rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

button, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.showcase-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.header-inner, .section-shell, .showcase-footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand, .header-actions, .editor-link, .language-select-button,
.language-select-option, .hero-tools, .footer-brand, .showcase-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 39px;
  height: 39px;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.24);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 1.08rem; }
.brand-mode {
  padding: 4px 9px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.09);
  color: var(--pink);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions { gap: 10px; }
.editor-link {
  gap: 7px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}
.editor-link:hover { color: var(--primary); }
.language-select-wrap { position: relative; display: inline-flex; }
.language-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.language-select-button, .theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(32, 22, 41, 0.05);
  cursor: pointer;
}
.language-select-button {
  min-width: 152px;
  max-width: 205px;
  gap: 9px;
  padding: 8px 11px;
}
.language-select-flag {
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.13);
}
.language-select-button-label, .language-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 750;
}
.language-select-arrow {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.58;
}
.language-select-menu {
  position: absolute;
  z-index: 180;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(310px, calc(100vw - 28px));
  max-height: min(510px, calc(100vh - 100px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.language-select-menu[hidden] { display: none; }
.language-select-option {
  width: 100%;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}
.language-select-option:hover, .language-select-option.is-active,
.language-select-option[aria-selected="true"] { background: var(--surface-soft); color: var(--primary); }
.theme-toggle { width: 42px; padding: 0; font-size: 1.08rem; }

.language-select-button:focus-visible, .theme-toggle:focus-visible, .button:focus-visible,
.locale-cloud button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.36);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  min-height: 760px;
  padding-block: 82px 88px;
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { color: var(--orange); font-size: 1.15rem; }
h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.hero-lead {
  max-width: 650px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.23rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px) rotate(-0.4deg); }
.button-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.25);
}
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.hero-tools { flex-wrap: wrap; gap: 9px; margin: 29px 0 0; padding: 0; list-style: none; }
.hero-tools li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
}
.hero-tools li span:first-child { color: var(--pink); }
.hero-visual { position: relative; min-width: 0; }
.hero-picture {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}
html[dir="rtl"] .hero-picture { transform: rotate(-1.3deg); }
.hero-picture img { width: 100%; }
.outline-badge {
  position: absolute;
  z-index: 2;
  inset-inline-start: -24px;
  inset-block-end: 8%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}
.outline-badge > span:first-child {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}
.hero-spark { position: absolute; z-index: 2; color: var(--orange); }
.spark-one { inset-inline-end: -14px; inset-block-start: -28px; font-size: 2.4rem; transform: rotate(12deg); }
.spark-two { inset-inline-start: 1%; inset-block-start: 2%; color: var(--cyan); font-size: 1rem; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.proof-strip div { padding: 24px; text-align: center; }
.proof-strip div + div { border-inline-start: 1px solid var(--line); }
.proof-strip strong { display: block; color: var(--primary); font-size: 1.32rem; }
.proof-strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; font-weight: 800; }

.section-heading { max-width: 800px; margin-bottom: 50px; }
.section-heading-center { margin-inline: auto; text-align: center; }
.section-heading h2, .teachers-copy h2, .safe-heading h2, .languages-copy h2, .final-cta h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.section-heading > p:last-child, .teachers-copy > p:not(.section-kicker), .safe-heading > p:last-child,
.languages-copy > p:last-child, .final-cta p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.process-section { padding-block: 136px 115px; }
.process-visual {
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.process-visual img { width: 100%; }
.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.process-list li {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.process-list li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
  font-weight: 950;
}
.process-list li:nth-child(2) > span { background: rgba(236, 72, 153, 0.12); color: var(--pink); }
.process-list li:nth-child(3) > span { background: rgba(6, 182, 212, 0.13); color: var(--cyan); }
.process-list h3 { margin: 2px 0 0; font-size: 1.06rem; line-height: 1.25; }
.process-list p { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }

.benefits-section { padding-block: 100px 128px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.benefit-grid article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.benefit-grid article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 950;
}
html[data-theme="dark"] .benefit-grid article > span { background: rgba(250, 204, 21, 0.14); color: var(--yellow); }
.benefit-grid article:nth-child(2) > span, .benefit-grid article:nth-child(5) > span { background: rgba(236, 72, 153, 0.13); color: var(--pink); }
.benefit-grid article:nth-child(3) > span, .benefit-grid article:nth-child(6) > span { background: rgba(6, 182, 212, 0.13); color: var(--cyan); }
.benefit-grid h3 { margin: 20px 0 0; font-size: 1.14rem; }
.benefit-grid p { margin: 9px 0 0; color: var(--muted); font-size: 0.9rem; }

.activities-section {
  padding-block: 125px 135px;
  border-block: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.055), rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.055));
}
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.activity-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.activity-grid article:hover { transform: translateY(-5px) rotate(-0.35deg); box-shadow: var(--shadow); }
.activity-grid figure { margin: 0; overflow: hidden; background: var(--surface-soft); }
.activity-grid img { width: 100%; aspect-ratio: 1.267; object-fit: cover; transition: transform 220ms ease; }
.activity-grid article:hover img { transform: scale(1.025); }
.activity-grid article > div { padding: 20px 22px 23px; }
.activity-grid span { color: var(--pink); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.activity-grid h3 { margin: 7px 0 0; font-size: 1.25rem; letter-spacing: -0.025em; }

.teachers-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding-block: 135px;
}
.teachers-visual figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
html[dir="rtl"] .teachers-visual figure { transform: rotate(1deg); }
.teachers-visual img { width: 100%; }
.teachers-copy ul { display: grid; gap: 13px; margin: 27px 0 0; padding: 0; list-style: none; }
.teachers-copy li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; color: var(--muted); }
.teachers-copy li > span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.13);
  color: var(--green);
  font-weight: 950;
}

.safe-section {
  padding-block: 110px;
  border-block: 1px solid var(--line);
}
.safe-heading { max-width: 830px; }
.safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.safe-grid article { padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.safe-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(124, 58, 237, 0.13);
  color: var(--primary);
  font-weight: 950;
}
.safe-grid h3 { margin: 18px 0 0; font-size: 1.08rem; }
.safe-grid p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

.languages-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(42px, 8vw, 105px);
  align-items: start;
  padding-block: 130px;
}
.locale-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.locale-cloud button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.locale-cloud button:hover, .locale-cloud button.is-active {
  border-color: rgba(124, 58, 237, 0.42);
  background: var(--surface-soft);
  color: var(--primary);
}
.locale-cloud img { border-radius: 3px; }
.locale-cloud span { font-size: 0.78rem; font-weight: 800; }

.final-cta {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 78px;
  overflow: hidden;
  padding: clamp(55px, 8vw, 94px);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #6d28d9, #db2777 57%, #ea580c);
  color: #fff;
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.27);
}
.final-cta > div { position: relative; z-index: 1; max-width: 790px; }
.final-cta .section-kicker, .final-cta p:not(.section-kicker) { color: rgba(255, 255, 255, 0.82); }
.final-star { position: absolute; color: rgba(255, 255, 255, 0.18); }
.final-star-one { inset-inline-end: 8%; inset-block-start: -12%; font-size: 16rem; transform: rotate(15deg); }
.final-star-two { inset-inline-end: 4%; inset-block-end: 8%; font-size: 4rem; }
.button-light { margin-top: 30px; background: #fff; color: #6d28d9; box-shadow: 0 15px 35px rgba(44, 20, 70, 0.25); }

.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-block: 32px 44px;
  color: var(--muted);
}
.footer-brand { gap: 9px; color: var(--text); font-weight: 900; text-decoration: none; }
.footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
.showcase-footer nav { flex-wrap: wrap; gap: 20px; }
.showcase-footer nav a { font-size: 0.84rem; font-weight: 800; text-decoration: none; }
.showcase-footer nav a:hover { color: var(--primary); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 790px; }
  .hero-visual { width: min(100%, 820px); margin-inline: auto; }
  .benefit-grid, .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teachers-section { grid-template-columns: 1fr; }
  .teachers-visual { width: min(100%, 760px); margin-inline: auto; }
  .teachers-copy { max-width: 800px; }
  .languages-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner, .section-shell, .showcase-footer { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-name, .brand-mode, .editor-link { display: none; }
  .header-actions { gap: 7px; }
  .language-select-button { min-width: 0; width: 56px; padding: 8px 10px; }
  .language-select-button-label { display: none; }
  .language-select-menu { position: fixed; inset-block-start: 72px; inset-inline: 12px; width: auto; }
  .hero { padding-block: 62px 72px; gap: 55px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .hero-picture, html[dir="rtl"] .hero-picture { transform: none; }
  .outline-badge { inset-inline-start: 10px; inset-block-end: 10px; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 24px); }
  .proof-strip div + div { border-inline-start: 0; }
  .proof-strip div:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .proof-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process-section { padding-block: 92px 82px; }
  .process-list { grid-template-columns: 1fr; }
  .benefits-section { padding-block: 82px 94px; }
  .benefit-grid, .activity-grid, .safe-grid { grid-template-columns: 1fr; }
  .activities-section { padding-block: 90px; }
  .teachers-section { padding-block: 95px; }
  .safe-section { padding-block: 86px; }
  .languages-section { padding-block: 92px; }
  .final-cta { width: calc(100% - 24px); margin-bottom: 42px; padding: 52px 26px; }
  .showcase-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; }
  .hero-tools li { flex: 1 1 calc(50% - 9px); }
  .outline-badge { position: relative; inset: auto; margin: -19px auto 0; width: fit-content; }
  .process-list li { padding: 20px; }
  .benefit-grid article, .safe-grid article { padding: 23px; }
  .locale-cloud button { padding: 8px 10px; }
}

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