:root{
  --bg: #F7F8FC;
  --bg2:#FFFFFF;
  --text:#0C1020;
  --muted:#5B6478;
  --line: rgba(10,20,40,.12);
  /* Primary accent (from provided fuchsia/purple gradient reference) */
  --brand:#A855F7;
  --brand2:#FF5ACD;
  --dark-bg: #0B1020;
  --dark-text: #F3F6FF;
  --dark-muted: rgba(243,246,255,.72);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --container: 1280px;
}

/* ------------------------------
   Legal pages (Privacy / Terms)
   ------------------------------ */

.legal-page .section-head{
  margin-bottom: 18px;
}

.legal-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.legal{
  display: grid;
  gap: 14px;
}

.legal-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: none;
  backdrop-filter: none;
}

.legal .legal-meta{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.55;
}

.legal p{
  margin: 0;
  line-height: 1.75;
}

.legal p + p{
  margin-top: 12px;
}

.legal h2, .legal h3, .legal h4{
  scroll-margin-top: 100px;
}

.legal h2{
  margin: 18px 0 10px;
}

.legal h3{
  margin: 14px 0 8px;
}

.legal h4{
  margin: 12px 0 6px;
}

.legal a{
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal ul, .legal ol{
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.legal li{
  margin: .4rem 0;
}

.legal-toc{
  display: none;
}

@media (min-width: 980px){
  .legal-layout{
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .legal-toc{
    display: block;
    position: sticky;
    top: 90px;
  }

  .legal-toc a{
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(12,16,32,.82);
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(12,16,32,.08);
  }

  .legal-toc a:hover{
    background: #ffffff;
    color: rgba(12,16,32,.92);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    /* Subtle notebook-like grid */
    linear-gradient(rgba(10,20,40,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,40,.028) 1px, transparent 1px),
    /* existing atmosphere */
    radial-gradient(1200px 800px at 20% -10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(0,209,255,.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 70%);
}

body{
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
}

img{max-width:100%; display:block}

a{color:inherit; text-decoration:none}

/* Safety: ensure navbar CTAs never get hidden by responsive/overflow rules */
.nav .btn.btn-students{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px){
  .nav .btn.btn-students{
    width: 100%;
    justify-content: center;
  }
}

/* --- Teachers page: reference-style 4 cards grid --- */
/* 3 cards -> 1 col (mobile) / 3 cols (desktop) */
.teachers-page .teachers-ref-3grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px){
  .teachers-page .teachers-ref-3grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 740px) and (max-width: 979.98px){
  .teachers-page .teachers-ref-3grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.teachers-page .teachers-ref-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background:
    radial-gradient(420px 220px at 18% 20%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(420px 220px at 86% 18%, rgba(0,209,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.92));
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  padding: 16px;
  min-height: 210px;
}

.teachers-page .teachers-ref-media{
  height: 112px;
  border-radius: 14px;
  border: 1px dashed rgba(15,23,42,.16);
  background:
    radial-gradient(220px 140px at 30% 20%, rgba(168,85,247,.12), transparent 60%),
    radial-gradient(220px 140px at 80% 40%, rgba(0,209,255,.10), transparent 60%),
    rgba(255,255,255,.65);
}

.teachers-page .teachers-ref-title{
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.teachers-page .teachers-ref-text{
  margin: 0;
  color: rgba(15,23,42,.68);
  line-height: 1.55;
  font-size: .95rem;
}

/* --- Teachers page: orbit / files section (reference-like) --- */
.teachers-page .teachers-orbit{
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(1100px 520px at 50% 30%, rgba(0,209,255,.10), transparent 55%),
    radial-gradient(900px 520px at 50% 70%, rgba(168,85,247,.12), transparent 60%),
    linear-gradient(180deg, rgba(7,10,18,.92), rgba(7,10,18,.86));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
  padding: 22px;
  overflow: hidden;
  min-height: 520px;
}

/* --- Teachers page: reference hero (Boltsift-like) --- */
.teachers-page .teachers-ref-hero{
  position: relative;
  overflow: clip;
  padding: clamp(76px, 6vw, 104px) 0;
}

/* --- Teachers page: new Partner hero (half-cut screenshot + mesh glow) --- */
/* (Partner hero screenshot block removed) */

/* Fix: Partner hero base background (page-scoped) */
.teachers-page .teachers-partner-hero{
  position: relative;
  overflow: clip;
  padding: clamp(76px, 7vw, 120px) 0;
  background:
    /* Always-on deep dark base (prevents “white”) */
    radial-gradient(1200px 700px at 50% 18%, rgba(18, 26, 58, 0.65), transparent 62%),
    radial-gradient(980px 620px at 25% 55%, rgba(0, 86, 255, 0.38), transparent 62%),
    radial-gradient(920px 560px at 72% 46%, rgba(168, 85, 247, 0.34), transparent 62%),
    radial-gradient(820px 520px at 58% 78%, rgba(255, 90, 205, 0.22), transparent 62%),
    linear-gradient(180deg, #050714 0%, #070A18 55%, #050714 100%);
  color: rgba(243,246,255,.96);
}

.teachers-page .teachers-partner-hero::before{
  /* soft vignette to keep edges cinematic */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 680px at 50% 18%, rgba(0,0,0,.00), rgba(0,0,0,.55) 70%),
    radial-gradient(900px 520px at 50% 105%, rgba(0,0,0,.45), transparent 65%);
  z-index: 0;
}

.teachers-page .teachers-partner-hero-bg{
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.teachers-page .teachers-partner-hero-bg::before{
  /* extra mesh glow layer (no blend-modes required) */
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(700px 420px at 18% 30%, rgba(0, 210, 255, 0.24), transparent 60%),
    radial-gradient(720px 460px at 78% 26%, rgba(168, 85, 247, 0.26), transparent 62%),
    radial-gradient(680px 420px at 56% 72%, rgba(255, 90, 205, 0.18), transparent 62%);
  opacity: .92;
  filter: blur(18px);
  transform: translate3d(0,0,0);
}

/* vignette */
.teachers-page .teachers-partner-hero-mesh::after{
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
}

.teachers-page .teachers-partner-hero .container{
  position: relative;
  z-index: 1;
}

.teachers-page .teachers-partner-hero-inner{
  display: grid;
  grid-template-columns: 1fr;
  color: rgba(243,246,255,.96);
  align-items: start;
  text-align: center;
  max-width: 1040px;
  margin-inline: auto;
}

.teachers-page .teachers-partner-hero-title{
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: rgba(243,246,255,.96);
}
/* Reference-like vertical ribbed streaks + subtle warped diffusion */
.teachers-page .teachers-partner-hero-bg::after{
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    /* bright ribbed columns */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.00) 0px,
      rgba(255,255,255,.00) 10px,
      rgba(255,255,255,.08) 11px,
      rgba(255,255,255,.00) 14px
    ),
    /* colored streak tint */
    repeating-linear-gradient(
      90deg,
      rgba(59,130,246,.00) 0px,
      rgba(59,130,246,.00) 26px,
      rgba(59,130,246,.12) 28px,
      rgba(168,85,247,.00) 36px,
      rgba(168,85,247,.10) 38px,
      rgba(255,90,205,.00) 54px
    ),
    /* soft diffusion blobs to break uniformity */
    radial-gradient(1200px 700px at 42% 58%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(980px 620px at 62% 46%, rgba(168,85,247,.18), transparent 62%),
    radial-gradient(900px 560px at 32% 40%, rgba(255,90,205,.14), transparent 62%);
  /* Avoid blend-mode dependency (was causing “white” in some setups) */
  mix-blend-mode: normal;
  opacity: .62;
  filter: blur(0.4px);
  transform: translate3d(0,0,0);
  animation: none;
}

/* extra depth + soft highlight bloom */
.teachers-page .teachers-partner-hero-bg{
  filter: saturate(1.12) contrast(1.08);
}

.teachers-page .teachers-partner-hero-bg::selection{ background: transparent; }

.teachers-page .teachers-partner-hero-bg::before{
  opacity: .92;
}

@supports (filter: blur(1px)){
  .teachers-page .teachers-partner-hero-bg::after{
    filter: blur(0.8px);
  }
}

/* (Animation disabled for now to validate static rendering first) */

.teachers-page .teachers-partner-hero .container{
  position: relative;
  z-index: 2;
}

.teachers-page .teachers-partner-hero-title,
.teachers-page .teachers-partner-hero-subtitle{
  text-shadow: 0 10px 46px rgba(0,0,0,.55);
}

/* Partner hero screenshot: half-visible, glued to bottom, fade-out */
.teachers-page .teachers-partner-hero-inner{
  position: relative;
}

.teachers-page .teachers-partner-hero-shot{
  position: relative;
  width: min(1200px, 100%);
  margin: 22px auto 0;
  /* show only the top half of the screenshot */
  height: clamp(240px, 28vw, 360px);
  overflow: visible;
  isolation: isolate;
}

.teachers-page .teachers-partner-hero-shot-img{
  /* Keep screenshot half-cut while allowing overlays to overflow */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

/* Full-width external glow behind the screenshot (strong, bright, toward header) */
.teachers-page .teachers-partner-hero-shot-glow{
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  width: min(1600px, 160vw);
  height: min(720px, 70vh);
  pointer-events: none;
  z-index: 0;
  opacity: .92;
  filter: blur(34px);
  background:
    radial-gradient(900px 520px at 50% 84%, rgba(0, 210, 255, 0.42), transparent 62%),
    radial-gradient(960px 560px at 60% 82%, rgba(168, 85, 247, 0.44), transparent 62%),
    radial-gradient(840px 520px at 40% 86%, rgba(255, 90, 205, 0.38), transparent 64%),
    radial-gradient(1200px 520px at 50% 105%, rgba(255,255,255,0.14), transparent 68%);
}

.teachers-page .teachers-partner-hero-shot-img{
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0;
  background: transparent;
  z-index: 1;
  box-shadow: none;
}

.teachers-page .teachers-partner-hero-shot::after{
  /* Fade like the image disappears under the section */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(5, 7, 20, 0) 0%,
      rgba(5, 7, 20, 0) 55%,
      rgba(5, 7, 20, 0.92) 92%,
      rgba(5, 7, 20, 1) 100%
    );
}

/* Floating teacher bubbles (page-scoped) */
.teachers-page .teachers-partner-hero-bubble{
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(240px 160px at 25% 25%, rgba(0,210,255,.20), transparent 60%),
    radial-gradient(240px 160px at 75% 65%, rgba(168,85,247,.20), transparent 60%),
    rgba(6, 9, 20, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 22px 70px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.10);
  color: rgba(243,246,255,.96);
  z-index: 3;
  pointer-events: none;
}

.teachers-page .teachers-partner-hero-bubble-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, rgba(168,85,247,.95), rgba(0,210,255,.95));
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Placeholder look: user will swap images manually later */
.teachers-page .teachers-partner-hero-bubble-avatar{
  background-size: cover;
  background-position: center;
}

/* Alternate accent for the second teacher card */
.teachers-page .teachers-partner-hero-bubble--right{
  background:
    radial-gradient(240px 160px at 25% 25%, rgba(255, 90, 205, .22), transparent 60%),
    radial-gradient(240px 160px at 75% 65%, rgba(0, 210, 255, .16), transparent 60%),
    rgba(6, 9, 20, .62);
}

.teachers-page .teachers-partner-hero-bubble--right .teachers-partner-hero-bubble-avatar{
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, rgba(255,90,205,.95), rgba(59,130,246,.95));
}

/* Subtle floating animation (with reduced-motion fallback) */
@keyframes teachers-bubble-float{
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.teachers-page .teachers-partner-hero-bubble--left{
  animation: teachers-bubble-float 7.5s ease-in-out infinite;
}

.teachers-page .teachers-partner-hero-bubble--right{
  animation: teachers-bubble-float 8.5s ease-in-out infinite;
}

.teachers-page .teachers-partner-hero-bubble--right{
  /* keep smaller feel while animating */
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce){
  .teachers-page .teachers-partner-hero-bubble--left,
  .teachers-page .teachers-partner-hero-bubble--right{
    animation: none;
  }
}

.teachers-page .teachers-partner-hero-bubble-name{
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: .95rem;
}

.teachers-page .teachers-partner-hero-bubble-role{
  margin-top: 2px;
  color: rgba(243,246,255,.78);
  font-size: .82rem;
  line-height: 1.05;
}

.teachers-page .teachers-partner-hero-bubble--left{
  left: max(-22px, -2.5vw);
  top: 22%;
}

.teachers-page .teachers-partner-hero-bubble--right{
  right: max(-10px, -1.2vw);
  top: 10%;
  transform: scale(.92);
}

@media (max-width: 700px){
  .teachers-page .teachers-partner-hero-bubble--left{
    left: 8px;
    top: 16px;
  }
  .teachers-page .teachers-partner-hero-bubble--right{
    right: 8px;
    top: 64px;
  }
}

/* Ensure hero content sits above bg, but the screenshot can touch the bottom of the section */
.teachers-page .teachers-partner-hero{
  padding-bottom: 0;
}

/* Ensure navbar always stacks above hero visual layers (page-scoped safety) */
.teachers-page .nav,
.teachers-page header,
.teachers-page [data-include="navbar"]{
  position: relative;
  z-index: 50;
}

.teachers-page .teachers-partner-hero{
  z-index: 0;
}

.teachers-page .teachers-partner-hero-cta .btn-primary,
.teachers-page .teachers-partner-hero-cta .btn-ghost{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.teachers-page .teachers-partner-hero-cta .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 70px rgba(59,130,246,.35),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.teachers-page .teachers-partner-hero-cta .btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 70px rgba(168,85,247,.22);
}

.teachers-page .teachers-partner-hero-subtitle{
  margin: 12px auto 0;
  max-width: 70ch;
  color: rgba(243,246,255,.72);
  font-size: clamp(1.04rem, 1.25vw, 1.14rem);
  line-height: 1.55;
}

.teachers-page .teachers-partner-hero-cta{
  margin-top: 18px;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.teachers-page .teachers-partner-hero-cta .btn-primary{
  box-shadow: 0 16px 46px rgba(37,99,235,.26);
}

.teachers-page .teachers-partner-hero-cta .btn-ghost{
  background: rgba(0,0,0,.24);
  border-color: rgba(255,255,255,.14);
  color: rgba(243,246,255,.92);
}
.teachers-page .teachers-partner-hero-cta .btn-ghost:hover{
  background: rgba(0,0,0,.34);
}

/* (Partner hero mockup removed) */

.teachers-page .teachers-ref-hero-bg{
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% 24%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 520px at 30% 66%, rgba(168,85,247,.16), transparent 62%),
    radial-gradient(900px 520px at 70% 66%, rgba(0,209,255,.12), transparent 62%),
    linear-gradient(180deg, #070A14 0%, #050815 100%);
}

.teachers-page .teachers-ref-hero .container{
  position: relative;
  z-index: 1;
}

.teachers-page .teachers-ref-hero-inner{
  text-align: center;
  max-width: 980px;
  margin-inline: auto;
}

.teachers-page .teachers-ref-hero-title{
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  color: rgba(243,246,255,.96);
}

.teachers-page .teachers-ref-hero-subtitle{
  margin: 14px auto 0;
  max-width: 72ch;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  color: rgba(243,246,255,.72);
}

.teachers-page .teachers-ref-hero-cta{
  margin-top: 22px;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Make CTA match hero (keep global btn-primary, only adjust shadows/hover if needed) */
.teachers-page .teachers-ref-hero .btn-primary{
  box-shadow: 0 16px 46px rgba(37,99,235,.26);
}
.teachers-page .teachers-ref-hero .btn-ghost{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.14);
  color: rgba(243,246,255,.92);
}
.teachers-page .teachers-ref-hero .btn-ghost:hover{
  background: rgba(0,0,0,.34);
}

.teachers-page .teachers-ref-hero-orbit{
  margin: clamp(34px, 4.2vw, 48px) auto 0;
  position: relative;
  width: min(920px, 100%);
  height: min(470px, 54vw);
  min-height: 360px;
}

.teachers-page .teachers-ref-hero-orb{
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(190px, 26vw);
  height: min(190px, 26vw);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), transparent 48%),
    radial-gradient(circle at 70% 65%, rgba(0,209,255,.32), transparent 56%),
    radial-gradient(circle at 55% 45%, rgba(59,130,246,.58), transparent 64%),
    conic-gradient(from 210deg, rgba(59,130,246,.45), rgba(0,209,255,.28), rgba(59,130,246,.10), rgba(59,130,246,.45));
  box-shadow:
    0 0 0 1px rgba(59,130,246,.22),
    0 0 120px rgba(59,130,246,.44),
    0 0 220px rgba(0,209,255,.28),
    0 0 320px rgba(59,130,246,.22);
}

.teachers-page .teachers-ref-hero-orb-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(14px 14px at 40% 35%, rgba(255,255,255,.30), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 18px 55px rgba(0,0,0,.25),
    0 0 60px rgba(59,130,246,.22);
}

/* placeholder mark (replace by real logo asset later) */
.teachers-page .teachers-ref-hero-orb-logo::before{
  content: "Im";
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(243,246,255,.92);
}

.teachers-page .teachers-ref-hero-orb::before,
.teachers-page .teachers-ref-hero-orb::after{
  content:"";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.28);
  filter: drop-shadow(0 0 30px rgba(59,130,246,.35));
}
.teachers-page .teachers-ref-hero-orb::after{
  inset: -32px;
  border-color: rgba(0,209,255,.18);
  filter: drop-shadow(0 0 40px rgba(0,209,255,.26));
}

.teachers-page .teachers-ref-hero-orb{
  animation: teachers-ref-orb-float 10s ease-in-out infinite;
}

.teachers-page .teachers-ref-hero-orb::before{
  animation: teachers-ref-orb-spin 14s linear infinite;
}

.teachers-page .teachers-ref-hero-orb::after{
  animation: teachers-ref-orb-spin 20s linear infinite reverse;
}

@keyframes teachers-ref-orb-float{
  0%, 100%{ transform: translate(-50%, -50%) scale(1); }
  50%{ transform: translate(-50%, calc(-50% - 6px)) scale(1.02); }
}

@keyframes teachers-ref-orb-spin{
  to{ transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .teachers-page .teachers-ref-hero-orb,
  .teachers-page .teachers-ref-hero-orb::before,
  .teachers-page .teachers-ref-hero-orb::after{ animation: none; }
}

/* Concentric waves emitted by the orb (no connectors) */
.teachers-page .teachers-ref-hero-orbit::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(980px, 120%);
  height: min(980px, 120%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  /* ring pattern */
  background:
    radial-gradient(circle,
      rgba(59,130,246,.22) 0%,
      rgba(59,130,246,.18) 14%,
      rgba(59,130,246,.00) 22%),
    repeating-radial-gradient(circle,
      rgba(59,130,246,.00) 0 18px,
      rgba(59,130,246,.14) 18px 19px,
      rgba(59,130,246,.00) 19px 40px);
  filter: blur(.2px) drop-shadow(0 0 26px rgba(59,130,246,.28));
  opacity: .75;
  animation: teachers-ref-waves 3.4s ease-out infinite;
}

.teachers-page .teachers-ref-hero-orbit::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(980px, 120%);
  height: min(980px, 120%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background: repeating-radial-gradient(circle,
    rgba(0,209,255,.00) 0 26px,
    rgba(0,209,255,.10) 26px 27px,
    rgba(0,209,255,.00) 27px 54px);
  filter: drop-shadow(0 0 26px rgba(0,209,255,.18));
  opacity: .55;
  animation: teachers-ref-waves-2 4.2s ease-out infinite;
}

@keyframes teachers-ref-waves{
  0%{ transform: translate(-50%, -50%) scale(.72); opacity: 0; }
  18%{ opacity: .75; }
  100%{ transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

@keyframes teachers-ref-waves-2{
  0%{ transform: translate(-50%, -50%) scale(.78); opacity: 0; }
  22%{ opacity: .55; }
  100%{ transform: translate(-50%, -50%) scale(1.12); opacity: 0; }
}

.teachers-page .teachers-ref-hero-mini{
  position: absolute;
  width: min(285px, 41vw);
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  text-align: left;
  color: rgba(243,246,255,.9);
  z-index: 2;
}

/* Light diffusion reflected on cards (orb spill) */
.teachers-page .teachers-ref-hero-mini::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  pointer-events: none;
  opacity: .92;
  background:
    radial-gradient(220px 160px at 55% 35%, rgba(59,130,246,.22), transparent 62%),
    radial-gradient(260px 180px at 60% 55%, rgba(0,209,255,.14), transparent 66%);
  mix-blend-mode: screen;
}

/* Subtle gradient tint per card to mimic light falloff */
.teachers-page .teachers-ref-hero-mini--tl{
  background-image: radial-gradient(240px 160px at 110% 60%, rgba(59,130,246,.14), transparent 70%);
}
.teachers-page .teachers-ref-hero-mini--bl{
  background-image: radial-gradient(260px 170px at 110% 20%, rgba(0,209,255,.12), transparent 72%);
}
.teachers-page .teachers-ref-hero-mini--tr{
  background-image: radial-gradient(240px 160px at -10% 60%, rgba(59,130,246,.14), transparent 70%);
}
.teachers-page .teachers-ref-hero-mini--br{
  background-image: radial-gradient(260px 170px at -10% 20%, rgba(0,209,255,.12), transparent 72%);
}

/* Scrolling chips/tags inside cards */
.teachers-page .teachers-ref-hero-ticker{
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  overflow: hidden;
  padding: 10px 10px;
}

.teachers-page .teachers-ref-hero-ticker::before,
.teachers-page .teachers-ref-hero-ticker::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.teachers-page .teachers-ref-hero-ticker::before{
  left: 0;
  background: linear-gradient(90deg, rgba(8,12,24,.90), rgba(8,12,24,0));
}

.teachers-page .teachers-ref-hero-ticker::after{
  right: 0;
  background: linear-gradient(270deg, rgba(8,12,24,.90), rgba(8,12,24,0));
}

.teachers-page .teachers-ref-hero-ticker-track{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: teachers-ref-ticker 16s linear infinite;
}

.teachers-page .teachers-ref-hero-ticker-track--slow{
  animation-duration: 22s;
}

.teachers-page .teachers-ref-hero-ticker-track--reverse{
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes teachers-ref-ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.teachers-page .teachers-ref-hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(243,246,255,.84);
  font-size: .82rem;
}

.teachers-page .teachers-ref-hero-chip.is-blue{
  background: rgba(59,130,246,.16);
  border-color: rgba(59,130,246,.22);
}

.teachers-page .teachers-ref-hero-chip.is-cyan{
  background: rgba(0,209,255,.14);
  border-color: rgba(0,209,255,.20);
}

@media (prefers-reduced-motion: reduce){
  .teachers-page .teachers-ref-hero-ticker-track{ animation: none; }
}

.teachers-page .teachers-ref-hero-mini-title{
  font-weight: 600;
  font-size: .95rem;
  color: rgba(243,246,255,.92);
  margin-bottom: 10px;
}

.teachers-page .teachers-ref-hero-mini-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.teachers-page .teachers-ref-hero-mini-badge{
  font-size: .78rem;
  color: rgba(243,246,255,.78);
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}

.teachers-page .teachers-ref-hero-mini-row{
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.teachers-page .teachers-ref-hero-mini-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(59,130,246,.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.teachers-page .teachers-ref-hero-mini-text{
  font-size: .86rem;
  color: rgba(243,246,255,.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teachers-page .teachers-ref-hero-mini-pill{
  font-size: .78rem;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(59,130,246,.14);
  color: rgba(243,246,255,.82);
}

.teachers-page .teachers-ref-hero-mini-footer{
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  color: rgba(243,246,255,.72);
  font-size: .84rem;
}

.teachers-page .teachers-ref-hero-mini-chart{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 74px;
  padding: 8px 0 2px;
}

.teachers-page .teachers-ref-hero-mini-chart span{
  display: block;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(59,130,246,.35));
  box-shadow: 0 10px 30px rgba(59,130,246,.18);
}
.teachers-page .teachers-ref-hero-mini-chart span:nth-child(1){ height: 26%; opacity:.55; }
.teachers-page .teachers-ref-hero-mini-chart span:nth-child(2){ height: 48%; opacity:.65; }
.teachers-page .teachers-ref-hero-mini-chart span:nth-child(3){ height: 62%; opacity:.78; }
.teachers-page .teachers-ref-hero-mini-chart span:nth-child(4){ height: 76%; opacity:.92; }
.teachers-page .teachers-ref-hero-mini-chart span:nth-child(5){ height: 58%; opacity:.75; }

.teachers-page .teachers-ref-hero-mini-axis{
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: .75rem;
  color: rgba(243,246,255,.60);
}

/* Positions */
.teachers-page .teachers-ref-hero-mini--tl{ left: 0; top: 34%; transform: translateY(-50%); }
.teachers-page .teachers-ref-hero-mini--bl{ left: 0; bottom: 0; }
.teachers-page .teachers-ref-hero-mini--tr{ right: 0; top: 34%; transform: translateY(-50%); }
.teachers-page .teachers-ref-hero-mini--br{ right: 0; bottom: 0; }

@media (max-width: 980px){
  .teachers-page .teachers-ref-hero-orbit{
    height: auto;
    min-height: unset;
  }
  .teachers-page .teachers-ref-hero-orbit::before,
  .teachers-page .teachers-ref-hero-orbit::after{ display: none; }
  .teachers-page .teachers-ref-hero-mini{
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin: 12px auto 0;
  }
  .teachers-page .teachers-ref-hero-orb{
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 24px auto 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .teachers-page .teachers-ref-hero-orbit::before,
  .teachers-page .teachers-ref-hero-orbit::after{ animation: none; opacity: .25; }
}

.teachers-page .teachers-orbit-bg{
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .95;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.teachers-page .teachers-orbit::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, 110%);
  height: min(920px, 110%);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  opacity: .85;
}

.teachers-page .teachers-orbit::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 92%);
  height: min(680px, 92%);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  opacity: .9;
}

.teachers-page .teachers-orbit-center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 16px 14px;
  z-index: 3;
}

.teachers-page .teachers-orbit-center-top{
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(0,209,255,.18));
  position: relative;
  overflow: hidden;
}

.teachers-page .teachers-orbit-badge{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(16,185,129,.95);
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.16);
}

.teachers-page .teachers-orbit-avatar{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  margin: -34px auto 10px;
  border: 2px solid rgba(255,255,255,.22);
  background: url('/assets/img/optimized/Profile%20pic/1%20(11).c9b7b7bf.avif');
  background-size: cover;
  background-position: center;
  box-shadow: none;
  position: relative;
  z-index: 3;
  opacity: 1;
}

.teachers-page .teachers-orbit-person{
  margin: -2px 0 10px;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(243,246,255,.88);
}

.teachers-page .teachers-orbit-name{
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: rgba(243,246,255,.92);
}

.teachers-page .teachers-orbit-sub{
  margin: 4px 0 12px;
  text-align: center;
  color: rgba(243,246,255,.72);
  font-size: .95rem;
}

.teachers-page .teachers-orbit-progress{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: rgba(243,246,255,.62);
  font-size: .9rem;
}

.teachers-page .teachers-orbit-progress-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
}

.teachers-page .teachers-orbit-progress-bar{
  height: 100%;
  width: var(--p, 60%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(168,85,247,.95), rgba(255,90,205,.82));
}

.teachers-page .teachers-orbit-callout{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(243,246,255,.78);
  font-size: .95rem;
  text-align: center;
}

.teachers-page .teachers-orbit-item{
  position: absolute;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  min-width: 240px;
}

.teachers-page .teachers-orbit-item-title{
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(243,246,255,.92);
}

.teachers-page .teachers-orbit-item-sub{
  margin-top: 2px;
  color: rgba(243,246,255,.68);
  font-size: .9rem;
}

.teachers-page .teachers-orbit-ico{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(243,246,255,.82);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.teachers-page .teachers-orbit-ico svg{
  display: block;
}

.teachers-page .teachers-orbit-ico--folder{
  background:
    radial-gradient(220px 140px at 30% 20%, rgba(0,209,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}

.teachers-page .teachers-orbit-ico--img{
  background:
    radial-gradient(220px 140px at 30% 20%, rgba(168,85,247,.16), transparent 55%),
    radial-gradient(220px 140px at 80% 50%, rgba(0,209,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}

.teachers-page .teachers-orbit-ico--pdf{ color: rgba(220,38,38,.9); }
.teachers-page .teachers-orbit-ico--xls{ color: rgba(22,163,74,.9); }
.teachers-page .teachers-orbit-ico--txt{ color: rgba(59,130,246,.9); }
.teachers-page .teachers-orbit-ico--csv{ color: rgba(234,179,8,.95); }

/* Positions (desktop) */
.teachers-page .teachers-orbit-item--tl{ left: 6%; top: 16%; }
.teachers-page .teachers-orbit-item--tr{ right: 6%; top: 16%; }
.teachers-page .teachers-orbit-item--ml{ left: 4%; top: 50%; transform: translateY(-50%); }
.teachers-page .teachers-orbit-item--mr{ right: 4%; top: 50%; transform: translateY(-50%); }
.teachers-page .teachers-orbit-item--bl{ left: 10%; bottom: 12%; }
.teachers-page .teachers-orbit-item--br{ right: 10%; bottom: 12%; }

@media (max-width: 980px){
  .teachers-page .teachers-orbit{
    min-height: unset;
    padding: 18px;
  }

  .teachers-page .teachers-orbit::before,
  .teachers-page .teachers-orbit::after{
    display: none;
  }

  .teachers-page .teachers-orbit-center{
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 16px;
  }

  .teachers-page .teachers-orbit-item{
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    min-width: unset;
    width: 100%;
    margin-top: 12px;
  }
}

@media (min-width: 980px){
  .teachers-page .teachers-ref-card{ padding: 18px; min-height: 228px; }
  .teachers-page .teachers-ref-media{ height: 124px; }
}

.container{
  width: min(100% - 40px, var(--container));
  margin-inline:auto;
}

/* --- Students page (mascot + screenshots placeholders) --- */
.hero-figure--students{
  overflow: visible;
}

.students-hero-art{
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.students-hero-mascot{
  width: min(520px, 92%);
  filter:
    drop-shadow(0 28px 70px rgba(0,0,0,.55))
    drop-shadow(0 12px 26px rgba(168,85,247,.18));
}

.students-hero-orb{
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: .7;
  pointer-events: none;
}

.students-hero-orb--a{
  width: 220px;
  height: 220px;
  left: 6%;
  top: 14%;
  background: radial-gradient(circle at 30% 30%, rgba(255,90,205,.95), rgba(255,90,205,.15) 62%, transparent 72%);
}

.students-hero-orb--b{
  width: 280px;
  height: 280px;
  right: 2%;
  top: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.92), rgba(168,85,247,.18) 60%, transparent 72%);
}

.students-hero-orb--c{
  width: 260px;
  height: 260px;
  right: 14%;
  bottom: 2%;
  background: radial-gradient(circle at 30% 30%, rgba(0,209,255,.55), rgba(0,209,255,.10) 55%, transparent 70%);
}

.students-intro-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
}

.students-checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.students-checklist li{
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
  color: rgba(15,23,42,.82);
}

.students-checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(168,85,247,.20);
}

.students-intro-cta{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* flag-icons (https://github.com/lipis/flag-icons)
   Ensure consistent sizing/alignment inside our marquee cards. */
.flag-card .fi{
  width: 1.6em;
  height: 1.2em;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.mascot-stack{
  position: relative;
  display: grid;
  gap: 12px;
}

.mascot-stack img{
  width: 100%;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.screens-layout{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.screen-frame{
  grid-column: span 4;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.14);
  background:
    radial-gradient(220px 180px at 30% 20%, rgba(255,90,205,.18), transparent 60%),
    radial-gradient(220px 180px at 80% 35%, rgba(168,85,247,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.92));
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  aspect-ratio: 9 / 16;
}

.screen-frame--tall{
  grid-column: span 4;
  aspect-ratio: 9 / 18;
}

.screen-frame--wide{
  grid-column: span 12;
  aspect-ratio: 16 / 7;
}

.screens-note{
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.screens-mascot{
  width: 110px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
}

.motivation{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(255,90,205,.16), transparent 60%),
    radial-gradient(700px 380px at 85% 10%, rgba(168,85,247,.16), transparent 60%),
    rgba(255,255,255,.80);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.motivation-media img{
  width: 100%;
  filter: drop-shadow(0 22px 60px rgba(0,0,0,.22));
}

@media (max-width: 980px){
  .students-hero-art{min-height: 300px;}
  .students-intro-grid{grid-template-columns: 1fr;}
  .screens-layout{grid-template-columns: 1fr;}
  .screen-frame,
  .screen-frame--tall,
  .screen-frame--wide{grid-column: auto; aspect-ratio: 16 / 9;}
  .screens-note{flex-direction: column; align-items: flex-start;}
  .motivation{grid-template-columns: 1fr;}
}

@media (prefers-reduced-motion: reduce){
  .students-hero-mascot,
  .screens-mascot,
  .motivation-media img{filter:none;}
}

/* Messenger-like feature splits (students page) */
/* (removed) students feature splits */

/* How it works (students page) */
.howit{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: center;
}

.howit-flow{
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(560px 380px at 18% 18%, rgba(255, 90, 205, .26), transparent 58%),
    radial-gradient(560px 380px at 84% 40%, rgba(168, 85, 247, .22), transparent 58%),
    linear-gradient(180deg, rgba(8, 12, 24, .92), rgba(8, 12, 24, .72));
  overflow: hidden;
}

/* ImaginAi logo in how-it-works frame */
.howit-flow .howit-logo{
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 16px 44px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05) inset;
}

.howit-flow .howit-logo img{
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}


/* Keep it dark even on light sections (requested) */
.section-dark .howit-flow{border-color: rgba(255,255,255,.12);}

.howit-flow::before{
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px dashed rgba(243,246,255,.18);
  opacity: .6;
}

.flow-line{
  position: absolute;
  left: 32px;
  right: 32px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(168,85,247,.00) 0%,
      rgba(168,85,247,.40) 18%,
      rgba(255,90,205,.40) 55%,
      rgba(255,90,205,.00) 100%);
  opacity: .9;
  box-shadow:
    0 0 22px rgba(168,85,247,.22),
    0 0 34px rgba(255,90,205,.18);
}

.flow-line::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.0) 0,
      rgba(255,255,255,.0) 18px,
      rgba(255,255,255,.70) 18px,
      rgba(255,255,255,.70) 36px);
  transform: translateX(-36px);
  animation: flow-dash 1.2s linear infinite;
  opacity: .65;
}



.flow-node{
  position: absolute;
  width: 122px;
  height: 122px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.86);
  display: grid;
  place-items: center;
  gap: 6px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255,255,255,.20) inset,
    0 0 26px rgba(168,85,247,.10);
}

.flow-node--a{left: 54px; top: 84px;}
.flow-node--b{left: 50%; top: 54px; transform: translateX(-50%);}
.flow-node--c{right: 54px; top: 112px;}
.flow-node--d{left: 50%; bottom: 54px; transform: translateX(-50%);}

.node-icon{font-size: 26px; margin-bottom: -2px;}
.node-label{font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: rgba(15,23,42,.88);}

/* Label tweak: show (You) after Review */
.flow-node--c .node-label::after{content: " (You)"; font-weight: 800; opacity: .82;}

.flow-pulse{
  position: absolute;
  left: 32px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255,90,205,.92);
  box-shadow:
    0 0 0 10px rgba(255,90,205,.16),
    0 0 28px rgba(255,90,205,.26),
    0 0 46px rgba(168,85,247,.18);
  animation: flow-pulse 2.4s linear infinite;
}


/* Re-route the pink pulse so it visually starts near Goal and heads into Review */
.flow-pulse{left: 86px; right: 86px;}

.flow-pulse{
  top: 50%;
  animation-name: flow-pulse-goal-to-review;
}

@keyframes flow-pulse-goal-to-review{
  0%{transform: translateY(-50%) translateX(0); opacity: .95;}
  45%{opacity: 1;}
  100%{transform: translateY(-50%) translateX(calc(50vw - 220px)); opacity: .10;}
}





.howit-steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.howit-step{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
}

.section-dark .howit-step{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.step-badge{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(15,23,42,.92);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,90,205,.35), transparent 60%),
    radial-gradient(24px 24px at 70% 50%, rgba(168,85,247,.28), transparent 60%),
    rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
}

.section-dark .step-badge{
  color: rgba(243,246,255,.92);
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,90,205,.25), transparent 60%),
    radial-gradient(24px 24px at 70% 50%, rgba(168,85,247,.22), transparent 60%),
    rgba(255,255,255,.06);
}

.step-title{margin: 2px 0 6px; font-size: 16px;}
.step-text{margin: 0; color: rgba(15,23,42,.78); line-height: 1.65;}
.section-dark .step-text{color: rgba(243,246,255,.84);}

@keyframes flow-dash{
  to{transform: translateX(0);}
}

@keyframes flow-pulse{
  0%{transform: translateY(-50%) translateX(0); opacity: .9;}
  40%{opacity: 1;}
  100%{transform: translateY(-50%) translateX(calc(100% - 64px)); opacity: .05;}
}

@media (max-width: 980px){
  .howit{grid-template-columns: 1fr;}
  .howit-flow{min-height: 320px;}
  .flow-node{width: 104px; height: 104px;}
  .flow-node--a{left: 22px; top: 64px;}
  .flow-node--c{right: 22px; top: 94px;}
  .flow-node--b{top: 36px;}
  .flow-node--d{bottom: 36px;}
}

@media (prefers-reduced-motion: reduce){
  .flow-line::after,
  .flow-pulse{
    animation: none !important;
  }
}

.app-shot{
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(240px 190px at 22% 18%, rgba(255,90,205,.22), transparent 60%),
    radial-gradient(240px 190px at 84% 32%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.92));
}

.section-dark .app-shot{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(240px 190px at 22% 18%, rgba(255,90,205,.20), transparent 60%),
    radial-gradient(240px 190px at 84% 32%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.app-shot--phone{aspect-ratio: 9 / 16;}
.app-shot--wide{aspect-ratio: 16 / 9;}
.app-shot--mini{aspect-ratio: 9 / 16;}

.app-shot-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Two-column promo block with iPhone-ratio media (max-height 400px) */
.split-promo{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 40px;
  max-height: 50vh;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.12);
  background: transparent;
  box-shadow: none;
}

/* Ensure media never gets cut inside the 50vh container */
.split-promo__media{
  height: 100%;
  min-height: 0;
}

.section-dark .split-promo{
  border-color: rgba(255,255,255,.12);
}

.split-promo__copy .badge{margin-bottom: 10px;}

  width: auto;
  height: 100%;
  max-width: min(240px, 86%);
  /* iPhone 13 portrait aspect ratio: 1170x2532 */
  aspect-ratio: 1170 / 2532;
}

/* When the screenshots are wrapped in <picture>, ensure the wrapper doesn't break absolute positioning */
.phone-stack picture{
  display: contents;
}

/* Same fix for any other absolute-positioned media wrappers */
.feature-media picture{
  display: contents;
}

.phone-placeholder{
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(260px 200px at 22% 20%, rgba(255,90,205,.22), transparent 60%),
    radial-gradient(260px 200px at 86% 35%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.92));
  box-shadow:
    0 26px 78px rgba(15, 23, 42, 0.18),
    0 12px 30px rgba(168,85,247,.12),
    0 0 0 2px rgba(15,23,42,.12),
    0 0 0 8px rgba(15,23,42,.06);
  position: absolute;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  background-clip: padding-box;
}

.phone-placeholder::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px dashed rgba(15,23,42,.18);
  opacity: .7;
  pointer-events: none;
}

/* iPhone-like outer rim + side highlights */
.phone-placeholder::before{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 28%),
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 22%),
    linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,0) 22%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 6px;
  box-sizing: border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .85;
  pointer-events: none;
}

.phone-placeholder{
  left: 50%;
  top: 50%;
  transform: translate(-58%, -50%) rotate(-2deg);
}

.phone-placeholder--over{
  transform: translate(-18%, -58%) rotate(3deg);
  background:
    radial-gradient(260px 200px at 22% 20%, rgba(168,85,247,.20), transparent 60%),
    radial-gradient(260px 200px at 86% 35%, rgba(255,90,205,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.88));
}

/* Ensure <picture> wrappers don't contribute to layout and stacking stays contained */
.phone-stack > picture{
  display: contents;
}

/* Force both images to share the same anchoring box (prevents the huge offset seen on some viewports) */
.phone-stack img.phone-placeholder{
  inset: auto;
  margin: 0;
}

/* feature-media overflow must stay visible (no cropping) */
.feature-split .feature-media{overflow: visible;}

.section-dark .phone-placeholder{
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(260px 200px at 22% 20%, rgba(255,90,205,.18), transparent 60%),
    radial-gradient(260px 200px at 86% 35%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.40),
    0 0 0 2px rgba(255,255,255,.10),
    0 0 0 8px rgba(255,255,255,.05);
}

.section-dark .phone-placeholder::after{
  border-color: rgba(243,246,255,.22);
}

@media (max-width: 980px){
  .feature-split{grid-template-columns: 1fr; padding: 18px 26px;}
  .feature-split--reverse{grid-template-columns: 1fr;}
  .feature-split--reverse .feature-copy,
  .feature-split--reverse .feature-media{order: initial;}
  .feature-kpis{grid-template-columns: 1fr;}
  .app-shot-grid{grid-template-columns: 1fr;}

  .phone-stack{height: 320px;}
  .phone-placeholder{max-width: min(220px, 84%);}
  .phone-placeholder{transform: translate(-58%, -50%) rotate(-2deg);}
  .phone-placeholder--over{transform: translate(-18%, -56%) rotate(3deg);}
}

/* Ensure APPRENTISSAGE block stays 2 columns on desktop */
@media (min-width: 981px){
  .feature-split.feature-split--learning{
    grid-template-columns: 1.15fr .85fr;
  }
}

@media (min-width: 981px){
  /* Slightly tighter offsets on desktop to avoid edges touching/cropping */
  .phone-placeholder{transform: translate(-56%, -50%) rotate(-2deg);}
  .phone-placeholder--over{transform: translate(-14%, -56%) rotate(3deg);}
}

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{left:14px; top:14px}

/* Floating back-to-top button */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.86);
  color: rgba(15,23,42,.92);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);

  /* Scroll progress ring */
  --progress: 0;

  /* Progress ring thickness (editable) */
  --ring: 6px;
}

.back-to-top::before{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(14px + 6px);
  background:
    conic-gradient(from -90deg,
      /* match btn-primary gradient */
      var(--brand) 0deg,
      var(--brand2) calc(var(--progress) * 1turn),
      rgba(15,23,42,.14) 0
    );
  -webkit-mask:
    radial-gradient(farthest-side,
      transparent calc(100% - var(--ring)),
      #000 calc(100% - (var(--ring) - 1px))
    );
          mask:
    radial-gradient(farthest-side,
      transparent calc(100% - var(--ring)),
      #000 calc(100% - (var(--ring) - 1px))
    );
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

/* Ensure button (background + icon) stays above the progress ring */
.back-to-top{
  isolation: isolate;
  z-index: 999;
}

.back-to-top::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  box-shadow: inherit;
  z-index: 1;
}

.back-to-top svg{
  position: relative;
  z-index: 2;
}


.back-to-top svg{width: 20px; height: 20px;}

.back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.96);
}

.section-dark .back-to-top{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(243,246,255,.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.section-dark .back-to-top::before{
  background:
    conic-gradient(from -90deg,
      var(--brand) 0deg,
      var(--brand2) calc(var(--progress) * 1turn),
      rgba(255,255,255,.16) 0
    );
}

@media (prefers-reduced-motion: reduce){
  .back-to-top{transition: none;}
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,10,20,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-elevated{box-shadow: 0 14px 40px rgba(0,0,0,.22); background: rgba(7,10,20,.86); border-bottom-color: rgba(255,255,255,.10);}

/* Home: let the hero background show THROUGH the navbar before scroll,
   while keeping the navbar's same base color feel */
.site-header:has(+ main .hero.hero-mesh){
  background: rgba(7,10,20,.64);
}
.site-header:has(+ main .hero.hero-mesh).is-elevated{
  background: rgba(7,10,20,.86);
}

/* Force dark navbar always (avoid unreadable menu on light sections) */
.site-header:has(+ main .hero.section-dark){
  background: rgba(7,10,20,.86);
  border-bottom-color: rgba(255,255,255,.10);
}

/* Hide on scroll down / show on scroll up */
.site-header{
  transform: translateY(0);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.site-header.is-hidden{transform: translateY(-110%)}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  gap:16px;
}

.brand-logo{height:26px; width:auto}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap: wrap;
}

/* Keep primary CTA visible: if space is tight, allow it to wrap to a new line
   instead of being pushed outside the header */
.nav-link{flex: 0 0 auto;}
.nav .btn{flex: 0 0 auto;}
.nav .btn.btn-students{flex: 0 0 auto;}

/* Responsive header spacing: keep burger away from logo */
@media (max-width: 980px){
  .header-inner{
    gap: 14px;
  }
  .site-header .nav-toggle{
    margin-left: 8px;
  }
}

/* Simple cards (used in Problem section) */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  padding: 16px 16px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.section-dark .card{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.20);
}

.card-title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.card-text{
  margin: 0;
  color: rgba(15,23,42,.78);
  line-height: 1.65;
}

.card-meta{
  margin: 6px 0 0;
  color: rgba(15,23,42,.66);
  font-size: 13px;
  line-height: 1.4;
}

.section-dark .card-text{
  color: rgba(243,246,255,.86);
}

@media (max-width: 980px){
  .cards{grid-template-columns: 1fr;}
}

.nav-link{
  font-size:14px;
  color:rgba(243,246,255,.86);
  padding:10px 10px;
  border-radius:12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover{background: rgba(255,255,255,.08); color: rgba(243,246,255,.98); transform: translateY(-1px)}

/* Active menu item */
.nav-link.is-active{
  background: rgba(255,255,255,.12);
  color: rgba(243,246,255,.98);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

.nav-toggle{
  display:none;
  width:40px;
  height:40px;
  border-radius:12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.nav-toggle-bar{display:block; height:2px; margin:6px 10px; background: currentColor; border-radius:999px}

.nav-toggle-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: rgba(243,246,255,.98);
}

.nav-toggle-meatball{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(243,246,255,.98);
}

/* Custom "more" icon (2 equal bars + 1 shorter) */
.nav-toggle-more{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content:center;
  width:100%;
  height:100%;
  gap: 6px;
  padding: 0;
}

.nav-toggle-more-bar{
  height: 2px;
  width: 22px;
  background: rgba(243,246,255,.98);
  border-radius: 999px;
}

.nav-toggle-more-bar.is-short{
  width: 14px;
}

/* Center the custom icon in its box */
.nav-toggle-more{
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-more-inner{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content:center;
  gap: 5px;
}

.nav-toggle-more-bar{
  transition:
    transform 260ms ease,
    width 260ms ease,
    opacity 180ms ease;
  will-change: transform, width, opacity;
}

/* Slightly smaller hamburger bars */
.nav-toggle-more-bar{
  width: 20px;
}

.nav-toggle-more-bar.is-short{
  width: 12px;
}

.nav-toggle-more-inner{
  transition:
    transform 260ms ease,
    width 260ms ease,
    height 260ms ease;
  will-change: transform, width, height;
}

/* Transform into an "X" when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-more-inner{
  position: relative;
  width: 24px;
  height: 24px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-more-bar{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-more-bar:nth-child(1){
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-more-bar:nth-child(2){
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-more-bar:nth-child(3){
  opacity: 0;
}

/* Ensure hamburger icon stays visible on any header background */
.site-header .nav-toggle{color: rgba(243,246,255,.98)}
.site-header .nav-toggle-bar{background: rgba(243,246,255,.98)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(10,20,40,.14);
  background: rgba(255,255,255,.75);
  color: var(--text);
  font-weight:600;
  font-size:14px;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}

/* Smooth arrow reveal on hover (used by team LinkedIn button, and safe for other buttons) */
.btn{
  position: relative;
}

.btn::after{
  content: "→";
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: width .22s ease, opacity .22s ease, transform .22s ease;
}

/* If the button already has an icon (chevron/arrow/etc.), don't add the hover arrow */
.btn:has(.btn-icon)::after,
.btn.no-hover-arrow::after{
  content: none;
  display: none;
}

.btn:hover::after,
.btn:focus-visible::after{
  width: 1.1em;
  opacity: 1;
  transform: translateX(0);
}

.btn:active::after{transform: translateX(1px)}
.btn-icon{
  display:inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn-icon svg{width:100%; height:100%; display:block}
.btn:hover{transform: translateY(-1px); filter: brightness(1.03)}
.btn:active{transform: translateY(0px)}

/* Outlined button variant (used for LinkedIn in About team) */
.btn-outline{
  background: transparent;
  border-color: rgba(10,20,40,.22);
  color: rgba(12,16,32,.86);
}

.btn-outline:hover{
  background: rgba(10,20,40,.04);
  transform: translateY(-1px);
}

.btn-outline:active{transform: translateY(0px)}

.btn-linkedin{
  margin-top: 10px;
  width: fit-content;
}

.btn-linkedin .btn-icon{width: 18px; height: 18px}

.btn-linkedin:hover{
  /* LinkedIn brand hover */
  background: #0A66C2;
  border-color: #0A66C2;
  color: #fff;
}

.btn-linkedin:hover .btn-icon{
  color: #fff;
}

/* Footer logo variant (light vs dark background) */
.footer-logo--dark{display:none}
.footer.is-light .footer-logo--light{display:none}
.footer.is-light .footer-logo--dark{display:block}

/* Footer social icons */
.social-btn .btn-icon{width:18px; height:18px}

.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#fff;
  box-shadow: 0 14px 40px rgba(124,92,255,.18);
}

/* --- Home/About: CTA banner (same as teachers page CTA above footer) --- */
.home-page .tfx-cta-banner,
.about-page .tfx-cta-banner {
  position: relative;
  overflow: clip;
  min-height: clamp(65vh, 80vh, 100vh);
  display: grid;
  align-items: center;
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 0;
  border-bottom: 0;
}

.home-page .tfx-cta-banner-bg,
.about-page .tfx-cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('/assets/img/bg%20laptop.jpeg');
  transform: scale(1.02);
}

.home-page .tfx-cta-banner-bg::after,
.about-page .tfx-cta-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,32,.70), rgba(11,16,32,.88)),
    radial-gradient(600px 420px at 30% 20%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(640px 460px at 70% 25%, rgba(0,210,255,.16), transparent 62%);
}

.home-page .tfx-cta-banner-inner,
.about-page .tfx-cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  padding: 22px;
}

.home-page .tfx-cta-banner-inner .tfx-card,
.about-page .tfx-cta-banner-inner .tfx-card {
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: 22px;
  background: rgba(11,16,32,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(243,246,255,.96);
}

.home-page .tfx-cta-banner-title,
.about-page .tfx-cta-banner-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.98);
}

.home-page .tfx-cta-banner-sub,
.about-page .tfx-cta-banner-sub {
  margin: 0;
  color: rgba(243,246,255,.80);
  font-size: 1.05rem;
}

.home-page .tfx-cta-banner-actions,
.about-page .tfx-cta-banner-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-page .tfx-cta-banner .btn.btn-ghost,
.about-page .tfx-cta-banner .btn.btn-ghost {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.06);
}
.home-page .tfx-cta-banner .btn.btn-ghost:hover,
.about-page .tfx-cta-banner .btn.btn-ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.38);
}

/* --- Home: teachers-like testimonials marquee (reused from teachers page) --- */
.home-page .tfx-testimonials{
  position: relative;
  overflow: clip;
  padding-top: 72px;
  padding-bottom: 72px;
}
.home-page .tfx-testimonials-title{
  margin: 0;
  margin-bottom: 40px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.15;
  color: rgba(12,16,32,.92);
}

.home-page .tfx-carousel{
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.home-page .tfx-carousel-track{
  display: flex;
  gap: 14px;
  width: max-content;
  animation: tfx-marquee 26s linear infinite;
}
.home-page .tfx-carousel:hover .tfx-carousel-track{ animation-play-state: paused; }

@keyframes tfx-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.home-page .tfx-testimonial{
  width: min(520px, calc(100vw - 72px));
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: none;
  padding: 16px 16px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 980px){
  .home-page .tfx-testimonial{ width: 420px; }
}

.home-page .tfx-testimonial-head{
  display: flex;
  gap: 12px;
  align-items: center;
}
.home-page .tfx-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    radial-gradient(22px 22px at 30% 30%, rgba(255, 45, 155, .18), transparent 70%),
    radial-gradient(22px 22px at 70% 40%, rgba(172, 66, 255, .14), transparent 70%),
    rgba(12,16,32,.06);
  border: 1px solid rgba(15,23,42,.10);
  overflow: hidden;
  flex: none;
}
.home-page .tfx-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-page .tfx-testimonial-name{
  margin: 0;
  font-weight: 700;
  color: rgba(12,16,32,.90);
  line-height: 1.15;
}
.home-page .tfx-stars{
  margin-top: 4px;
  display: inline-flex;
  gap: 3px;
  color: #f6b623;
}
.home-page .tfx-quote{
  margin: 12px 0 0;
  color: rgba(12,16,32,.78);
  line-height: 1.55;
}

.btn-ghost{
  background: transparent;
}

/* Secondary button should remain visible on very dark sections */
.section-dark .btn-ghost{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: rgba(243,246,255,.92);
}
.section-dark .btn-ghost:hover{
  background: rgba(255,255,255,.16);
}

/* Teacher CTA on dark navbar: high-contrast */
.site-header .btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: rgba(243,246,255,.96);
}
.site-header .btn-ghost:hover{
  background: rgba(255,255,255,.18);
}

/* Language toggle */
.lang-toggle{
  cursor: pointer;
  gap: 8px;
}
.lang-toggle-label{letter-spacing: .02em}

/* Sections */
.section{padding: 84px 0}
.section-alt{
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(800px 500px at 85% 10%, rgba(0,209,255,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.0));
  border-top: 1px solid rgba(10,20,40,.06);
  border-bottom: 1px solid rgba(10,20,40,.06);
}

/* Dark alternating band (like the reference) */
.section-dark{
  position: relative;
  background:
    radial-gradient(900px 560px at 25% 20%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(800px 520px at 80% 0%, rgba(0,209,255,.16), transparent 58%),
    linear-gradient(180deg, var(--dark-bg) 0%, #070A14 100%);
  color: var(--dark-text);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.section-dark .section-subtitle{color: var(--dark-muted)}
.section-dark .navy-muted{color: var(--dark-muted)}

.section-dark .card,
.section-dark .program,
.section-dark .value,
.section-dark .testimonial,
.section-dark .contact-card,
.section-dark .form,
.section-dark .metric{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.section-dark .card p,

/* Impact (ODD4) image grid */
.impact-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 18px;
}

.impact-tile{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  margin: 0;
}

.impact-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.impact-tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.52) 70%, rgba(0,0,0,.70) 100%);
}

.impact-tile figcaption{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}

.impact-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243,246,255,.78);
}

.impact-title{
  margin: 8px 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.impact-desc{
  margin: 0;
  color: rgba(243,246,255,.80);
  line-height: 1.55;
  max-width: 60ch;
}

.impact-tile--a{grid-row: 1 / span 2; grid-column: 1;}
.impact-tile--b{grid-row: 1; grid-column: 2;}
.impact-tile--c{grid-row: 2; grid-column: 2;}

.impact-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Ensure secondary button is visible on dark background */
.section-dark .impact-cta .btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: rgba(243,246,255,.96);
}

.section-dark .impact-cta .btn-ghost:hover{
  background: rgba(255,255,255,.18);
}

@media (max-width: 980px){
  .impact-grid{
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .impact-tile--a{grid-row: auto; grid-column: auto;}
  .impact-tile--b{grid-row: auto; grid-column: auto;}
  .impact-tile--c{grid-row: auto; grid-column: auto;}
}

/* Commitment / Progressive reading section */
.commitment{
  position: relative;
  /* Provide scroll length; pinned area is handled by the sticky inner wrapper */
  min-height: 160vh;
}

.commitment-sticky{
  position: sticky;
  top: 0;
  height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 6vh;
  pointer-events: none;
}

.commitment-sticky > .container{
  pointer-events: auto;
}

.commitment-text{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 980px;
  color: rgba(12, 16, 32, 0.15); /* initial base state (15% of final) */
}

.progressive-word{
  display: inline;
  color: rgba(12, 16, 32, 0.15);
  transition: color 120ms linear;
}

.progressive-word.is-dark{
  color: rgba(12, 16, 32, 0.98);
}

@media (prefers-reduced-motion: reduce){
  .progressive-word{transition: none;}
}
.section-dark .program p,
.section-dark .value p,
.section-dark .t-role,
.section-dark .metric-label,
.section-dark .form-hint{
  color: var(--dark-muted);
}

.section-dark .pill{
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
}

.section-dark input,
.section-dark textarea{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.14);
  color: var(--dark-text);
}
.section-dark input::placeholder,
.section-dark textarea::placeholder{color: rgba(243,246,255,.55)}

.section-head{max-width: 720px; margin-bottom: 34px}
.section-head--center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-title{font-size: 36px; letter-spacing: -0.03em; margin:0 0 10px}
.section-subtitle{margin:0; color: var(--muted); line-height:1.65}

/* Split sections (product focus) */
.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items:center;
}
.split-reverse{
  grid-template-columns: .95fr 1.05fr;
}
.split-reverse .split-copy{order:2}
.split-reverse .split-media{order:1}

.kicker{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color: rgba(12,16,32,.62);
}
.section-dark .kicker{color: rgba(243,246,255,.70)}

.split-cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.split-media{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.60);
  box-shadow: 0 22px 80px rgba(0,0,0,.14);
}
.section-dark .split-media{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 22px 90px rgba(0,0,0,.40);
}
.split-media img{width:100%; height:auto; display:block; aspect-ratio: 16/10; object-fit: cover}

@media (max-width: 980px){
  .split,
  .split-reverse{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .split-reverse .split-copy,
  .split-reverse .split-media{order: initial}
}

/* Social proof / milestones */
.kpi-milestones{
  /* ensure this overrides .section-dark background */
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%) !important;
}

/* Ensure readable typography on gradient KPI band */
.kpi-milestones,
.kpi-milestones .section-title,
.kpi-milestones .section-subtitle{
  color: rgba(255,255,255,.96);
}

.kpi-milestones .section-subtitle{
  color: rgba(255,255,255,.86);
}

.kpi-milestones .milestone-kpi{color: #FFFFFF;}
.kpi-milestones .milestone-label{color: rgba(255,255,255,.82);}
.kpi-milestones .milestone-note{color: rgba(255,255,255,.80);}

/* Homepage: teachers pain points (scoped + renamed) */
.home-page .home-teachers-pain{
  position: relative;
  overflow: clip;
}

.home-page .home-teachers-pain::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(520px 360px at 18% 18%, rgba(124,92,255,.14), transparent 62%),
    radial-gradient(520px 360px at 82% 22%, rgba(0,210,255,.12), transparent 62%),
    radial-gradient(680px 420px at 55% 105%, rgba(255,77,155,.10), transparent 70%),
    #ffffff;
}

.home-page .home-teachers-pain > .container{position: relative; z-index: 1;}

.home-page .home-teachers-pain-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 980px){
  .home-page .home-teachers-pain-grid{grid-template-columns: 1fr 1fr; gap: 42px;}
}

.home-page .home-teachers-pain-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11,16,32,.10);
  background: rgba(11,16,32,.02);
  min-height: 320px;
  background-image:
    linear-gradient(180deg, rgba(11,16,32,.12), rgba(11,16,32,.28)),
    url('/assets/img/teacher%20suffering.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-page .home-teachers-pain-content{
  height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 40px 0;
}

.home-page .home-teachers-pain-title{
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  color: rgba(11,16,32,.92);
}

.home-page .home-teachers-pain .badge{
  background: rgba(11,16,32,.06);
  color: rgba(11,16,32,.78);
  border: 1px solid rgba(11,16,32,.12);
}

.home-page .home-teachers-pain-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 720px){
  .home-page .home-teachers-pain-cards{grid-template-columns: 1fr 1fr;}
}

.home-page .home-teachers-pain-card{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.home-page .home-teachers-pain-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(11,16,32,.88);
  border: 1px solid rgba(11,16,32,.10);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(124,92,255,.20), transparent 70%),
    radial-gradient(18px 18px at 70% 40%, rgba(0,210,255,.16), transparent 70%),
    rgba(11,16,32,.03);
}

.home-page .home-teachers-pain-card p{
  margin: 0;
  color: rgba(11,16,32,.80);
  line-height: 1.35;
}

.home-page .home-teachers-pain-actions{
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.home-page .home-teachers-pain-actions .btn.btn-ghost{
  border-color: rgba(11,16,32,.18);
  color: rgba(11,16,32,.82);
  background: rgba(11,16,32,.04);
}
.home-page .home-teachers-pain-actions .btn.btn-ghost:hover{
  background: rgba(11,16,32,.07);
  border-color: rgba(11,16,32,.26);
}

/* Homepage: "Deux produits, un même objectif" gradient band */
.home-page .ecosystem-gradient{
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: rgba(255,255,255,.96);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.home-page .ecosystem-gradient .section-title{color: #fff;}
.home-page .ecosystem-gradient .section-subtitle{color: rgba(255,255,255,.86);}

.milestones{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.milestone{
  padding: 18px 18px;
  border-radius: 18px;
  border: none;
  background: rgba(8, 10, 18, .42);
  box-shadow: none;
}

.milestone-kpi{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.milestone-label{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(12,16,32,.64);
}

.milestone-note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.testimonials-mini{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

}

/* FAQ */
.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.section:not(.section-dark) .faq-item,
.section-alt .faq-item {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  outline: none;
}

.faq-item > summary:hover{
  background: rgba(255,255,255,.05);
}

.section:not(.section-dark) .faq-item > summary:hover,
.section-alt .faq-item > summary:hover{
  background: rgba(15,23,42,.04);
}

.faq-item > summary:focus-visible{
  box-shadow: 0 0 0 4px rgba(96, 188, 255, 0.22);
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "＋";
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  opacity: 0.9;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}

.faq-item[open] > summary::after {
  content: "−";
  transform: rotate(-180deg);
}

/* Smooth open/close micro animation */
.faq-body{
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  will-change: grid-template-rows, opacity, transform;
  transition:
    grid-template-rows .75s cubic-bezier(.12, 1, .22, 1),
    opacity .50s cubic-bezier(.12, 1, .22, 1),
    transform .75s cubic-bezier(.12, 1, .22, 1);
}

.faq-body > *{
  overflow: hidden;
}

.faq-item[open] .faq-body{
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

/* When JS requests a smooth close, keep the body rendered for the duration of the animation */
.faq-item[data-closing] .faq-body{
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows .60s cubic-bezier(.22, 1, .36, 1),
    opacity .34s cubic-bezier(.22, 1, .36, 1),
    transform .60s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce){
  .faq-body{
    transition: none;
    transform: none;
  }
  .faq-item > summary::after{
    transition: none;
  }
}

.faq-body {
  padding: 0 18px 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.section:not(.section-dark) .faq-body,
.section-alt .faq-body {
  color: rgba(15, 23, 42, 0.82);
}

.section:not(.section-dark) .faq-item > summary::after,
.section-alt .faq-item > summary::after{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
}

.faq-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-cta--center{
  justify-content: center;
}

/* Pricing (template-like) */
.pricing-hero{
  text-align:center;
  padding: 8px 0 22px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.72);
  color: rgba(12,16,32,.78);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.section-dark .pricing-badge{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(243,246,255,.84);
}

.pricing-title{
  margin: 0 0 10px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pricing-subtitle{
  margin: 0 auto;
  max-width: 720px;
  color: rgba(12,16,32,.72);
  line-height: 1.7;
}

.section-dark .pricing-subtitle{
  color: rgba(243,246,255,.72);
}

.pricing-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card{
  border-radius: 22px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.82);
  padding: 18px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  min-height: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.section-dark .pricing-card{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.section-dark .pricing-card::before{
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.12) 45%,
    rgba(255,255,255,0) 90%
  );
}

.pricing-card::before{
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -60%;
  width: 60%;
  transform: skewX(-18deg) translateX(0);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 45%,
    rgba(255,255,255,0) 90%
  );
  opacity: 0;
  pointer-events: none;
}

.pricing-card:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 84px rgba(0,0,0,.14);
}

.pricing-card:hover::before{
  opacity: 1;
  animation: pricingShine 780ms ease;
}

@keyframes pricingShine{
  from{ transform: skewX(-18deg) translateX(0); }
  to{ transform: skewX(-18deg) translateX(240%); }
}

.pricing-card--gray{
  background: rgba(10,20,40,.06);
  border-color: rgba(10,20,40,.12);
}

.section-dark .pricing-card--gray{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}

.pricing-tag{
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #071221;
  background: linear-gradient(135deg, rgba(255,210,77,1) 0%, rgba(255,128,80,1) 55%, rgba(255,73,171,1) 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  z-index: 2;
}

.pricing-card--dark .pricing-tag{ color: #071221; }

.pricing-card--lite{background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.22)}
.pricing-card--green{background: rgba(0,209,255,.14); border-color: rgba(0,209,255,.22)}
.pricing-card--org{background: rgba(124,92,255,.10); border-color: rgba(10,20,40,.10)}

.section-dark .pricing-card--lite{background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.22)}
.section-dark .pricing-card--green{background: rgba(0,209,255,.10); border-color: rgba(0,209,255,.18)}
.section-dark .pricing-card--org{background: rgba(255,255,255,.92); border-color: rgba(10,20,40,.12); color: rgba(12,16,32,.92)}

/* Pricing: Organizations should be light even on dark sections */
.pricing-card--org{
  background: rgba(255,255,255,.92);
  border-color: rgba(10,20,40,.12);
  color: rgba(12,16,32,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
}

.pricing-card--org .pricing-eyebrow,
.pricing-card--org .pricing-plan,
.pricing-card--org .pricing-features-title,
.pricing-card--org .pricing-desc,
.pricing-card--org .pricing-currency,
.pricing-card--org .pricing-period,
.pricing-card--org .pricing-features li{
  color: rgba(12,16,32,.74);
}

/* Override dark-section pricing helpers for the org card (it stays light). */
.section-dark .pricing-card--org .pricing-eyebrow,
.section-dark .pricing-card--org .pricing-plan,
.section-dark .pricing-card--org .pricing-features-title,
.section-dark .pricing-card--org .pricing-desc,
.section-dark .pricing-card--org .pricing-currency,
.section-dark .pricing-card--org .pricing-period,
.section-dark .pricing-card--org .pricing-features li{
  color: rgba(12,16,32,.74);
}

.pricing-card--org .pricing-features li::before{
  background: rgba(15,23,42,.08);
  border-color: rgba(15,23,42,.10);
  color: rgba(12,16,32,.92);
}

.section-dark .pricing-card--org .pricing-features li::before{
  background: rgba(15,23,42,.08);
  border-color: rgba(15,23,42,.10);
  color: rgba(12,16,32,.92);
}

/* Pricing: Students plan should stand out */
.pricing-card--dark{
  position: relative;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(255,90,205,.18), transparent 62%),
    linear-gradient(180deg, rgba(7,18,33,.98), rgba(7,18,33,.92));
  border-color: rgba(255,255,255,.14);
}

.pricing-card--dark::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .95;
}

.pricing-card--dark{
  background: #071221;
  border-color: rgba(255,255,255,.12);
  color: rgba(243,246,255,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  transform: translateY(-6px);
}

.pricing-card--dark:hover{
  transform: translateY(-10px) scale(1.03);
}

@media (prefers-reduced-motion: reduce){
  .pricing-card,
  .pricing-card:hover,
  .pricing-card--dark,
  .pricing-card--dark:hover{
    transition: none;
    transform: none;
  }

  .pricing-card::before,
  .pricing-card:hover::before{
    animation: none;
    opacity: 0;
  }
}

.pricing-eyebrow{
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(12,16,32,.70);
}
.pricing-card--dark .pricing-eyebrow{color: rgba(243,246,255,.72)}

.section-dark .pricing-eyebrow{color: rgba(243,246,255,.70)}

.pricing-plan{
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.pricing-desc{
  margin: 0 0 14px;
  color: rgba(12,16,32,.72);
  line-height: 1.6;
  font-size: 13px;
}
.pricing-card--dark .pricing-desc{color: rgba(243,246,255,.72)}

.section-dark .pricing-desc{color: rgba(243,246,255,.72)}

.pricing-price{
  margin: 6px 0 12px;
  display:flex;
  align-items:baseline;
  gap: 6px;
}

.pricing-amount{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pricing-currency,.pricing-period{color: rgba(12,16,32,.72); font-weight: 600}
.pricing-card--dark .pricing-currency,
.pricing-card--dark .pricing-period{color: rgba(243,246,255,.72)}

.section-dark .pricing-currency,
.section-dark .pricing-period{color: rgba(243,246,255,.70)}

.pricing-features-title{
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-features{
  list-style:none;
  padding: 0;
  margin: 10px 0 16px;
  display:grid;
  gap: 10px;
}

.pricing-features li{
  position: relative;
  padding-left: 24px;
  color: rgba(12,16,32,.78);
  line-height: 1.45;
  font-size: 13px;
}

.pricing-features li::before{
  content: "✓";
  position:absolute;
  left:0;
  top:0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.10);
}

.pricing-card--dark .pricing-features li{color: rgba(243,246,255,.80)}
.pricing-card--dark .pricing-features li::before{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(243,246,255,.98);
}

.pricing-btn{margin-top: auto; width: 100%}

.section-dark .pricing-features li{color: rgba(243,246,255,.80)}
.section-dark .pricing-features li::before{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(243,246,255,.98);
}

.pricing-trust{
  margin-top: 26px;
  text-align:center;
}

.pricing-trust-title{
  margin: 0 0 10px;
  color: rgba(12,16,32,.58);
  font-size: 13px;
}

.section-dark .pricing-trust-title{color: rgba(243,246,255,.60)}

.pricing-logos{
  opacity: .75;
  filter: grayscale(1);
}

.pricing-logos img{width: min(100%, 920px); margin: 0 auto; height: auto}

.pricing-compare{overflow-x:auto}
.compare-table{
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  /* lock to site grid size so it visually aligns */
  --compare-grid: 44px;
}

.compare-table th,
.compare-table td{
  padding: 22px 22px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  border-right: 1px solid rgba(15,23,42,.10);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  background: transparent;
}

/* Make body cells opaque/light so the site background doesn't show through */
.compare-table tbody th,
.compare-table tbody td{
  background: rgba(255,255,255,.98);
}

.compare-table thead th{
  font-weight: 800;
  color: rgba(243,246,255,.92);
  background:
    radial-gradient(620px 240px at 16% 20%, rgba(255,90,205,.14), transparent 62%),
    radial-gradient(620px 240px at 86% 10%, rgba(168,85,247,.12), transparent 62%),
    linear-gradient(180deg, rgba(7, 18, 33, .98), rgba(7, 18, 33, .92));
}

.compare-table thead th{
  /* stronger separators on dark header */
  border-bottom-color: rgba(255,255,255,.10);
  border-right-color: rgba(255,255,255,.10);
}

.compare-table thead th:last-child,
.compare-table tbody td:last-child{border-right: none}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td{border-bottom: none}

/* Flat, minimalist "infinite" grid lines overlay */
.compare-table{
  position: relative;
}

.compare-table::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background:
    /* subtle inner grid like a futuristic drafting paper */
    repeating-linear-gradient(90deg, rgba(10,20,40,.05) 0, rgba(10,20,40,.05) 1px, transparent 1px, transparent var(--compare-grid)),
    repeating-linear-gradient(0deg, rgba(10,20,40,.04) 0, rgba(10,20,40,.04) 1px, transparent 1px, transparent var(--compare-grid));
  mix-blend-mode: multiply;
}

/* Align table edges with the global notebook grid + use negative space around it */
.pricing-compare{
  margin-top: 10px;
  padding: 22px;
  background:
    linear-gradient(rgba(10,20,40,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,40,.05) 1px, transparent 1px);
  background-size: var(--compare-grid) var(--compare-grid);
  background-position: 0 0;
}

.compare-table{
  box-shadow: none;
}

.pricing-compare{
  /* keep the table perfectly flush with the grid */
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15,23,42,.12);
}

.pricing-compare .compare-table{
  border: none;
}

.compare-table tbody th{font-weight: 700; color: rgba(12,16,32,.78)}
.compare-table td{color: rgba(12,16,32,.72)}

.pricing-why{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-card{
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  padding: 18px 18px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

.why-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.20);
  font-weight: 900;
  margin-bottom: 12px;
}

.why-title{margin: 0 0 6px; font-size: 16px}
.why-text{margin: 0; color: rgba(12,16,32,.72); line-height: 1.65}

@media (max-width: 980px){
  .pricing-grid{grid-template-columns: 1fr;}
  .pricing-card--dark{transform: none}
  .compare-table{min-width: 860px}
  .pricing-why{grid-template-columns: 1fr}
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.section-dark .contact-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.contact-aside {
  display: grid;
  gap: 12px;
}

.info-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  padding: 16px;
}

.info-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-list {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 920px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Simple prose content */
.content-prose {
  max-width: 820px;
}

.content-prose h2 {
  margin: 22px 0 10px;
}

.content-prose p {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.82);
}

.section-dark .content-prose p {
  color: rgba(255, 255, 255, 0.85);
}

.quote{
  margin:0;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(10,20,40,.10);
  background:
    radial-gradient(600px 320px at 20% 20%, rgba(124,92,255,.10), transparent 60%),
    rgba(255,255,255,.78);
}

.quote blockquote{
  margin:0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(12,16,32,.88);
}

.quote figcaption{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(12,16,32,.62);
}

.quote-name{font-weight: 700; color: rgba(12,16,32,.82)}
.quote-role{color: rgba(12,16,32,.58)}

/* Map (world) */
.map-card{
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 70px rgba(0,0,0,.10);
  padding: 16px;
}

/* Simple black & white map variant */
.map-card--simple{
  background: #fff;
  box-shadow: none;
}

.map-legend{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:12px;
  color: rgba(12,16,32,.60);
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:8px;
  vertical-align:middle;
}

.dot-active{background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%)}
.dot-inactive{background: rgba(12,16,32,.18)}

.world-map{
  position: relative;
  border-radius: 18px;
  /* Keep country hover visible and avoid cropping large SVGs */
  overflow: visible;
  border: 1px solid rgba(10,20,40,.08);
  background: radial-gradient(900px 520px at 20% 20%, rgba(124,92,255,.10), transparent 60%), rgba(10,20,40,.03);
}

.world-map--simple{
  background: #fff;
  border-color: rgba(10,20,40,.14);
}

.world-map-svg{
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure the inlined SVG scales responsively within the card */
.world-map-svg svg{
  width: 100%;
  height: auto;
  display: block;
}

/* Make sure the map section doesn't clip its content */
.map-card--simple{
  overflow: visible;
}

/* Force B&W appearance for embedded SVG map */
.world-map--simple .world-map-svg{
  filter: grayscale(1) contrast(1.05);
}

/* Hover countries (requires inline SVG via data-inline-svg injection) */
.world-map--simple svg path[id]{
  transition: fill .18s ease, stroke .18s ease, opacity .18s ease;
}

.world-map--simple svg path[id]{
  cursor: pointer;
}

.world-map--simple svg path[id]:hover{
  fill: var(--brand);
  stroke: var(--text);
  opacity: 1;
}

/* Some paths are groups (or lack id). Provide a reasonable fallback. */
.world-map--simple svg path[name]{
  transition: fill .18s ease, stroke .18s ease, opacity .18s ease;
}

.world-map--simple svg path[name]:hover{
  fill: var(--brand);
  stroke: var(--text);
  opacity: 1;
}

/* Avoid grayscale filter on inline SVG so hover color is visible (no :has() dependency) */
.world-map--simple .world-map-svg.is-inline-svg{
  filter: none;
}

.world-map-canvas{
  width: 100%;
  height: auto;
  display:block;
}

.map-tooltip{
  position:absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.86);
  color: rgba(12,16,32,.78);
  font-size: 12px;
  pointer-events:none;
}

/* Highlight selected countries by default */
.world-map--simple svg .map-country{
  fill: rgba(12,16,32,.26);
  stroke: rgba(12,16,32,.9);
  stroke-width: .25;
}

/* Primary hover */
.world-map--simple svg .map-country:hover{
  fill: var(--brand);
  stroke: var(--text);
}

/* Tooltip (floating label) */
.map-hover-tooltip{
  position: fixed;
  z-index: 9999;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10,20,40,.14);
  background: rgba(255,255,255,.92);
  color: rgba(12,16,32,.86);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  transform: translate(10px, 12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}

.map-hover-tooltip.is-visible{opacity:1}

.section-dark .map-card{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
}

.section-dark .map-legend{color: rgba(243,246,255,.72)}
.section-dark .dot-inactive{background: rgba(243,246,255,.18)}

.section-dark .world-map{
  border-color: rgba(255,255,255,.12);
  background: radial-gradient(900px 520px at 20% 20%, rgba(124,92,255,.16), transparent 60%), rgba(255,255,255,.03);
}

.section-dark .map-tooltip{
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.14);
  color: rgba(243,246,255,.84);
}

@media (max-width: 980px){
  .milestones{grid-template-columns: repeat(2, 1fr)}
}

@media (max-width: 640px){
  .milestones{grid-template-columns: 1fr}
  .testimonials-mini{grid-template-columns: 1fr}
}

/* Hero */
.hero{
  position:relative;
  padding: 92px 0 70px;
  overflow:hidden;
}

/* Navbar and hero start at the same height (no overlap) */
.site-header + main .hero.section-dark{
  margin-top: 0;
  padding-top: 92px;
}

/* Teachers page: keep hero aligned with navbar (no overlap) */
.teachers-page .site-header + main .teachers-partner-hero{
  margin-top: 0;
  padding-top: clamp(76px, 7vw, 120px);
}

/* Hero as dark band (start alternation from hero) */
.hero.section-dark{
  background:
    radial-gradient(900px 560px at 25% 20%, rgba(124,92,255,.26), transparent 60%),
    radial-gradient(800px 520px at 80% 0%, rgba(0,209,255,.18), transparent 58%),
    linear-gradient(180deg, var(--dark-bg) 0%, #070A14 100%);
  color: var(--dark-text);
}

/* (Overlap removed) */

/* Ensure hero content stays above background */
.hero-grid {
  position: relative;
  z-index: 2;
}

/* Single hero image (4:5 landscape) */
.hero-figure {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 5 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

/* About page hero: use embedded YouTube video with a 16:9 landscape ratio
   (scoped so it does not affect other pages using the same hero component) */
.hero.hero-about .hero-figure{
  width: min(640px, 100%);
  aspect-ratio: 16 / 9;
}

.hero.hero-about .hero-figure iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 980px) {
  .hero-figure {
    width: min(520px, 100%);
  }
}

@media (max-width: 980px) {
  .hero.hero-about .hero-figure{
    width: min(560px, 100%);
  }
}
.hero.section-dark .hero-subtitle{color: var(--dark-muted)}
.hero.section-dark .badge{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  color: rgba(243,246,255,.86);
}

/* Hero teacher CTA (ghost) should be readable on dark hero */
.hero.section-dark .hero-cta .btn-ghost{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.16);
  color: rgba(243,246,255,.92);
}
.hero.section-dark .hero-cta .btn-ghost:hover{
  background: rgba(0,0,0,.32);
}

/* =============================
   Home hero (premium mesh)
   ============================= */

.home-hero{
  position: relative;
  overflow: clip;
  padding: clamp(84px, 7.5vw, 132px) 0 clamp(56px, 6vw, 92px);
  color: rgba(243,246,255,.96);
  background: linear-gradient(180deg, #050714 0%, #070A18 55%, #050714 100%);
}

/* Keep header readable over the hero */
.site-header:has(+ main .home-hero){
  background: transparent;
}

.site-header:has(+ main .home-hero).is-elevated{
  background: rgba(5, 7, 20, 0.7);
  backdrop-filter: blur(14px);
}

.home-hero__bg,
.home-hero__mesh{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__bg{
  background:
    radial-gradient(1200px 700px at 50% 10%, rgba(18, 26, 58, 0.70), transparent 62%),
    radial-gradient(980px 620px at 20% 54%, rgba(0, 86, 255, 0.42), transparent 62%),
    radial-gradient(980px 620px at 82% 42%, rgba(168, 85, 247, 0.38), transparent 62%),
    radial-gradient(860px 560px at 62% 78%, rgba(0, 209, 255, 0.22), transparent 62%),
    radial-gradient(820px 520px at 92% 18%, rgba(255, 90, 205, 0.14), transparent 62%),
    linear-gradient(180deg, #050714 0%, #070A18 55%, #050714 100%);
}

.home-hero__mesh{
  opacity: .92;
  filter: blur(18px);
  transform: translate3d(0,0,0);
  background:
    radial-gradient(720px 520px at 22% 18%, rgba(0, 209, 255, .18), transparent 62%),
    radial-gradient(780px 560px at 66% 22%, rgba(168, 85, 247, .20), transparent 62%),
    radial-gradient(700px 520px at 46% 74%, rgba(124, 92, 255, .18), transparent 64%),
    radial-gradient(720px 520px at 86% 58%, rgba(255, 90, 205, .10), transparent 64%);
}

.home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 680px at 50% 16%, rgba(0,0,0,.00), rgba(0,0,0,.62) 72%),
    radial-gradient(900px 520px at 50% 110%, rgba(0,0,0,.55), transparent 65%);
  z-index: 0;
}

.home-hero .container{
  position: relative;
  z-index: 1;
}

.home-hero__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

@media (max-width: 980px){
  .home-hero__grid{grid-template-columns: 1fr; gap: 34px;}
}

.home-hero__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243,246,255,.72);
  margin: 0 0 14px;
}

.home-hero__kicker::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 209, 255, .92);
  box-shadow: 0 0 0 6px rgba(0, 209, 255, .12);
}

.home-hero__title{
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.home-hero__subtitle{
  margin: 14px 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: rgba(243,246,255,.74);
  max-width: 56ch;
}

.home-hero__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-hero__btn{
  position: relative;
  will-change: transform;
}

/* Button hover glow */
.home-hero__btn.btn-primary:hover{
  box-shadow:
    0 18px 50px rgba(0, 209, 255, .12),
    0 20px 64px rgba(168, 85, 247, .16),
    0 0 0 1px rgba(255,255,255,.08) inset;
  transform: translateY(-1px);
}

.home-hero__btn.btn-ghost{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
}

.home-hero__btn.btn-ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 18px 50px rgba(168, 85, 247, .12),
    0 0 0 1px rgba(255,255,255,.06) inset;
  transform: translateY(-1px);
}

.home-hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-hero__chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(320px 140px at 20% 20%, rgba(0, 209, 255, .10), transparent 60%),
    radial-gradient(320px 140px at 80% 35%, rgba(168, 85, 247, .10), transparent 62%),
    rgba(255,255,255,.03);
  color: rgba(243,246,255,.78);
  font-size: 13px;
}

.home-hero__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, .92);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, .10);
}

.home-hero__visual{position: relative;}

.home-hero__stage{
  position: relative;
  min-height: clamp(380px, 46vw, 520px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 520px at 30% 30%, rgba(0,209,255,.10), transparent 62%),
    radial-gradient(900px 520px at 70% 40%, rgba(168,85,247,.12), transparent 62%),
    rgba(255,255,255,.02);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
}

.home-hero__glow{
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(520px 300px at 20% 25%, rgba(0, 209, 255, .22), transparent 60%),
    radial-gradient(620px 340px at 80% 22%, rgba(168, 85, 247, .22), transparent 62%),
    radial-gradient(620px 360px at 62% 78%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(520px 300px at 88% 70%, rgba(255, 90, 205, .12), transparent 62%);
  filter: blur(18px);
  opacity: .85;
  pointer-events: none;
}

.home-hero__device{
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10, 14, 30, .65);
  box-shadow:
    0 28px 70px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.06) inset;
  transform: translate3d(0,0,0);
}

.home-hero__device-label{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(243,246,255,.88);
  background: rgba(5, 7, 20, .55);
  backdrop-filter: blur(10px);
}

.home-hero__device img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__device--laptop{
  width: min(520px, 78%);
  height: min(330px, 62%);
  left: 14%;
  top: 12%;
}

.home-hero__device--laptop img{aspect-ratio: 16 / 10;}

.home-hero__device--phone{
  width: min(220px, 34%);
  height: min(420px, 78%);
  right: 8%;
  bottom: 6%;
  border-radius: 28px;
}

.home-hero__device--phone img{aspect-ratio: 9 / 16;}

/* Connected data flow */
.home-hero__flow{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .92;
  pointer-events: none;
}

.home-hero__flow-path{
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 2.2;
  filter: url(#flowGlow);
  stroke-linecap: round;
  stroke-dasharray: 14 14;
  animation: homeHeroDash 6.2s linear infinite;
}

.home-hero__flow-dot{
  fill: rgba(0, 209, 255, .92);
  filter: url(#flowGlow);
}

.home-hero__flow-dot:nth-of-type(3){fill: rgba(168, 85, 247, .92);}
.home-hero__flow-dot:nth-of-type(4){fill: rgba(255, 90, 205, .78);}

@keyframes homeHeroDash{
  to{ stroke-dashoffset: -240; }
}

/* Floating devices */
[data-float]{
  animation: homeHeroFloat 6.8s ease-in-out infinite;
  animation-delay: var(--float-delay, 0ms);
}

@keyframes homeHeroFloat{
  0%, 100%{ transform: translate3d(0, 0, 0); }
  50%{ transform: translate3d(0, calc(var(--float-amp, 12px) * -1), 0); }
}

/* Graceful mobile layout */
@media (max-width: 980px){
  .home-hero__copy{ text-align: left; }
  .home-hero__stage{ min-height: 420px; }
  .home-hero__device--laptop{ left: 6%; width: 86%; height: 52%; top: 10%; }
  .home-hero__device--phone{ right: 6%; width: 38%; height: 64%; bottom: 6%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .home-hero__flow-path{ animation: none; }
  [data-float]{ animation: none; }
}

/* Presence marquee (About page) */
.flags-marquee{
  position: relative;
  display: grid;
  gap: 14px;
  padding: 8px 0 2px;
  overflow: hidden;
}

.flags-marquee::before,
.flags-marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 120px;
  z-index: 2;
  pointer-events:none;
}

.flags-marquee::before{
  left:0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,0) 100%);
}

.flags-marquee::after{
  right:0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(0,0,0,0) 100%);
}

.flags-row{
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.flags-track{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  will-change: transform;
}

.flag-card{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(12,16,32,.10);
  box-shadow: 0 10px 26px rgba(12,16,32,.08);
  white-space: nowrap;
}

.flag-card .flag{
  font-size: 22px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.flag-card .flag-name{
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(12,16,32,.92);
}

@keyframes marqueeLtr{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@keyframes marqueeRtl{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}

.flags-row--ltr{ --marquee-duration: 28s; }
.flags-row--rtl{ --marquee-duration: 32s; }

.flags-row--ltr .flags-track{
  animation: marqueeLtr var(--marquee-duration) linear infinite;
}

.flags-row--rtl .flags-track{
  animation: marqueeRtl var(--marquee-duration) linear infinite;
}

@media (prefers-reduced-motion: reduce){
  .flags-row--ltr .flags-track,
  .flags-row--rtl .flags-track{
    animation: none;
  }
}

@media (max-width: 560px){
  .flags-marquee::before,
  .flags-marquee::after{ width: 70px; }
  .flag-card{ padding: 12px 14px; }
}

.hero-bg{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 520px at 15% 20%, rgba(124,92,255,.22), transparent 65%),
    radial-gradient(520px 420px at 82% 30%, rgba(0,209,255,.16), transparent 60%),
    radial-gradient(900px 520px at 50% 100%, rgba(10,20,40,.06), transparent 70%);
  pointer-events:none;
  filter: saturate(1.08);
}

.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 44px;
  align-items:center;
}

.badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin:0 0 14px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(10,20,40,.10);
  color: rgba(12,16,32,.78);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-title{
  margin:0 0 14px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle{
  margin:0 0 22px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta{display:flex; gap:12px; flex-wrap:wrap}

.hero-metrics{
  display:flex;
  gap: 18px;
  margin-top: 26px;
  flex-wrap:wrap;
}

.metric{
  min-width: 150px;
  padding: 14px 14px;
  border-radius: 16px;
  border:1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.75);
}
.metric-value{font-weight:800; letter-spacing:-0.02em; font-size:18px}
.metric-label{color: var(--muted); font-size:12px; margin-top:6px}

.hero-visual{position:relative}

/* Hero carousel (same footprint as .hero-figure) */
.hero-carousel{
  position: relative;
}

.hero-carousel__track{
  position: absolute;
  inset: 0;
}

.hero-carousel__slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  will-change: transform;
}

@keyframes heroZoomOut{
  from{transform: scale(1.10)}
  to{transform: scale(1.00)}
}

/* Run zoom-out only on the active slide, and restart it on each activation */
.hero-carousel__slide.is-active[data-anim="1"] img{
  animation: heroZoomOut 4.5s cubic-bezier(.2,.8,.2,1) both;
}

@media (prefers-reduced-motion: reduce){
  .hero-carousel__slide.is-active img{animation: none; transform: none;}
}

.hero-carousel__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.32);
  color: rgba(243,246,255,.95);
  cursor: pointer;
  z-index: 2;
}

.hero-carousel__arrow:hover{background: rgba(0,0,0,.42)}

.hero-carousel__arrow svg{width: 20px; height: 20px}

.hero-carousel__arrow--prev{left: 12px}
.hero-carousel__arrow--next{right: 12px}

@media (max-width: 980px){
  .hero-carousel__arrow{width: 36px; height: 36px}
  .hero-carousel__arrow--prev{left: 10px}
  .hero-carousel__arrow--next{right: 10px}
}

.hero-dual{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-left:auto;
  max-width: 520px;
}

.hero-mock{
  position: relative;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
}
.hero-mock img{width:100%; height:auto; display:block; aspect-ratio: 16/9; object-fit: cover}
.hero-mock-mobile img{aspect-ratio: 9/16}

.hero-mock-badge{
  position:absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: rgba(243,246,255,.92);
}

.hero-card{
  border-radius: 18px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 70px rgba(0,0,0,.10);
}

.hero-card-glass{
  padding: 16px;
  max-width: 440px;
  margin-left:auto;
}

.hero-card-top{display:flex; gap:10px; align-items:center; margin-bottom: 14px}
.avatar{
  width:42px;
  height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(0,209,255,.9));
}
.hero-card-lines{flex:1}
.line{height:10px; border-radius:999px; background: rgba(255,255,255,.10)}
.line{background: rgba(10,20,40,.10)}
.line-1{width:62%; margin-bottom:8px}
.line-2{width:78%}

.hero-card-body{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  font-size:12px;
  padding: 8px 10px;
  border-radius:999px;
  border:1px solid rgba(10,20,40,.12);
  background: rgba(124,92,255,.08);
}

.hero-image-frame{
  margin-top: 16px;
  margin-left:auto;
  max-width: 440px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 70px rgba(0,0,0,.12);
}
.hero-image-frame img{aspect-ratio: 4/3; object-fit: cover}

/* Cards */
.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* About page: presence flags grid */
.cards--flags{grid-template-columns: repeat(4, 1fr)}
.flag{display:inline-block; margin-right: 8px; font-size: 18px; line-height: 1; vertical-align: -2px}

@media (max-width: 980px){
  .cards--flags{grid-template-columns: repeat(2, 1fr)}
}

@media (max-width: 520px){
  .cards--flags{grid-template-columns: 1fr}
}

.card{
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
}

.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0 0 14px; color: var(--muted); line-height:1.65}

.card-media{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(10,20,40,.04);
  margin-bottom: 14px;
}
.card-media img{width:100%; height:auto; display:block; aspect-ratio: 16/9; object-fit: cover}

/* About page: team portraits (taller, 4:5 vertical ratio) */
.team-media img{
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.list{margin:0; padding-left: 18px; color: rgba(12,16,32,.78)}
.list li{margin: 8px 0}

.section-dark .list{
  color: rgba(234,240,255,.90);
}

/* Programs */
.program-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px}
.program{
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
}
.program-tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(124,92,255,.16);
  color: rgba(234,240,255,.96);
  font-size:12px;
  margin-bottom: 12px;
}
.program h3{margin:0 0 10px}
.program p{margin:0 0 12px; color: var(--muted); line-height:1.65}
.program-link{font-weight:700; color: rgba(234,240,255,.92)}
.program-link:hover{text-decoration: underline}

/* Values */
.values{display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px}
.value{padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03)}
.value{border: 1px solid rgba(10,20,40,.10); background: rgba(255,255,255,.85)}
.value h3{margin:0 0 10px}
.value p{margin:0; color: var(--muted); line-height:1.65}

/* Testimonials */
.testimonials{display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px}
.testimonial{
  margin:0;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
}
.testimonial blockquote{margin:0 0 16px; line-height:1.7; color: rgba(234,240,255,.92)}
.testimonial blockquote{color: rgba(12,16,32,.88)}
.testimonial figcaption{display:flex; align-items:center; gap:12px}
.t-avatar{width:38px; height:38px; border-radius: 14px; background: rgba(255,255,255,.10)}
.t-avatar{background: rgba(10,20,40,.08)}
.t-name{font-weight:700}
.t-role{color: var(--muted); font-size:12px; margin-top:2px}

/* Contact */
.contact-grid{display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items:start}
.contact-card{margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04)}
.contact-card{border: 1px solid rgba(10,20,40,.10); background: rgba(255,255,255,.85)}
.contact-item{padding: 10px 0}
.contact-item + .contact-item{border-top: 1px solid rgba(255,255,255,.08)}
.contact-label{color: var(--muted); font-size:12px; margin-bottom:6px}

.form{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
}
.field{display:grid; gap:8px; margin-bottom: 14px}
label{font-size: 13px; color: rgba(234,240,255,.88)}
input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(10,20,40,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
  font-family: inherit;
}
input:focus, textarea:focus{border-color: rgba(0,209,255,.45); box-shadow: 0 0 0 4px rgba(0,209,255,.12)}
.form-hint{margin: 10px 0 0; color: var(--muted); font-size:12px; line-height:1.5}

/* Footer */
.footer{
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(255,90,205,.12), transparent 60%),
    linear-gradient(180deg, rgba(7,10,20,.98), rgba(11,16,32,.98));
  color: rgba(243,246,255,.92);
}
.footer-inner{display:grid; grid-template-columns: 320px 1fr; align-items:start; gap: 28px}
.footer-logo{height:28px; width:auto}
.footer-left p{margin:10px 0 0; color: rgba(243,246,255,.72); font-size:13px}

.footer-bottom{margin-top: 18px}
.footer-sep{border:0; height:1px; background: rgba(255,255,255,.12); margin: 50px 0 12px}
.footer-copy{color: var(--muted); font-size:13px}

/* Ensure bottom area is visible and not collapsed */
.footer-bottom{display:block}

.footer-note{margin-top: 8px; color: rgba(243,246,255,.72); font-size:13px; line-height:1.5}

.footer-nav{display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px}
.footer-col{display:grid; gap: 10px}
.footer-title{font-weight:800; font-size:13px; letter-spacing: .02em}
.footer-col a{color: rgba(243,246,255,.78); font-size:13px}
.footer-col a{
  text-decoration: none;
  transition:
    color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible{
  text-decoration: none;
  color: rgba(243,246,255,.92);
  opacity: 1;
  transform: translateX(2px);
}

.social{display:flex; gap: 10px; flex-wrap:wrap}
.social-btn{
  width:38px;
  height:38px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  font-weight: 800;
  font-size: 12px;
}
.footer-meta{color: rgba(243,246,255,.72); font-size:13px; line-height:1.7}

/* Footer: always use the light logo (dark background) */
.footer .footer-logo--light{display:block}
.footer .footer-logo--dark{display:none}
.footer.is-light .footer-logo--light{display:block}
.footer.is-light .footer-logo--dark{display:none}

/* Screens block */
.screens{margin-top: 34px}
.screens-head{max-width: 720px; margin-bottom: 16px}
.screens-title{margin:0 0 6px; font-size: 20px}
.screens-sub{margin:0; color: var(--muted); line-height:1.6}
.screens-grid{display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px}
.screen{margin:0; border-radius: 18px; overflow:hidden; border: 1px solid rgba(10,20,40,.10); background: rgba(255,255,255,.85)}
.screen img{width:100%; height:auto; display:block; aspect-ratio: 9/16; object-fit: cover}
.screen figcaption{padding: 10px 12px; color: rgba(12,16,32,.74); font-size: 12px}

.section-dark .card-media,
.section-dark .screen{border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06)}
.section-dark .screen figcaption{color: rgba(243,246,255,.74)}

/* Big CTA banner */
.cta-banner{
  position: relative;
  border-radius: 24px;
  overflow:hidden;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 70px rgba(0,0,0,.10);
  min-height: 560px;
  display:flex;
  align-items:center;
}

.cta-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.cta-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(11,16,32,.90) 0%, rgba(11,16,32,.65) 55%, rgba(11,16,32,.25) 100%);
}

.cta-content{
  position:relative;
  z-index:1;
  padding: 36px;
  color: #F3F6FF;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-title{margin:0 0 10px; font-size: 36px; letter-spacing:-0.03em}
.cta-sub{margin:0 0 18px; color: rgba(243,246,255,.78); line-height:1.6}
.cta-actions{display:flex; gap: 12px; flex-wrap:wrap; justify-content:center}

.cta-content .btn{border-color: rgba(255,255,255,.18)}
.cta-content .btn-ghost{background: rgba(255,255,255,.10); color:#fff}


/* =========================
   Home hero (premium mesh)
   ========================= */
.hero.hero-mesh{
  position: relative;
  overflow: clip;
  /* Start at the same height as the navbar (no push-down). */
  padding: clamp(84px, 8vw, 124px) 0 0;
  /* Extend the hero background behind the sticky navbar */
  margin-top: -76px;
  padding-top: calc(clamp(84px, 8vw, 124px) + 76px);
  padding-bottom: 0;
  color: rgba(243,246,255,.96);
  background:
    radial-gradient(1400px 720px at 50% 12%, rgba(18, 26, 58, 0.64), transparent 62%),
    radial-gradient(980px 660px at 22% 58%, rgba(0, 86, 255, 0.30), transparent 62%),
    radial-gradient(940px 620px at 78% 44%, rgba(168, 85, 247, 0.28), transparent 62%),
    radial-gradient(900px 600px at 58% 78%, rgba(0, 209, 255, 0.16), transparent 62%),
    radial-gradient(860px 560px at 70% 18%, rgba(255, 90, 205, 0.12), transparent 62%),
    linear-gradient(180deg, #050714 0%, #070A18 55%, #050714 100%);
}

.hero.hero-mesh::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* cinematic vignette */
  background:
    radial-gradient(1200px 680px at 50% 18%, rgba(0,0,0,.00), rgba(0,0,0,.55) 72%),
    radial-gradient(900px 520px at 50% 105%, rgba(0,0,0,.45), transparent 65%);
  z-index: 0;
}

/* Home hero mesh: simple grid texture */
.hero.hero-mesh::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.40;
  background-image:
    /* coarse */
    linear-gradient(rgba(243, 246, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 255, 0.12) 1px, transparent 1px),
    /* medium */
    linear-gradient(rgba(243, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 255, 0.08) 1px, transparent 1px),
    /* fine */
    linear-gradient(rgba(243, 246, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 255, 0.05) 1px, transparent 1px);
  background-size:
    72px 72px,
    72px 72px,
    24px 24px,
    24px 24px,
    12px 12px,
    12px 12px;
  background-position:
    center center,
    center center,
    center center,
    center center,
    center center,
    center center;
  mix-blend-mode: normal;
}

/* Home hero mesh: moving "train" dots along the grid axes */
.hero-grid-trains{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero-grid-train{
  --train-color: rgba(255, 56, 189, 0.95); /* fuchsia */
  --train-glow: rgba(255, 56, 189, 0.75);
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--train-color);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 0 14px var(--train-glow),
    0 0 28px rgba(255, 56, 189, 0.35);
  filter: blur(0.1px);
  opacity: 0;
}

/* Horizontal trains (move left -> right along a random row) */
.hero-grid-train--h{ animation: heroGridTrainH 9.5s linear infinite; }
.hero-grid-train--h.is-2{ animation-name: heroGridTrainH2; animation-duration: 12.5s; animation-delay: -4.1s; --train-color: rgba(84, 255, 168, 0.95); --train-glow: rgba(84, 255, 168, 0.75); }
.hero-grid-train--h.is-3{ animation-duration: 15.5s; animation-delay: -9.2s; opacity: 0; }

/* Vertical trains (move top -> bottom along a random column) */
.hero-grid-train--v{ animation: heroGridTrainV 10.5s linear infinite; animation-delay: -2.3s; }
.hero-grid-train--v.is-2{ animation-name: heroGridTrainV2; animation-duration: 13.5s; animation-delay: -7.7s; --train-color: rgba(84, 255, 168, 0.95); --train-glow: rgba(84, 255, 168, 0.75); }
.hero-grid-train--v.is-3{ animation-duration: 16.5s; animation-delay: -12.9s; opacity: 0; }

@keyframes heroGridTrainH{
  0%   { transform: translate3d(-12px, 0, 0); left: 0%; top: 22%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translate3d(calc(100vw + 12px), 0, 0); left: 0%; top: 22%; opacity: 0; }
}

@keyframes heroGridTrainH2{
  0%   { transform: translate3d(-12px, 0, 0); left: 0%; top: 44%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translate3d(calc(100vw + 12px), 0, 0); left: 0%; top: 44%; opacity: 0; }
}

@keyframes heroGridTrainV{
  0%   { transform: translate3d(0, -12px, 0); top: 0%; left: 62%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translate3d(0, calc(100vh + 12px), 0); top: 0%; left: 62%; opacity: 0; }
}

@keyframes heroGridTrainV2{
  0%   { transform: translate3d(0, -12px, 0); top: 0%; left: 34%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translate3d(0, calc(100vh + 12px), 0); top: 0%; left: 34%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .hero-grid-train{ display: none; }
}

/* Ensure the grid sits above the hero background layers but below the content */
.hero.hero-mesh::before{ z-index: 0; }
.hero.hero-mesh::after{ z-index: 1; }
.hero-mesh__bg{ z-index: 0; }
.hero.hero-mesh .container,
.hero.hero-mesh .hero-split{ z-index: 2; }

.hero-mesh__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-mesh__bg::before{
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(720px 460px at 18% 30%, rgba(0, 210, 255, 0.22), transparent 62%),
    radial-gradient(760px 520px at 82% 28%, rgba(168, 85, 247, 0.24), transparent 62%),
    radial-gradient(720px 480px at 58% 72%, rgba(99, 102, 241, 0.20), transparent 62%),
    radial-gradient(680px 420px at 66% 18%, rgba(255, 90, 205, 0.14), transparent 62%);
  opacity: .92;
  filter: blur(22px);
  transform: translate3d(0,0,0);
}

.hero.hero-mesh .container{ position: relative; z-index: 1; }

.hero-split{
  /* Full-bleed layout: images are NOT constrained by the global .container */
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  /* 2/4/2 ratio but with a fixed (container-based) center track */
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--container) * 0.50)) minmax(0, 1fr);
  padding-inline: 0;
}

/* Make the center column content keep the same breathing space as other sections */
.hero-split > .container{
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Prevent any horizontal scroll caused by off-canvas mockups */
.hero.hero-mesh{ overflow-x: clip; }

.hero-center{
  text-align: center;
  max-width: 72ch;
  justify-self: center;
}

/* Lift ONLY the middle column content (text + CTAs), without moving side images */
.hero.hero-mesh .hero-split > .container{
  padding-bottom: clamp(18px, 3vw, 42px);
}

.hero.hero-mesh .hero-title{
  margin: 0;
  letter-spacing: -0.045em;
  font-weight: 750;
  font-size: clamp(1.95rem, 3.1vw, 2.85rem);
  line-height: 1.06;
  color: rgba(243,246,255,.96);
  text-shadow: 0 14px 60px rgba(0,0,0,.55);
}

.hero.hero-mesh .hero-subtitle{
  margin: 14px auto 0;
  color: rgba(243,246,255,.74);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  text-shadow: 0 12px 50px rgba(0,0,0,.45);
}

.hero.hero-mesh .hero-cta{
  margin-top: 20px;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-side--left{ display: flex; justify-content: flex-end; align-self: stretch; }
.hero-side--right{ display: flex; justify-content: flex-start; align-self: stretch; overflow: clip; }

.hero-media{ display: block; height: auto; max-width: 100%; }

/* Phone should touch the bottom of the hero */
.hero-media--phone{
  width: min(360px, 92%);
  margin-left: auto;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 0;
}

/* Duplicate phone used only for mobile stacking */
.hero-media--phone-mobile{ display: none; }

/* Dashboard should be cut in half (overflow to the right, no page scroll) */
.hero-media--dashboard{
  width: min(980px, 150%);
  max-width: none;
  margin-right: -55vw;
  align-self: center;
  /* no frame: keep it as the raw image */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  filter: none;
}

/* Premium button hover glow (works with existing .btn styles) */
.hero-btn-glow{ position: relative; }
.hero-btn-glow:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 70px rgba(59,130,246,.30),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.hero-btn-glow.btn-ghost:hover{
  box-shadow: 0 18px 70px rgba(168,85,247,.22);
}

/* Home mesh hero: ensure secondary CTA is clearly visible */
.hero.hero-mesh .hero-cta .btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: rgba(243,246,255,.96);
}
.hero.hero-mesh .hero-cta .btn-ghost:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

/* Hero floaters (avatars) */
.hero.hero-mesh .hero-floaters{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero.hero-mesh .hero-floater{
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  transform: translate3d(0,0,0);
  animation: hero-floater-bob 4.8s ease-in-out infinite;
}

.hero.hero-mesh .hero-floater__img{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.hero.hero-mesh .hero-floater--student{
  /* right side of the phone, slightly overlapping */
  left: clamp(300px, 30vw, 480px);
  bottom: clamp(92px, 10vh, 160px);
  animation-delay: .15s;
}

.hero.hero-mesh .hero-floater--teacher{
  /* left side of the dashboard/laptop, slightly overlapping */
  right: clamp(480px, 34vw, 680px);
  top: clamp(160px, 18vh, 240px);
  animation-delay: .55s;
}

@keyframes hero-floater-bob{
  0%, 100%{ transform: translate3d(0, 0, 0); }
  50%{ transform: translate3d(0, -10px, 0); }
}

@media (max-width: 980px){
  .hero.hero-mesh .hero-floaters{ display: none; }
}

@media (max-width: 1100px){
  .hero-split{
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "media";
    gap: 18px;
  }

  .hero-split > .container{ grid-area: center; }

  /* Mobile: add side padding so text/CTAs don't touch screen edges */
  .hero-split > .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  /* media stack area (no overlap): laptop then phone */
  .hero-side--right{
    grid-area: media;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    overflow: visible;
  }

  /* hide the separate left column and stack the phone under the laptop */
  .hero-side--left{ display: none; }

  .hero-media--phone-mobile{ display: block; }

  .hero-media--phone{
    width: min(320px, 78vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-media--dashboard{
    width: min(560px, 92vw);
    margin: 0 auto;
    transform: none;
  }
}


/* Reveal animations */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.revealed{opacity:1; transform: translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap: 26px}
  .hero-title{font-size: 44px}
  .cards-3, .program-grid, .values, .testimonials{grid-template-columns: 1fr;}
  .contact-grid{grid-template-columns: 1fr}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}

  .nav{
    position: fixed;
    inset: 76px 14px auto 14px;
    display:flex;
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
    transform-origin: top center;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    flex-direction: column;
    align-items:stretch;
    padding: 12px;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(7,10,20,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0,0,0,.40);
    transition:
      opacity 180ms ease,
      transform 260ms ease,
      max-height 320ms ease;
  }

  .nav.is-open{
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 80vh;
    overflow: auto;
    pointer-events: auto;
  }

  /* Closing state: keep layout but animate out */
  .nav.is-closing{
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .nav-link{padding: 12px 12px}
  .btn{width:100%}

  .footer-inner{grid-template-columns: 1fr}
  .footer-nav{grid-template-columns: 1fr 1fr}
  .screens-grid{grid-template-columns: 1fr 1fr}

  .cta-content{padding: 22px}
  .cta-title{font-size: 28px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  [data-reveal]{transition:none; transform:none; opacity:1}
}
