/* ============================================================
   NexGen Private Tutoring — v2 Premium Design System
   Fonts: Sora (display) + Inter (body)
   Palette: deep navy, electric blue, cyan, violet
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-950: #060d26;
  --navy-900: #0a1f44;
  --navy-800: #10295a;
  --navy-700: #1b3a75;
  --blue: #2d7dff;
  --blue-dark: #1a5fd7;
  --cyan: #38bdf8;
  --violet: #7c5cff;
  --violet-soft: #a78bfa;
  --bg: #f5f8ff;
  --bg-white: #ffffff;
  --card: #ffffff;
  --text: #101f3c;
  --text-soft: #34496e;
  --muted: #64769a;
  --line: #e2eaf9;
  --line-strong: #cdd9f2;
  --ok-bg: #e7f8ee;
  --ok-text: #146c43;
  --err-bg: #fdecec;
  --err-text: #a02c2c;
  --grad: linear-gradient(120deg, #2d7dff 0%, #38bdf8 48%, #7c5cff 100%);
  --grad-btn: linear-gradient(120deg, #2d7dff, #7c5cff);
  --grad-text: linear-gradient(92deg, #38bdf8 0%, #7dd3fc 35%, #a78bfa 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 18px rgba(10, 31, 68, 0.07);
  --shadow: 0 18px 44px rgba(10, 31, 68, 0.13);
  --shadow-lg: 0 30px 70px rgba(6, 13, 38, 0.28);
  --shadow-btn: 0 12px 30px rgba(45, 125, 255, 0.42);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-dark);
}
::selection {
  background: rgba(45, 125, 255, 0.25);
}
:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.section {
  padding: 96px 5vw;
  position: relative;
}
.section-white {
  background: var(--bg-white);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--grad-btn);
  color: #fff;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 38px rgba(45, 125, 255, 0.5);
}
.btn:active {
  transform: translateY(0);
}
.btn .arr {
  transition: transform 0.22s ease;
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn.ghost.on-light {
  background: #fff;
  color: var(--navy-900);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.btn.ghost.on-light:hover {
  color: var(--navy-900);
  border-color: var(--blue);
}
.btn.small {
  padding: 9px 20px;
  font-size: 0.9rem;
}
.btn.wa-btn {
  background: #22c064;
  box-shadow: 0 12px 28px rgba(34, 192, 100, 0.4);
}
.btn.wa-btn:hover {
  color: #fff;
}

/* ---------- 5. Glass sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(226, 234, 249, 0.9);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled {
  box-shadow: 0 10px 34px rgba(10, 31, 68, 0.13);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--navy-950);
  line-height: 1.05;
}
.logo:hover {
  color: var(--navy-950);
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 10px 22px rgba(45, 125, 255, 0.4);
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu {
  display: flex;
  gap: 30px;
  align-items: center;
}
.menu a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.97rem;
  position: relative;
  padding: 6px 0;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.menu a:hover {
  color: var(--navy-950);
}
.menu a:hover::after {
  transform: scaleX(1);
}
.menu a.btn {
  color: #fff;
  padding: 11px 24px;
}
.menu a.btn::after {
  display: none;
}
.menu a.btn:hover {
  color: #fff;
}
.burger {
  display: none;
  background: var(--navy-900);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ---------- 6. Alerts (flash messages) ---------- */
.alert {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
}
main > .alert {
  margin-left: 5vw;
  margin-right: 5vw;
}
.alert.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: #bfe8cf;
}
.alert.err {
  background: var(--err-bg);
  color: var(--err-text);
  border-color: #f6c9c9;
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 520px at 88% -10%, rgba(124, 92, 255, 0.5), transparent 60%),
    radial-gradient(820px 480px at -8% 108%, rgba(56, 189, 248, 0.38), transparent 60%),
    radial-gradient(560px 340px at 52% 116%, rgba(45, 125, 255, 0.35), transparent 65%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 52%, #14336e 100%);
  padding: 84px 5vw 0;
}
.hero::before {
  /* subtle grid pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(900px 600px at 60% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 600px at 60% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.orb-a {
  width: 340px;
  height: 340px;
  background: #2d7dff;
  top: -110px;
  right: 16%;
  animation: drift 13s ease-in-out infinite;
}
.orb-b {
  width: 260px;
  height: 260px;
  background: #7c5cff;
  bottom: 6%;
  left: -70px;
  animation: drift 16s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(28px, 22px); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 110px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d9e8ff;
}
.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.55rem, 5.4vw, 4.15rem);
  font-weight: 800;
  line-height: 1.06;
  margin: 24px 0 20px;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 540px;
  color: #c4d6f7;
  font-size: 1.16rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.portal-link {
  color: #dbeafe;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.97rem;
  border-bottom: 2px solid rgba(56, 189, 248, 0.55);
  padding-bottom: 2px;
}
.portal-link:hover {
  color: #fff;
  border-color: var(--cyan);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  color: #aebfe2;
  font-size: 0.94rem;
  font-weight: 500;
}
.avatars {
  display: flex;
}
.avatars span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  border: 2.5px solid var(--navy-900);
  margin-left: -10px;
}
.avatars span:first-child {
  margin-left: 0;
}
.av-1 { background: linear-gradient(135deg, #2d7dff, #38bdf8); }
.av-2 { background: linear-gradient(135deg, #7c5cff, #c084fc); }
.av-3 { background: linear-gradient(135deg, #0ea5e9, #2dd4bf); }
.av-4 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 28px;
  max-width: 560px;
}
.hstat {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.hstat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.hstat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hstat span {
  font-size: 0.85rem;
  color: #9db2d8;
  font-weight: 500;
}

/* ---------- 8. Hero portal preview composition ---------- */
.hero-visual {
  position: relative;
  perspective: 1100px;
  min-height: 430px;
}
.portal-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  max-width: 430px;
  margin-left: auto;
  transform: rotateY(-6deg) rotateX(2deg);
}
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.portal-head .p-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.02rem;
}
.p-dots {
  display: flex;
  gap: 6px;
}
.p-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.p-ring-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 17px;
  margin-bottom: 14px;
}
.ring {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 78%, #dbe6fb 78% 100%);
  display: grid;
  place-items: center;
}
.ring b {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--navy-900);
}
.p-ring-row strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 0.98rem;
}
.p-ring-row small {
  color: var(--muted);
  font-weight: 500;
}
.p-bar {
  height: 8px;
  border-radius: 99px;
  background: #e2eaf9;
  margin-top: 8px;
  overflow: hidden;
}
.p-bar i {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: 99px;
  background: var(--grad);
}
.hw-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
}
.hw-item:last-of-type {
  border-bottom: 0;
}
.hw-check {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.hw-item .due {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet);
  background: rgba(124, 92, 255, 0.1);
  padding: 3px 10px;
  border-radius: 99px;
}
.hw-item.pending .hw-check {
  background: #fff;
  border: 2px solid var(--line-strong);
  color: transparent;
}
.p-session {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, rgba(45, 125, 255, 0.1), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(45, 125, 255, 0.2);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 15px;
  border-radius: 13px;
}
.float-card {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 15px 19px;
  color: var(--navy-900);
  font-family: var(--font-display);
  will-change: transform;
}
.float-card .fc-sym {
  font-size: 1.45rem;
  margin-right: 8px;
}
.float-card strong {
  font-size: 1.05rem;
}
.float-card small {
  display: block;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 2px;
}
.fc-grade {
  top: -26px;
  left: -8px;
  animation: floaty 6.5s ease-in-out infinite;
}
.fc-grade .grade {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  font-weight: 800;
}
.fc-done {
  bottom: -30px;
  right: 6px;
  animation: floaty 7.5s ease-in-out infinite 1.1s;
}
.fc-done .tick {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #22c064;
  color: #fff;
  font-size: 0.8rem;
  margin-right: 8px;
  vertical-align: -7px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
.hero-wave {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 74px;
  margin-bottom: -1px;
}

/* ---------- 9. Marquee ---------- */
.marquee-band {
  background: var(--navy-950);
  overflow: hidden;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: #8fb4f5;
  padding: 0 26px;
  white-space: nowrap;
}
.marquee span::after {
  content: "✦";
  margin-left: 52px;
  color: var(--violet-soft);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 10. Generic cards (legacy + new) ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.18rem;
}
.card p {
  color: var(--muted);
}
.glass {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
}

/* ---------- 11. Subject cards ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}
.subject-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 36px 30px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.subject-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.subject-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 28px 55px rgba(10, 31, 68, 0.17);
}
.subject-card:hover::before {
  opacity: 1;
}
.icon-tile {
  width: 66px;
  height: 66px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 14px 28px rgba(10, 31, 68, 0.22);
}
.icon-tile svg {
  width: 32px;
  height: 32px;
}
.tile-blue { background: linear-gradient(135deg, #2d7dff, #38bdf8); }
.tile-violet { background: linear-gradient(135deg, #7c5cff, #c084fc); }
.tile-teal { background: linear-gradient(135deg, #0ea5e9, #2dd4bf); }
.tile-navy { background: linear-gradient(135deg, #0a1f44, #2d7dff); }
.subject-card h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.subject-card > p {
  color: var(--muted);
  font-size: 0.98rem;
}
.subject-card ul {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}
.subject-card ul li {
  padding: 7px 0 7px 27px;
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.subject-card ul li:last-child {
  border-bottom: 0;
}
.subject-card ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--blue);
  font-weight: 800;
}
.card-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.card-link:hover {
  text-decoration: underline;
}

/* ---------- 12. Bento — Why Choose ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.bento-card h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
.bento-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800) 70%, #173a7d);
  color: #fff;
  border: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.bento-large h3 {
  color: #fff;
  font-size: 1.55rem;
}
.bento-large p {
  color: #c4d6f7;
}
.bento-mini-mock {
  margin-top: auto;
  padding-top: 24px;
}
.bento-mini-mock .mock-window {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5efff;
}
.mock-row .hw-check {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  font-size: 0.66rem;
}
.mock-row .due {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--violet-soft);
  font-weight: 700;
}
.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 17px;
}
.bento-icon svg {
  width: 25px;
  height: 25px;
}

/* ---------- 13. Approach timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
  border-radius: 3px;
  opacity: 0.5;
}
.tl-step {
  text-align: center;
  padding: 0 14px;
  position: relative;
}
.tl-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
  position: relative;
  z-index: 1;
}
.tl-step h3 {
  font-size: 1.2rem;
}
.tl-step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- 14. How it works — ghost numbers ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 58px 26px 26px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 2px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  color: rgba(45, 125, 255, 0.1);
  line-height: 1;
}
.step-card h3 {
  font-size: 1.12rem;
  position: relative;
}
.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  position: relative;
}
/* legacy .steps/.step used by older markup */
.steps {
  counter-reset: step;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---------- 15. Benefits panel ---------- */
.benefits-band {
  background:
    radial-gradient(700px 380px at 92% -20%, rgba(124, 92, 255, 0.45), transparent 60%),
    radial-gradient(600px 340px at -5% 115%, rgba(56, 189, 248, 0.32), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900));
  color: #fff;
}
.benefits-band .section-head h2 {
  color: #fff;
}
.benefits-band .section-head p {
  color: #aebfe2;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.benefit-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.benefit-item .b-tick {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.benefit-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.benefit-item p {
  color: #b9cbf0;
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- 16. Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.testi-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 34px 30px;
  box-shadow: var(--shadow-sm);
}
.testi-card .qmark {
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.6;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 18px;
}
.testi-card blockquote {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.testi-card .who {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.demo-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff7e6;
  color: #92580a;
  border: 1.5px dashed #e3a008;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 5px 11px;
  border-radius: 99px;
}
.demo-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 22px;
}

/* ---------- 17. FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 13px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq details[open] {
  box-shadow: var(--shadow);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--blue);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--grad-btn);
  color: #fff;
}
.faq details p {
  padding: 0 24px 20px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 18. Consultation / contact layout ---------- */
.consult-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}
.contact-panel {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: 26px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.contact-panel::after {
  content: "∑";
  position: absolute;
  right: -14px;
  bottom: -58px;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.contact-panel h3 {
  color: #fff;
  font-size: 1.5rem;
}
.contact-panel > p {
  color: #b9cbf0;
}
.contact-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  position: relative;
  z-index: 1;
}
.contact-row .c-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: var(--cyan);
}
.contact-row .c-ico svg {
  width: 20px;
  height: 20px;
}
.contact-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb4f5;
  margin-bottom: 3px;
}
.contact-row span,
.contact-row a {
  color: #fff;
  font-weight: 600;
}
.contact-panel .btn {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

/* ---------- 19. Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 38px;
  max-width: 660px;
  margin: 0 auto;
}
.form-card h1,
.form-card h2 {
  font-size: 1.6rem;
}
.consult-grid .form-card {
  margin: 0;
  max-width: none;
}
form .field {
  margin-bottom: 17px;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
  font-size: 0.93rem;
  color: var(--text-soft);
}
input,
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  font: inherit;
  font-size: 0.98rem;
  background: #fbfcff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input::placeholder,
textarea::placeholder {
  color: #9db0d2;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 125, 255, 0.14);
}
textarea {
  min-height: 124px;
  resize: vertical;
}
label.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}
label.chk input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--blue);
  flex: 0 0 19px;
}
.form-card .btn {
  width: 100%;
}
.form-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 20. Auth split layout ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 85% -5%, rgba(124, 92, 255, 0.5), transparent 60%),
    radial-gradient(520px 380px at -10% 105%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(158deg, var(--navy-950), var(--navy-900) 60%, #14336e);
  color: #fff;
  padding: 70px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-brand h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  max-width: 430px;
}
.auth-brand h2 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand p {
  color: #b9cbf0;
  max-width: 400px;
  font-size: 1.04rem;
}
.auth-brand .auth-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.auth-brand .auth-points li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-weight: 600;
  color: #e5efff;
}
.auth-brand .auth-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.auth-symbols span {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.13);
  animation: floaty 8s ease-in-out infinite;
  pointer-events: none;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 5vw;
  background:
    radial-gradient(500px 320px at 90% 0%, rgba(45, 125, 255, 0.08), transparent 60%),
    var(--bg);
}
.auth-form-side .form-card {
  width: 100%;
  max-width: 480px;
  margin: 0;
}
.auth-form-side.register .form-card {
  max-width: 540px;
}

/* ---------- 21. Inner page hero band ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 360px at 88% -30%, rgba(124, 92, 255, 0.48), transparent 60%),
    radial-gradient(560px 320px at -5% 120%, rgba(56, 189, 248, 0.32), transparent 60%),
    linear-gradient(155deg, var(--navy-950), var(--navy-900) 60%, #14336e);
  color: #fff;
  padding: 74px 5vw 82px;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: #c4d6f7;
  font-size: 1.09rem;
}
.page-hero .badge-pill {
  margin-bottom: 20px;
}
.detail-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 42px;
  box-shadow: var(--shadow-sm);
  max-width: 1080px;
  margin: 0 auto 26px;
}
.detail-block h2,
.detail-block h3 {
  font-size: 1.5rem;
}
.detail-block ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 30px;
}
.detail-block ul li {
  padding: 8px 0 8px 27px;
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px dashed var(--line);
}
.detail-block ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--blue);
  font-weight: 800;
}

/* ---------- 22. Footer ---------- */
.footer {
  background: var(--navy-950);
  color: #b9cbf0;
  padding: 72px 5vw 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1220px;
  margin: 0 auto;
}
.footer .logo {
  color: #fff;
}
.footer .logo:hover {
  color: #fff;
}
.footer .logo small {
  color: #7e94c0;
}
.footer-brand p {
  font-size: 0.96rem;
  color: #93a9d1;
  max-width: 300px;
  margin-top: 16px;
}
.footer h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.footer a {
  color: #b9cbf0;
  display: block;
  margin: 8px 0;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer .contact-line {
  font-size: 0.96rem;
  margin: 8px 0;
}
.socials {
  display: flex;
  gap: 11px;
  margin-top: 20px;
}
.footer .socials a {
  width: 41px;
  height: 41px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #dbeafe;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer .socials a:hover {
  background: var(--grad-btn);
  transform: translateY(-3px);
  color: #fff;
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 54px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  color: #7e94c0;
}
.copy {
  text-align: center;
  color: #7e94c0;
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- 23. WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(18, 140, 70, 0.45);
  transition: transform 0.22s ease;
}
.wa-float:hover {
  transform: scale(1.09);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- 24. Student/dashboard leftovers (shared stylesheet) ---------- */
.dash-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.dash-nav a {
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  background: #eef4ff;
  font-family: var(--font-display);
  font-size: 0.88rem;
}
.stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.stat strong {
  font-size: 2rem;
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
}
.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-item {
  position: absolute;
  font-size: 2rem;
  opacity: 0.85;
  animation: floaty 7s ease-in-out infinite;
}
.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
  animation: floaty 9s ease-in-out infinite;
}

/* ---------- 25. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- 26. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 74px;
    padding-bottom: 96px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .portal-card {
    margin: 0 auto;
    transform: none;
  }
  .subject-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 340px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 46px 7vw 40px;
  }
  .auth-brand h2 {
    font-size: 1.7rem;
  }
  .consult-grid {
    grid-template-columns: 1fr;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .timeline::before {
    display: none;
  }
}
@media (max-width: 760px) {
  .section {
    padding: 66px 6vw;
  }
  .menu {
    display: none;
  }
  body.menu-open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(6, 13, 38, 0.98);
    backdrop-filter: blur(18px);
    padding: 26px 7vw 34px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  body.menu-open .menu a {
    color: #e5efff;
    font-size: 1.12rem;
    padding: 13px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  body.menu-open .menu a::after {
    display: none;
  }
  body.menu-open .menu a.btn {
    margin-top: 16px;
    border-bottom: 0;
    justify-content: center;
    color: #fff;
  }
  .burger {
    display: grid;
    place-items: center;
  }
  .hero {
    padding-top: 54px;
  }
  .hero h1 {
    font-size: 2.45rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px 0;
  }
  .hstat {
    padding-right: 20px;
    margin-right: 20px;
  }
  .hero-visual {
    min-height: 0;
  }
  .fc-grade {
    left: 0;
    top: -34px;
  }
  .fc-done {
    right: 0;
    bottom: -36px;
  }
  .form-card {
    padding: 28px 22px;
  }
  .detail-block {
    padding: 28px 22px;
  }
  .detail-block ul {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: auto;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
  .alert {
    margin-left: 4vw;
    margin-right: 4vw;
  }
}
@media (max-width: 400px) {
  .hero .cta .btn {
    width: 100%;
  }
  .portal-card {
    padding: 20px 17px;
  }
  .float-card {
    padding: 11px 14px;
  }
}

/* ---------- 27. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ==========================================================
   V3 — PHOTOS + STRONG 3D MOTION
   Real classroom photography, 3D-tilt hero, Ken Burns zoom,
   gallery, stronger floats and entrance choreography.
   Appended overrides: v2 rules above stay untouched.
   ========================================================== */

/* ---------- V3-1. Hero entrance choreography (on load) ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(44px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-copy > * {
  animation: heroRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.30s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.44s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.58s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.72s; }
.hero-visual {
  animation: heroVisualIn 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
  padding: 14px 10px 58px 26px;
}

/* ---------- V3-2. Hero photo frame + 3D tilt group ---------- */
.hero-visual-3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-visual-3d::before {
  /* animated gradient glow behind the frame */
  content: "";
  position: absolute;
  inset: -16px -10px -6px -16px;
  border-radius: 38px;
  background: linear-gradient(130deg, rgba(45, 125, 255, 0.65), rgba(124, 92, 255, 0.6), rgba(56, 189, 248, 0.55), rgba(45, 125, 255, 0.65));
  background-size: 280% 280%;
  filter: blur(30px);
  opacity: 0.6;
  z-index: 0;
  animation: glowShift 9s ease-in-out infinite;
}
@keyframes glowShift {
  0%, 100% { background-position: 0% 40%; opacity: 0.5; }
  50% { background-position: 100% 60%; opacity: 0.78; }
}
.hero-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1.3;
  background: var(--navy-800);
  box-shadow:
    0 40px 80px rgba(3, 8, 26, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.4%, -1.4%); }
}
.hero-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 38, 0) 55%, rgba(6, 13, 38, 0.32) 100%);
  pointer-events: none;
}

/* Portal card becomes a smaller overlay anchored bottom-left of the photo */
.hero-visual .portal-card {
  position: absolute;
  z-index: 5;
  left: -30px;
  bottom: -42px;
  width: 322px;
  max-width: 88%;
  margin: 0;
  padding: 18px 19px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translateZ(46px);
  box-shadow: 0 30px 60px rgba(3, 8, 26, 0.45);
}
.hero-visual .portal-head {
  margin-bottom: 12px;
}
.hero-visual .p-ring-row {
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 14px;
}
.hero-visual .ring {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}
.hero-visual .ring b {
  width: 38px;
  height: 38px;
  font-size: 0.7rem;
}
.hero-visual .hw-item {
  padding: 8px 2px 2px;
  font-size: 0.9rem;
}

/* Floating chips — repositioned onto the photo corners */
.hero-visual .fc-grade {
  top: -24px;
  left: auto;
  right: -14px;
  z-index: 6;
}
.hero-visual .fc-done {
  bottom: -26px;
  right: -8px;
  z-index: 6;
}

/* Stronger float + drift (later keyframes win over v2 definitions) */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-17px) rotate(-1.4deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(46px, 36px) scale(1.1); }
}
.orb-a { animation-duration: 11s; }
.orb-b { animation-duration: 14s; }

/* ---------- V3-3. Button shine sweep ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after {
  left: 135%;
}

/* Section headings rise with a slight scale */
.section-head.reveal {
  transform: translateY(26px) scale(0.96);
}
.section-head.reveal.visible {
  transform: none;
}

/* ---------- V3-4. Subject card photo headers ---------- */
.subject-photo {
  margin: -36px -30px 26px;
  height: 188px;
  overflow: hidden;
  position: relative;
}
.subject-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.subject-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 38, 0) 52%, rgba(6, 13, 38, 0.38) 100%);
  pointer-events: none;
}
.subject-card:hover .subject-photo img {
  transform: scale(1.07);
}
.subject-card .icon-tile {
  margin-top: -58px;
  position: relative;
  z-index: 2;
  border: 3px solid #fff;
}

/* ---------- V3-5. Bento large card — photo background ---------- */
.bento-large {
  background:
    linear-gradient(155deg, rgba(6, 13, 38, 0.9) 0%, rgba(10, 31, 68, 0.82) 52%, rgba(23, 58, 125, 0.78) 100%),
    url("../img/student-smile.webp") center 30% / cover no-repeat,
    linear-gradient(155deg, var(--navy-950), var(--navy-800) 70%, #173a7d);
}
.bento-large .bento-mini-mock .mock-window {
  background: rgba(6, 13, 38, 0.42);
}

/* ---------- V3-6. Learning in Action — gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 172px;
  grid-auto-flow: dense;
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}
.g-item {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-800);
}
.g-a { grid-column: span 2; grid-row: span 2; }
.g-b { grid-row: span 2; }
.g-e { grid-row: span 2; }
.g-f { grid-column: span 2; }
.g-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.g-item:hover img,
.g-item:focus-within img {
  transform: scale(1.07);
}
.g-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(6, 13, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 15px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.g-item:hover figcaption,
.g-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 38, 0) 62%, rgba(6, 13, 38, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.g-item:hover::after {
  opacity: 1;
}

/* ---------- V3-7. About page photos ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: stretch;
  max-width: 1220px;
  margin: 0 auto 26px;
}
.about-intro .detail-block {
  margin: 0;
  max-width: none;
  height: 100%;
}
.about-photo {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.about-photo:hover img {
  transform: scale(1.05);
}
.about-banner {
  position: relative;
  max-width: 1220px;
  margin: 36px auto 0;
  height: 350px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.about-banner:hover img {
  transform: scale(1.05);
}
.about-banner figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(6, 13, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ---------- V3-8. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-visual {
    margin: 0 auto;
    width: 100%;
  }
  .gallery-grid {
    grid-auto-rows: 158px;
  }
}
@media (max-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-photo {
    min-height: 0;
    height: 320px;
  }
  .about-banner {
    height: 260px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}
@media (max-width: 760px) {
  .hero-visual {
    padding: 20px 2px 64px 2px;
  }
  .hero-visual .portal-card {
    left: 6px;
    bottom: -30px;
    width: 292px;
    padding: 15px 16px 11px;
  }
  .hero-visual .fc-grade {
    top: -14px;
    right: 2px;
  }
  .hero-visual .fc-done {
    bottom: -22px;
    right: 2px;
  }
  .hero-photo-frame {
    aspect-ratio: 1.12;
  }
  /* floats stay visible on mobile, just gentler */
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 215px;
  }
  .g-a, .g-b, .g-e, .g-f {
    grid-column: auto;
    grid-row: auto;
  }
  .g-item figcaption {
    opacity: 1;
    transform: none;
  }
}

/* ---------- V3-9. Reduced motion — everything new goes still & visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-visual,
  .hero-photo,
  .hero-visual-3d::before {
    animation: none !important;
  }
  .hero-visual-3d {
    transform: none !important;
  }
  .g-item figcaption {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   V4 — UNMISSABLE AUTOMATIC MOTION
   Motion that needs NO mouse, NO hover, NO scroll: a self-rocking
   3D photo frame, a crossfading hero slideshow, a spinning badge,
   floating math symbols, stronger floats and auto-zooming photos.
   Appended overrides: v2/v3 rules above stay untouched.
   ========================================================== */

/* ---------- V4-1. Hero photo slideshow (3 slides, 12s crossfade cycle)
   All three slides share ONE keyframe timeline; negative delays
   phase-shift slides 2 and 3 by 4s and 8s. Each slide also slowly
   zooms during its visible window and resets while invisible. --- */
.hero-photo-frame .hero-photo {
  /* v3 Ken Burns is replaced by the slideshow on the hero image */
  animation: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.hero-slide.s1 {
  opacity: 1; /* static fallback if animations are unavailable */
  animation: heroSlides 12s linear infinite;
}
.hero-slide.s2 { animation: heroSlides 12s linear infinite -4s; }
.hero-slide.s3 { animation: heroSlides 12s linear infinite -8s; }
@keyframes heroSlides {
  0%       { opacity: 1; transform: scale(1) translate(0, 0); }
  25%      { opacity: 1; transform: scale(1.06) translate(-1%, -1%); }
  33.333%  { opacity: 0; transform: scale(1.09) translate(-1.4%, -1.4%); }
  91.667%  { opacity: 0; transform: scale(1) translate(0, 0); }
  100%     { opacity: 1; transform: scale(1) translate(0, 0); }
}

/* ---------- V4-2. Auto 3D sway — the frame rocks on its own.
   Sway lives on the FRAME; the JS mouse tilt lives on the parent
   [data-tilt] wrapper, so both keep working together. ---------- */
.hero-photo-frame {
  animation: sway3d 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sway3d {
  from { transform: rotateY(-5deg) rotateX(2.5deg) translateY(0); }
  to   { transform: rotateY(5deg) rotateX(-2deg) translateY(-8px); }
}

/* ---------- V4-3. Rotating circular badge over the frame corner ---------- */
.spin-badge {
  position: absolute;
  top: -36px;
  left: -20px;
  z-index: 8;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 38px rgba(3, 8, 26, 0.42), inset 0 0 0 1px rgba(6, 13, 38, 0.07);
  transform: translateZ(70px);
  pointer-events: none;
}
.spin-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: spinBadge 14s linear infinite;
  will-change: transform;
}
@keyframes spinBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-badge-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  fill: var(--navy-900);
}
.spin-badge-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(45, 125, 255, 0.45);
}

/* ---------- V4-4. Floating math symbols across the hero ---------- */
.math-sym {
  position: absolute;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 26px rgba(125, 211, 252, 0.55);
  pointer-events: none;
  user-select: none;
  animation: symFloat 9s ease-in-out infinite alternate;
  will-change: transform;
}
.ms1 { top: 11%; left: 3.5%;  font-size: 3.8rem; opacity: 0.26; animation-duration: 8s; }
.ms2 { top: 16%; left: 47%;   font-size: 2.6rem; opacity: 0.18; animation-duration: 10s; animation-delay: -3s; }
.ms3 { top: 55%; left: 1.8%;  font-size: 4.2rem; opacity: 0.15; animation-duration: 11s; animation-delay: -5s; }
.ms4 { top: 7%;  left: 90%;   font-size: 2.3rem; opacity: 0.24; animation-duration: 7.5s; animation-delay: -1.5s; }
.ms5 { top: 63%; left: 94.5%; font-size: 3.2rem; opacity: 0.2;  animation-duration: 9.5s; animation-delay: -6s; }
.ms6 { top: 78%; left: 7%;    font-size: 2.9rem; opacity: 0.28; animation-duration: 12s; animation-delay: -2.5s; }
@keyframes symFloat {
  from { transform: translateY(-18px) rotate(-10deg); }
  to   { transform: translateY(18px) rotate(12deg); }
}

/* ---------- V4-5. Stronger floating cards ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(2deg); }
}
.fc-grade { animation-duration: 5s; }
.fc-done  { animation-duration: 6.2s; }

/* ---------- V4-6. Portal progress bar breathes 25% → 78% ---------- */
.hero-visual .p-bar i {
  animation: growBar 3.2s ease-in-out infinite alternate;
  will-change: width;
}
@keyframes growBar {
  from { width: 25%; }
  to   { width: 78%; }
}

/* ---------- V4-7. Headline gradient keeps moving ---------- */
.hero h1 .grad {
  background-size: 220% 220%;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ---------- V4-8. Auto-zoom on subject + gallery photos (no hover needed).
   The running animation wins over the v3 hover transform, so the
   photos breathe on their own; hover captions work as before. --- */
@keyframes autoZoom {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-0.8%, -0.8%); }
}
.subject-photo img {
  animation: autoZoom 9s ease-in-out infinite alternate;
  will-change: transform;
}
.subject-grid .subject-card:nth-child(2) .subject-photo img { animation-delay: -3s; }
.subject-grid .subject-card:nth-child(3) .subject-photo img { animation-delay: -6s; }
.g-item img {
  animation: autoZoom 10s ease-in-out infinite alternate;
  will-change: transform;
}
.gallery-grid .g-item:nth-child(2) img { animation-delay: -2s; }
.gallery-grid .g-item:nth-child(3) img { animation-delay: -4.5s; }
.gallery-grid .g-item:nth-child(4) img { animation-delay: -1.2s; }
.gallery-grid .g-item:nth-child(5) img { animation-delay: -6.5s; }
.gallery-grid .g-item:nth-child(6) img { animation-delay: -8s; }

/* ---------- V4-9. Faster marquee ---------- */
.marquee { animation-duration: 16s; }

/* ---------- V4-10. Small screens — motion stays, just sized to fit ---------- */
@media (max-width: 760px) {
  .spin-badge {
    width: 84px;
    height: 84px;
    top: -22px;
    left: -6px;
  }
  .spin-badge-core {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  /* symbols stay visible on mobile, slightly smaller */
  .ms1 { font-size: 2.7rem; }
  .ms2 { font-size: 1.9rem; left: 55%; }
  .ms3 { font-size: 3rem; }
  .ms4 { font-size: 1.7rem; left: 86%; }
  .ms5 { font-size: 2.3rem; left: 92%; }
  .ms6 { font-size: 2.1rem; }
  /* floats still clearly move on touch screens */
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(1.4deg); }
  }
}

/* ---------- V4-11. Reduced motion — V4 goes still, slide 1 only ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-photo-frame,
  .hero-slide,
  .spin-badge svg,
  .math-sym,
  .hero-visual .p-bar i,
  .hero h1 .grad,
  .subject-photo img,
  .g-item img {
    animation: none !important;
  }
  .hero-slide { opacity: 0 !important; transform: none !important; }
  .hero-slide.s1 { opacity: 1 !important; }
  .spin-badge { transform: none; }
}
