:root {
  --navy: #16355c;
  --orange: #ef5a21;
  --teal: #1aa39a;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

html[data-theme="light"] {
  --bg: #f4eee4;
  --card: #ffffff;
  --ink: #12263a;
  --muted: #3a4d61;
  --line: #e6dccb;
  --splash-bg: #f6f0e6;
  --splash-ink: #12263a;
  --splash-line: #5b6b7a;
  --splash-bar: rgba(18, 38, 58, 0.1);
  --splash-fill: #16355c;
  --grades-bg-start: #f8f2e8;
  --grades-bg-mid: #eee3d4;
  --grades-bg-end: #f5ecdf;
  --grades-ink: #12263a;
  --grades-muted: #536477;
  --grades-grid: rgba(22, 53, 92, 0.07);
  --teacher-frame-bg: url("../img/shafra-teacher-backdrop-light.png");
  --teacher-frame-border: rgba(22, 53, 92, 0.16);
  --teacher-frame-inner: rgba(22, 53, 92, 0.13);
  --teacher-frame-inset: rgba(255, 255, 255, 0.72);
  --teacher-photo-shadow: rgba(31, 56, 76, 0.18);
  --join-bg-a: #fffaf2;
  --join-bg-b: #eadfce;
  --join-ink: #12263a;
  --join-muted: #506174;
  --join-border: rgba(22, 53, 92, 0.12);
  --join-grid: rgba(22, 53, 92, 0.045);
}

html[data-theme="dark"] {
  --bg: #0b1624;
  --card: #152536;
  --ink: #fff8ee;
  --muted: #e4d9c8;
  --line: #2b4058;
  --splash-bg: #080e16;
  --splash-ink: #f4efe6;
  --splash-line: #9aa8b5;
  --splash-bar: rgba(255, 248, 238, 0.12);
  --splash-fill: #f4efe6;
  --grades-bg-start: #0c213a;
  --grades-bg-mid: #112f50;
  --grades-bg-end: #0d263f;
  --grades-ink: #fff8ee;
  --grades-muted: #d5e2ed;
  --grades-grid: rgba(255, 255, 255, 0.035);
  --teacher-frame-bg: url("../img/shafra-teacher-backdrop-dark.png");
  --teacher-frame-border: rgba(77, 205, 194, 0.38);
  --teacher-frame-inner: rgba(255, 255, 255, 0.18);
  --teacher-frame-inset: rgba(7, 22, 39, 0.42);
  --teacher-photo-shadow: rgba(0, 0, 0, 0.32);
  --join-bg-a: #122d4c;
  --join-bg-b: #0c2138;
  --join-ink: #fff8ee;
  --join-muted: #cbd9e5;
  --join-border: rgba(255, 255, 255, 0.1);
  --join-grid: rgba(255, 255, 255, 0.035);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 43%, rgba(239, 90, 33, 0.07), transparent 28%),
    var(--splash-bg);
  color: var(--splash-ink);
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, background 0.3s ease, color 0.3s ease;
}
.splash.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 22px 0;
}
.splash .theme-toggle {
  border-color: transparent;
  background: transparent;
}
.splash-skip {
  border: 0;
  background: transparent;
  color: var(--splash-line);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.splash-skip:hover { color: var(--splash-ink); }

.splash-core {
  margin: auto;
  text-align: center;
  padding: 0 20px 48px;
}
.splash-logo {
  width: min(220px, 46vw);
  height: min(220px, 46vw);
  object-fit: contain;
  display: block;
  margin: 0 auto 32px;
  padding: 22px;
  border-radius: 50%;
  background: #fffaf2;
  border: 1px solid rgba(239, 90, 33, 0.12);
  box-shadow:
    0 22px 55px rgba(18, 38, 58, 0.12),
    0 0 0 10px rgba(239, 90, 33, 0.035);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}
.splash-word {
  margin: 0 0 14px;
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
}
.splash-word b {
  display: inline-block;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
}
.splash-word b.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.splash-line {
  margin: 0;
  color: var(--splash-line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.splash-line.is-in { opacity: 1; }

.splash-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--splash-bar);
}
.splash-rule i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--splash-fill);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; opacity: 1; transform: none; }
  .splash-word b { opacity: 1; transform: none; }
  .splash-line { opacity: 1; }
}

.site[hidden] { display: none; }
.top {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fffaf2;
  border-radius: 14px;
  padding: 4px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 22px; font-weight: 900; }
.brand small { color: var(--muted); font-size: 12px; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.desktop-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-login {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-login:hover {
  background: var(--bg);
}
.btn-register {
  border: 0;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 90, 33, 0.28);
}
.btn-register:hover {
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 20px 45px rgba(18, 38, 58, 0.18);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open {
  display: grid;
  gap: 8px;
  animation: menu-in 0.22s ease both;
}
.mobile-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
}
.mobile-auth span {
  font-weight: 900;
}
.mobile-auth small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.mobile-login {
  border: 1px solid var(--line);
  color: var(--ink);
}
.mobile-register {
  background: var(--orange);
  color: #fff;
}
.mobile-register small { color: rgba(255, 255, 255, 0.82); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.theme-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 72px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.theme-track .ico-sun,
.theme-track .ico-moon {
  width: 16px;
  height: 16px;
  justify-self: center;
  z-index: 1;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.theme-track .ico-sun { color: #d97706; }
.theme-track .ico-moon { color: #93c5fd; }
html[data-theme="light"] .theme-track .ico-moon { opacity: 0.35; }
html[data-theme="dark"] .theme-track .ico-sun { opacity: 0.35; }
.theme-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7ed, #fdba74);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, box-shadow 0.35s ease;
}
html[data-theme="dark"] .theme-thumb {
  transform: translateX(-34px);
  background: linear-gradient(145deg, #e2e8f0, #64748b);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45);
}
.theme-toggle:hover .theme-thumb {
  transform: scale(1.04);
}
html[data-theme="dark"] .theme-toggle:hover .theme-thumb {
  transform: translateX(-34px) scale(1.04);
}
.splash .theme-track {
  background: rgba(18, 38, 58, 0.06);
}
html[data-theme="dark"] .splash .theme-track {
  background: rgba(255, 248, 238, 0.08);
}

.hero {
  position: relative;
  width: min(1320px, calc(100% - 48px));
  min-height: 680px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -18%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 90, 33, 0.1), transparent 68%);
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}
.hero-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(239, 90, 33, 0.12);
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.hero h1 span {
  color: var(--orange);
}
.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.95;
}
.hero-benefits {
  margin-top: 30px;
  padding: 16px 0;
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
}
.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.hero-benefits b {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-primary,
.hero-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 15px;
  padding: 0 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}
.hero-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff7a34);
  box-shadow: 0 16px 30px rgba(239, 90, 33, 0.24);
}
.hero-primary span {
  font-size: 20px;
  transition: transform 0.2s ease;
}
.hero-primary:hover span { transform: translateX(-4px); }
.hero-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
}
.hero-proof {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.hero-proof span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.visual-glow {
  position: absolute;
  z-index: -1;
  inset: 8% -5% -7% 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(26, 163, 154, 0.24), transparent 42%),
    radial-gradient(circle at 70% 65%, rgba(239, 90, 33, 0.24), transparent 50%);
  filter: blur(22px);
}
.visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(230, 220, 203, 0.8);
  border-radius: 38px 38px 100px 38px;
  background: #fff6ea;
  box-shadow: 0 35px 80px rgba(22, 53, 92, 0.16);
}
.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
html[data-theme="light"] .hero-img-dark,
html[data-theme="dark"] .hero-img-light { display: none; }
html[data-theme="dark"] .visual-frame {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
}
.float-card {
  position: absolute;
  z-index: 3;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #12263a;
  box-shadow: 0 15px 35px rgba(22, 53, 92, 0.16);
  backdrop-filter: blur(12px);
}
.float-card small,
.float-card strong {
  display: block;
}
.float-card small {
  color: #657587;
  font-size: 10px;
  font-weight: 700;
}
.float-card strong {
  font-size: 13px;
  font-weight: 900;
}
.float-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff3e8;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}
.card-understand {
  right: -28px;
  top: 16%;
  animation: float-y 4.2s ease-in-out infinite;
}
.card-path {
  left: -28px;
  bottom: 16%;
  animation: float-y 4.8s ease-in-out -1.5s infinite;
}
.success-chip {
  position: absolute;
  right: 24%;
  bottom: -17px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #16355c;
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 53, 92, 0.22);
  font-size: 12px;
  font-weight: 900;
}
.success-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e6a5;
  box-shadow: 0 0 0 5px rgba(114, 230, 165, 0.14);
}
@keyframes float-y {
  50% { transform: translateY(-8px); }
}

.value-strip {
  width: min(1320px, calc(100% - 48px));
  margin: 10px auto 70px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(22, 53, 92, 0.07);
}
.value-strip > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
}
.value-strip span {
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}
.value-strip strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.value-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.value-strip > i {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.why {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 78px;
}
.why-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.7fr);
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 28px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}
.section-label span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.why-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.why-head h2 em {
  color: var(--orange);
  font-style: normal;
}
.why-head > p {
  max-width: 570px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.why-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(22, 53, 92, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 163, 154, 0.35);
  box-shadow: 0 16px 35px rgba(22, 53, 92, 0.08);
}
.why-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--orange);
  opacity: 0.9;
}
.why-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg);
  color: var(--orange);
}
.why-icon svg {
  width: 22px;
  height: 22px;
}
.why-no {
  position: absolute;
  top: 25px;
  left: 22px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.38;
  letter-spacing: 0.12em;
}
.why-tag {
  margin: 20px 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}
.why-card h3 {
  margin: 0;
  max-width: 650px;
  color: inherit;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 900;
  line-height: 1.5;
}
.why-card > p:last-child,
.why-copy > p:last-child,
.why-wide > div > p:last-child {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.72;
}

.why-featured {
  grid-column: span 2;
  min-height: 278px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #102a49, #16355c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(22, 53, 92, 0.16);
}
.why-featured .why-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ff9a63;
}
.why-featured .why-tag { color: #83ded6; }
.why-featured .why-copy > p:last-child { color: #d6e2ef; }
.why-featured .why-copy { margin-top: 18px; padding-bottom: 0; }
.teacher-choice {
  position: static;
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}
.teacher-choice span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border: 2px solid #16355c;
  border-radius: 50%;
  color: #16355c;
  background: #fff8ee;
  font-size: 11px;
  font-weight: 900;
}
.teacher-choice span:nth-child(2) { background: #b9f2ec; }
.teacher-choice span:nth-child(3) { background: #ffd0b8; }
.teacher-choice b {
  margin-right: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.why-dark,
.why-warm {
  grid-column: span 1;
}
.why-dark {
  background: linear-gradient(145deg, #123738, #17494a);
  color: #f2fffd;
  border-color: transparent;
}
.why-dark .why-icon {
  color: #8df1e7;
  background: rgba(255, 255, 255, 0.09);
}
.why-dark .why-tag { color: #8df1e7; }
.why-dark > p:last-of-type { color: #cae3e1; }
.mini-progress {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  height: 5px;
  overflow: visible;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.mini-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72e6da, #f4b169);
}
.mini-progress b {
  position: absolute;
  left: 0;
  bottom: 14px;
  color: #cbe9e6;
  font-size: 10px;
  font-weight: 800;
}
.why-warm {
  background: #fff9f2;
  border-color: #f0dfca;
}
html[data-theme="dark"] .why-warm {
  background: #1d2937;
  border-color: #37475b;
}
.why-warm .why-icon {
  background: #fff0df;
  color: #d94b17;
}
html[data-theme="dark"] .why-warm .why-icon { background: #4b2a1c; color: #ff9a63; }

.why-wide {
  grid-column: span 1;
  min-height: 245px;
  display: block;
  background: var(--card);
}
.why-wide .why-tag { margin-top: 20px; }
.why-wide .why-no { top: 25px; right: auto; bottom: auto; left: 22px; }
.why-result {
  grid-column: span 1;
  min-height: 245px;
  background: var(--card);
}
.why-result .why-icon {
  color: #fff;
  background: var(--orange);
}

@media (max-width: 760px) {
  .top { padding: 10px 12px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .hero {
    width: min(100% - 28px, 620px);
    min-height: 0;
    padding: 44px 0 34px;
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-visual { order: -1; }
  .hero-copy { order: 1; }
  .hero-visual .float-card,
  .hero-visual .success-chip { display: none; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
  .hero-lead { line-height: 1.8; }
  .hero-benefits {
    display: grid;
    gap: 10px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-primary,
  .hero-secondary { width: 100%; }
  .visual-frame { border-radius: 28px 28px 70px 28px; }
  .float-card {
    min-width: 145px;
    padding: 8px 10px;
  }
  .card-understand { right: -7px; top: 10%; }
  .card-path { left: -7px; bottom: 10%; }
  .value-strip {
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    padding: 20px 16px;
  }
  .value-strip > i { display: none; }
  .why {
    width: calc(100% - 28px);
    padding: 46px 0 62px;
  }
  .why-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
  }
  .why-head h2 { font-size: clamp(34px, 11vw, 50px); }
  .why-head > p { font-size: 14px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card,
  .why-featured,
  .why-dark,
  .why-warm,
  .why-wide,
  .why-result {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    padding: 20px;
  }
  .why-featured { min-height: 350px; }
  .why-card h3 { font-size: 21px; }
  .why-wide .why-tag { margin-top: 20px; }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .desktop-auth { display: none; }
  .menu-toggle { display: grid; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .why-head { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-featured { grid-column: span 2; }
  .why-dark,
  .why-warm,
  .why-wide,
  .why-result { grid-column: span 1; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .desktop-auth { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu {
    right: auto;
    left: 12px;
    width: min(360px, calc(100% - 24px));
  }
  .hero {
    width: min(1100px, calc(100% - 36px));
    min-height: 0;
    padding: 34px 0;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 34px;
  }
  .hero h1 { font-size: clamp(35px, 5vw, 54px); }
  .hero-lead { margin-top: 14px; font-size: 15px; line-height: 1.7; }
  .hero-benefits { margin-top: 16px; padding: 10px 0; }
  .hero-actions { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

/* Clean, editorial benefits section */
.why.why-clean {
  width: min(1260px, calc(100% - 48px));
  padding: 82px 0 94px;
}
.why-clean .why-head {
  display: flex;
  max-width: 760px;
  margin: 0 auto 42px;
  align-items: center;
  flex-direction: column;
  gap: 0;
  text-align: center;
}
.why-clean .section-label {
  justify-content: center;
  margin-bottom: 15px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.why-clean .section-label span {
  width: 22px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
.why-clean .section-label span:last-child {
  background: linear-gradient(90deg, var(--orange), transparent);
}
.why-clean .why-head h2 {
  margin: 0;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.17;
  letter-spacing: -0.045em;
}
.why-clean .why-head > p {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}
.why-clean .why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.why-clean .why-card {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  min-height: 292px;
  padding: 26px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(26, 163, 154, 0.065), transparent 36%),
    var(--card);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(22, 53, 92, 0.055);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.why-clean .why-card::after {
  content: "";
  position: absolute;
  top: auto;
  right: 26px;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--teal);
  opacity: 0.8;
}
.why-clean .why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 163, 154, 0.34);
  box-shadow: 0 22px 48px rgba(22, 53, 92, 0.1);
}
.why-clean .why-icon {
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 72%, var(--card));
  color: var(--teal);
}
.why-clean .why-icon svg {
  width: 23px;
  height: 23px;
}
.why-clean .why-no {
  top: 30px;
  left: 26px;
  color: var(--muted);
  font-size: 11px;
  opacity: 0.52;
}
.why-clean .why-tag {
  margin: 23px 0 6px;
  color: var(--teal);
  font-size: 12px;
  line-height: 1.5;
}
.why-clean .why-card h3 {
  margin: 0;
  font-size: clamp(19px, 1.45vw, 23px);
  line-height: 1.48;
  letter-spacing: -0.025em;
}
.why-clean .why-card h3 + p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.why-clean .why-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}
.why-clean .why-foot::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 90, 33, 0.1);
}
.why-clean .why-card.is-featured {
  border-color: rgba(239, 90, 33, 0.25);
  background:
    radial-gradient(circle at 100% 0, rgba(239, 90, 33, 0.16), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 90%, #fff0e5), var(--card));
}
.why-clean .why-card.is-featured::after { background: var(--orange); }
.why-clean .why-card.is-featured .why-icon {
  border-color: rgba(239, 90, 33, 0.2);
  background: rgba(239, 90, 33, 0.1);
  color: var(--orange);
}
.why-clean .why-card.is-featured .why-tag { color: var(--orange); }

html[data-theme="dark"] .why-clean .why-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 100% 0, rgba(26, 163, 154, 0.1), transparent 38%),
    var(--card);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}
html[data-theme="dark"] .why-clean .why-card.is-featured {
  border-color: rgba(239, 90, 33, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(239, 90, 33, 0.18), transparent 44%),
    #192737;
}

@media (max-width: 1080px) {
  .why-clean .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-clean .why-card { min-height: 264px; }
}

@media (max-width: 600px) {
  .why.why-clean {
    width: calc(100% - 28px);
    padding: 58px 0 68px;
  }
  .why-clean .why-head { margin-bottom: 28px; }
  .why-clean .why-head h2 {
    font-size: clamp(35px, 10.5vw, 46px);
    line-height: 1.22;
  }
  .why-clean .why-head > p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.85;
  }
  .why-clean .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .why-clean .why-card {
    min-height: 0;
    padding: 22px;
    border-radius: 20px;
  }
  .why-clean .why-no {
    top: 26px;
    left: 22px;
  }
  .why-clean .why-tag { margin-top: 20px; }
  .why-clean .why-card h3 { font-size: 21px; }
  .why-clean .why-card h3 + p { margin-bottom: 18px; }
}

/* Infinite grade showcase */
.grades-showcase {
  position: relative;
  padding: 82px 0 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(26, 163, 154, 0.17), transparent 25%),
    radial-gradient(circle at 88% 88%, rgba(239, 90, 33, 0.15), transparent 28%),
    linear-gradient(145deg, var(--grades-bg-start), var(--grades-bg-mid) 54%, var(--grades-bg-end));
  color: var(--grades-ink);
  transition: background 0.35s ease, color 0.35s ease;
}
.grades-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--grades-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grades-grid) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.grades-head {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 54px;
  margin: 0 auto 38px;
}
.grades-head .section-label {
  color: #83ded6;
}
.grades-head h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.grades-head h2 em {
  color: #ff8750;
  font-style: normal;
}
.grades-head > p {
  max-width: 520px;
  margin: 0 0 7px;
  color: var(--grades-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}
.grades-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.grades-track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: grade-marquee 44s linear infinite;
}
.grades-marquee:hover .grades-track { animation-play-state: paused; }
.grades-set {
  display: flex;
  flex: none;
  gap: 16px;
  padding-inline-end: 16px;
}
.grade-card {
  position: relative;
  width: clamp(290px, 27vw, 370px);
  aspect-ratio: 4 / 3;
  flex: none;
  overflow: hidden;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: #0a1a2d;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.grade-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  pointer-events: none;
}
.grade-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 135, 80, 0.65);
}
.grade-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.grade-card:hover img { transform: scale(1.045); }
.grade-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 35, 0.04) 24%, rgba(7, 20, 35, 0.86) 100%),
    linear-gradient(90deg, rgba(7, 20, 35, 0.2), transparent);
}
.grade-card-copy {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 25px;
  left: 30px;
}
.grade-card-copy > span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  background: rgba(10, 27, 46, 0.4);
  color: #91e4dc;
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.grade-card-copy h3 {
  margin: 8px 0 2px;
  color: #fff;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 900;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.grade-card-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #f3c2a8;
  font-size: 11px;
  font-weight: 900;
}
.grade-card-copy p b { font-size: 16px; }
.grades-motion-note {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 22px auto 0;
  color: #aebfce;
  font-size: 11px;
  font-weight: 800;
}
.grades-motion-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65d9ce;
  box-shadow: 0 0 0 5px rgba(101, 217, 206, 0.1);
}

@keyframes grade-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  .grades-showcase { padding: 58px 0 34px; }
  .grades-head {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }
  .grades-head h2 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.23;
  }
  .grades-head > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
  }
  .grades-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
  .grades-track { animation-duration: 36s; }
  .grades-set { gap: 12px; padding-inline-end: 12px; }
  .grade-card {
    width: min(82vw, 320px);
    border-radius: 22px;
  }
  .grade-card-copy {
    right: 25px;
    bottom: 21px;
    left: 25px;
  }
  .grades-motion-note {
    width: calc(100% - 28px);
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grades-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .grades-track { animation: none; }
  .grade-card,
  .grade-card img { transition: none; }
}

/* Branded infinite teachers showcase */
.teachers-showcase {
  position: relative;
  padding: 88px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(26, 163, 154, 0.09), transparent 26%),
    radial-gradient(circle at 12% 86%, rgba(239, 90, 33, 0.08), transparent 25%),
    var(--bg);
  color: var(--ink);
}
.teachers-head {
  width: min(1260px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 54px;
  margin: 0 auto 42px;
}
.teachers-head h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.teachers-head h2 em {
  color: var(--teal);
  font-style: normal;
}
.teachers-head > p {
  max-width: 520px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}
.teachers-marquee {
  width: 100%;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.teachers-track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: teacher-marquee var(--teacher-duration, 18s) linear infinite;
}
.teachers-marquee:hover .teachers-track { animation-play-state: paused; }
.teachers-set {
  display: flex;
  flex: none;
  gap: 18px;
  padding-inline-end: 18px;
}
.teacher-card {
  width: clamp(288px, 24vw, 326px);
  flex: none;
  overflow: hidden;
  direction: rtl;
  padding: 11px 11px 0;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 20px 48px rgba(22, 53, 92, 0.1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.teacher-card:hover {
  transform: translateY(-7px);
  border-color: rgba(26, 163, 154, 0.35);
  box-shadow: 0 28px 60px rgba(22, 53, 92, 0.15);
}
.teacher-frame {
  position: relative;
  height: 382px;
  overflow: hidden;
  border: 1px solid var(--teacher-frame-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, transparent 72%, rgba(7, 22, 39, 0.08)),
    var(--teacher-frame-bg) center / cover no-repeat;
  box-shadow:
    inset 0 0 0 5px var(--teacher-frame-inset),
    inset 0 0 0 6px var(--teacher-frame-inner),
    0 18px 36px rgba(8, 24, 42, 0.2);
  isolation: isolate;
}
.teacher-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 9px;
  border: 1px solid var(--teacher-frame-inner);
  border-radius: 20px;
  pointer-events: none;
}
.teacher-frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 54px;
  bottom: 8px;
  left: 54px;
  height: 3px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--teal));
  box-shadow: 0 0 16px rgba(26, 163, 154, 0.55);
}
.teacher-photo {
  position: absolute;
  z-index: 2;
  top: auto;
  right: 50%;
  bottom: 12px;
  left: auto;
  width: 82%;
  height: 82%;
  display: block;
  border-radius: 0 0 15px 15px;
  background: transparent;
  filter: drop-shadow(0 12px 16px var(--teacher-photo-shadow));
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(50%);
}
.teacher-frame.no-photo .teacher-photo {
  padding: 88px;
  object-fit: contain;
  object-position: center;
  opacity: 0.72;
}
.teacher-frame-brand {
  position: absolute;
  z-index: 4;
  top: 15px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  background: rgba(5, 19, 34, 0.72);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  backdrop-filter: blur(10px);
}
.teacher-frame-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
}
.teacher-cipher {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 18px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 149, 99, 0.45);
  border-radius: 50%;
  background: rgba(8, 24, 42, 0.72);
  color: #ff9a68;
  font: 900 12px/1 var(--font);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.teacher-card-info {
  padding: 18px 10px 20px;
}
.teacher-kicker {
  margin: 0 0 2px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}
.teacher-card-info h3 {
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-meta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.teacher-meta + .teacher-meta { margin-top: 9px; }
.teacher-meta > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
}
.teacher-meta > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html[data-theme="dark"] .teacher-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

@keyframes teacher-marquee {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 760px) {
  .teachers-showcase { padding: 62px 0 68px; }
  .teachers-head {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }
  .teachers-head h2 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.23;
  }
  .teachers-head > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
  }
  .teachers-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
  .teachers-track { animation-duration: var(--teacher-mobile-duration, 15s); }
  .teachers-set { gap: 12px; padding-inline-end: 12px; }
  .teacher-card { width: min(82vw, 306px); }
  .teacher-frame { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .teachers-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .teachers-track { animation: none; }
  .teacher-card,
  .teacher-photo { transition: none; }
}

/* Final conversion banner */
.join-cta {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 96px;
}
.join-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--join-border);
  border-radius: 36px;
  background:
    linear-gradient(var(--join-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--join-grid) 1px, transparent 1px),
    linear-gradient(135deg, var(--join-bg-a), var(--join-bg-b));
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--join-ink);
  box-shadow: 0 24px 65px rgba(22, 53, 92, 0.12);
  isolation: isolate;
}
.join-cta-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  top: -180px;
  right: 30%;
  border: 46px solid rgba(26, 163, 154, 0.1);
  border-radius: 50%;
}
.join-cta-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  left: -80px;
  bottom: -115px;
  border: 32px solid rgba(239, 90, 33, 0.12);
  border-radius: 50%;
}
.join-code {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--join-border);
  border-radius: 25px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--join-border) 45%, transparent);
}
.join-code img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.join-code span {
  position: absolute;
  margin: 62px 62px 0 0;
  color: var(--orange);
  font: 900 9px/1 monospace;
}
.join-copy > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}
.join-copy > p i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(239, 90, 33, 0.1);
}
.join-copy h2 {
  margin: 0;
  color: var(--join-ink);
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.join-copy h2 em {
  color: var(--orange);
  font-style: normal;
}
.join-copy > span {
  display: block;
  margin-top: 8px;
  color: var(--join-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}
.join-action {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}
.join-action a {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f36b32, #e64d18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(239, 90, 33, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.join-action a:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 34px rgba(239, 90, 33, 0.32);
}
.join-action a b { font-size: 19px; }
.join-action small {
  color: var(--join-muted);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .join-cta-inner {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .join-code {
    width: 72px;
    height: 72px;
    border-radius: 21px;
  }
  .join-code img { width: 44px; height: 44px; }
  .join-action {
    grid-column: 1 / -1;
    width: min(100%, 420px);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .join-cta {
    width: calc(100% - 28px);
    padding: 0 0 68px;
  }
  .join-cta-inner {
    display: flex;
    padding: 28px 21px;
    border-radius: 28px;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .join-code { width: 70px; height: 70px; }
  .join-copy > p { justify-content: center; }
  .join-copy h2 {
    font-size: clamp(25px, 8vw, 33px);
    line-height: 1.45;
  }
  .join-copy > span { font-size: 12px; }
  .join-action { width: 100%; }
  .join-action a { min-height: 56px; }
}

/* Dynamic platform footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 0, rgba(26, 163, 154, 0.08), transparent 26%),
    color-mix(in srgb, var(--card) 75%, var(--bg));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--orange));
}
.footer-main {
  width: min(1260px, calc(100% - 48px));
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: 0 auto;
  padding: 32px 0;
}
.footer-brand {
  display: flex;
  max-width: 670px;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}
.footer-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(22, 53, 92, 0.1);
}
.footer-logo img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}
.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
}
.footer-brand strong {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}
.footer-brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}
.footer-contact {
  display: flex;
  min-width: 255px;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(22, 53, 92, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.footer-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 163, 154, 0.4);
}
.footer-contact > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(26, 163, 154, 0.1);
  color: var(--teal);
  font-size: 18px;
}
.footer-contact > span:last-child {
  display: flex;
  flex-direction: column;
}
.footer-contact small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.footer-contact strong {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
}
.footer-bottom {
  width: min(1260px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.footer-developer strong {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 700px) {
  .footer-main {
    width: calc(100% - 28px);
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 34px 0 25px;
  }
  .footer-brand {
    align-items: flex-start;
  }
  .footer-logo {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }
  .footer-logo img { width: 57px; height: 57px; }
  .footer-brand strong { font-size: 23px; }
  .footer-brand small { font-size: 12px; }
  .footer-contact { min-width: 0; }
  .footer-bottom {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
