:root{
  --radius: 26px;

  /* Light */
  --l-bg: #f6f8ff;
  --l-bg2:#f2f6ff;
  --l-card:#ffffff;
  --l-text:#0f172a;
  --l-muted:#64748b;
  --l-stroke: rgba(15,23,42,.10);
  --l-shadow: 0 18px 60px rgba(15,23,42,.10);

  /* Dark */
  --d-bg:#060812;
  --d-bg2:#050713;
  --d-card: rgba(10,14,28,.55);
  --d-text:#eef2ff;
  --d-muted: rgba(238,242,255,.68);
  --d-stroke: rgba(255,255,255,.12);
  --d-shadow: 0 22px 90px rgba(0,0,0,.55);

  /* Accents */
  --cyan:#22d3ee;
  --blue:#3b82f6;
  --purple:#a855f7;
  --pink:#ff4fd8;
  --gold:#fbbf24;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-x:hidden;
}

/* -------------------------
   THEME CLASSES
--------------------------*/
body.theme-light{
  color: var(--l-text);
  background:
    radial-gradient(900px 520px at 80% 15%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(800px 520px at 18% 40%, rgba(168,85,247,.12), transparent 55%),
    radial-gradient(900px 520px at 70% 85%, rgba(34,211,238,.10), transparent 55%),
    linear-gradient(180deg, var(--l-bg), var(--l-bg2));
}
body.theme-dark{
  color: var(--d-text);
  background:
    radial-gradient(900px 600px at 25% 20%, rgba(34,211,238,.12), transparent 55%),
    radial-gradient(900px 600px at 75% 70%, rgba(168,85,247,.12), transparent 55%),
    radial-gradient(900px 600px at 60% 30%, rgba(255,79,216,.08), transparent 60%),
    linear-gradient(180deg, var(--d-bg), var(--d-bg2));
}

.ui{ position: relative; z-index: 2; }
.container{ width: min(1200px, 92vw); margin:0 auto; }

/* -------------------------
   BACKGROUND DECOR
--------------------------*/
.bgDecor{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events:none;
}

/* Light decor static */
body.theme-light .bgDecor::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.9;
  background:
    radial-gradient(circle at 22% 38%, rgba(168,85,247,.10), transparent 44%),
    radial-gradient(circle at 78% 40%, rgba(34,211,238,.10), transparent 44%),
    radial-gradient(circle at 55% 75%, rgba(255,79,216,.08), transparent 48%);
}
body.theme-light .bgDecor::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.55;
  background-image:
    radial-gradient(circle at 18% 36%, rgba(168,85,247,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 30%, rgba(59,130,246,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 42%, rgba(34,211,238,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 52%, rgba(255,79,216,.20) 0 2px, transparent 3px);
}

/* -------------------------
   DARK BACKGROUND: BIOLOGY DNA (Premium)
--------------------------*/
body.theme-dark .bgDecor{
  background:
    radial-gradient(1200px 700px at 50% 30%, rgba(34,211,238,.10), transparent 55%),
    radial-gradient(1200px 700px at 70% 70%, rgba(168,85,247,.10), transparent 55%),
    linear-gradient(180deg, #050712, #060813);
}

/* soft particles */
body.theme-dark .bgDecor::before{
  content:"";
  position:absolute;
  inset:-35%;
  opacity:.22;
  background:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(168,85,247,.20) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 75%, rgba(255,79,216,.16) 0 2px, transparent 3px);
  filter: blur(.2px);
}

/* animated DNA overlay */
body.theme-dark .bgDecor::after{
  content:"";
  position:absolute;
  inset:-20%;
  opacity:.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%2322d3ee' stop-opacity='0.22'/%3E%3Cstop offset='0.5' stop-color='%23a855f7' stop-opacity='0.18'/%3E%3Cstop offset='1' stop-color='%23ff4fd8' stop-opacity='0.14'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='2'%3E%3Cpath d='M140 0 C260 120 20 240 140 360 C260 480 20 600 140 720 C240 820 120 900 140 980'/%3E%3Cpath d='M260 0 C140 120 380 240 260 360 C140 480 380 600 260 720 C160 820 280 900 260 980'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='0.10' stroke-width='2'%3E%3Cline x1='150' y1='60' x2='250' y2='60'/%3E%3Cline x1='150' y1='120' x2='250' y2='120'/%3E%3Cline x1='150' y1='180' x2='250' y2='180'/%3E%3Cline x1='150' y1='240' x2='250' y2='240'/%3E%3Cline x1='150' y1='300' x2='250' y2='300'/%3E%3Cline x1='150' y1='360' x2='250' y2='360'/%3E%3Cline x1='150' y1='420' x2='250' y2='420'/%3E%3Cline x1='150' y1='480' x2='250' y2='480'/%3E%3Cline x1='150' y1='540' x2='250' y2='540'/%3E%3Cline x1='150' y1='600' x2='250' y2='600'/%3E%3Cline x1='150' y1='660' x2='250' y2='660'/%3E%3Cline x1='150' y1='720' x2='250' y2='720'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  background-repeat: repeat;
  filter: blur(0.6px);
  animation: dnaDrift 14s ease-in-out infinite;
}

@keyframes dnaDrift{
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  50%  { transform: translate3d(-26px, 18px, 0) rotate(1deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

.ui{ position: relative; z-index: 2; }

/* IMPORTANT: disable old waves layer */
.waves{ display:none !important; }

/* -------------------------
   HEADER (Responsive)
--------------------------*/
.header{
  position: sticky;
  top: 0;
  z-index: 50;
}
body.theme-light .header{
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(246,248,255,.92), rgba(246,248,255,.65));
  border-bottom: 1px solid rgba(15,23,42,.06);
}
body.theme-dark .header{
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,8,18,.82), rgba(5,8,18,.45));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  text-decoration:none;
  white-space: nowrap;
}
body.theme-light .brand{ color: #2563eb; }
body.theme-dark .brand{ color: rgba(34,211,238,.95); }

.brandLogo{
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.brandText{
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.3px;
}
body.theme-dark .brandText{
  background: linear-gradient(90deg,
    rgba(34,211,238,1),
    rgba(59,130,246,1),
    rgba(168,85,247,.9)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 14px rgba(34,211,238,.25),
    0 0 24px rgba(59,130,246,.18);
}
body.theme-light .brandText{ color: #1e293b; }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
}
body.theme-light .nav{ color: #64748b; }
body.theme-dark .nav{ color: rgba(238,242,255,.72); }

.nav a{
  color: inherit;
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 999px;
}
body.theme-light .nav a:hover{ background: rgba(15,23,42,.05); color: #0f172a; }
body.theme-dark .nav a:hover{ background: rgba(255,255,255,.06); color: #eef2ff; }

.headerActions{ display:flex; align-items:center; gap:10px; }

.btn{
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  color: inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: .18s ease;
  cursor:pointer;
  white-space: nowrap;
}
body.theme-dark .btn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,28,.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.btn:hover{ transform: translateY(-1px); }

.btnPrimary{
  border: 1px solid rgba(37,99,235,.20);
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(34,211,238,.92));
  color: white;
}
body.theme-dark .btnPrimary{
  border: 1px solid rgba(34,211,238,.22);
  background: linear-gradient(90deg, rgba(34,211,238,.95), rgba(168,85,247,.85));
}

/* theme toggle */
.themeToggle{
  width: 46px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

/* burger (mobile) */
.burger{
  width: 46px;
  padding:0;
  font-weight: 900;
  display:none;
}
@media(max-width: 980px){
  .nav{ display:none; }
  .burger{ display:inline-flex; }
}

/* mobile menu sheet */
.mobileSheet{
  position: fixed;
  inset: 0;
  z-index: 80;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 16px;
}
.mobileSheetBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.mobileSheetPanel{
  position: relative;
  width: min(520px, 94vw);
  border-radius: 24px;
  padding: 14px;
  margin-top: 64px;
}
body.theme-light .mobileSheetPanel{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--l-shadow);
}
body.theme-dark .mobileSheetPanel{
  background: rgba(10,14,28,.72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--d-shadow);
}

.mobileNav{
  display:grid;
  gap: 10px;
  padding: 10px;
}
.mobileNav a{
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration:none;
  color: inherit;
}
body.theme-light .mobileNav a{ background: rgba(15,23,42,.03); border:1px solid rgba(15,23,42,.06); }
body.theme-dark .mobileNav a{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }

.mobileActions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}
@media(max-width: 420px){
  .mobileActions{ grid-template-columns: 1fr; }
}

/* -------------------------
   HERO + TEACHER CARD
--------------------------*/
.hero{ padding: 64px 0 26px; position: relative; }
.heroInner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:center;
}
@media(max-width: 980px){
  .hero{ padding: 44px 0 10px; }
  .heroInner{ grid-template-columns: 1fr; }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
body.theme-light .badge{
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.08);
  color: #2563eb;
}
body.theme-dark .badge{
  border: 1px solid rgba(34,211,238,.18);
  background: rgba(34,211,238,.08);
  color: rgba(34,211,238,.95);
}

.teacherCard{
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow:hidden;
}
body.theme-light .teacherCard{
  background: rgba(255,255,255,.88);
  border: 1px solid var(--l-stroke);
  box-shadow: var(--l-shadow);
}
body.theme-dark .teacherCard{
  background: rgba(10,14,28,.50);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--d-shadow);
}
.teacherCard::before{
  content:"";
  position:absolute;
  inset:-60%;
  background:
    radial-gradient(circle at 30% 40%, rgba(34,211,238,.16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(168,85,247,.14), transparent 55%);
  filter: blur(18px);
  opacity:.8;
}

.teacherImgWrap{
  position: relative;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.teacherImg{
  width: 100%;
  height: min(440px, 56vh);
  object-fit: cover;
  display:block;
}
@media(max-width: 520px){
  .teacherImg{ height: 360px; }
}

.teacherMeta{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(2,6,23,.55);
  color: white;
  padding: 12px 12px;
  backdrop-filter: blur(12px);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.teacherMeta strong{ font-size: 14px; }
.teacherMeta span{ opacity:.85; font-size: 12px; }

.teacherEntrance{
  opacity: 0;
  transform: translateY(70px);
  animation: teacherUp 1.1s cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: .15s;
}
@keyframes teacherUp{
  0%{ opacity:0; transform: translateY(80px) scale(.98); }
  65%{ opacity:1; transform: translateY(-8px) scale(1.01); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}

/* -------------------------
   SECTION TITLES
--------------------------*/
.section{ padding: 42px 0 70px; position: relative; }
@media(max-width: 520px){ .section{ padding: 34px 0 56px; } }

.sectionTitle{ text-align:center; margin-bottom: 26px; }
.sectionTitle h2{ margin:0; font-size: 46px; letter-spacing:-0.4px; }
@media(max-width: 720px){ .sectionTitle h2{ font-size: 34px; } }
.sectionTitle p{
  margin: 10px auto 0;
  max-width: 62ch;
  line-height: 1.8;
}
body.theme-light .sectionTitle p{ color: var(--l-muted); }
body.theme-dark .sectionTitle p{ color: var(--d-muted); }

/* =========================
   SUBJECT CARDS
========================= */
.subjectsGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media(max-width: 980px){
  .subjectsGrid{ grid-template-columns: 1fr; }
}

/* single card center */
#subjects .subjectsGrid{
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.subjectCard{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.subjectCard:hover{ transform: translateY(-6px); }

.subjectImageWrap{
  position: relative;
  height: 220px;
  overflow: hidden;
}
.subjectImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.subjectCard:hover .subjectImage{ transform: scale(1.08); }

.subjectImageOverlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.65));
}

.subjectContent{
  padding: 22px;
  text-align: left;
}

.subjectTitle{
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}
.subjectGrade{
  font-size: 14px;
  opacity: .75;
  margin-bottom: 18px;
}

.subjectBtn{
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}
body.theme-dark .subjectCard{
  background: rgba(20,25,45,.6);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
}
body.theme-dark .subjectBtn{
  background: linear-gradient(90deg,#22d3ee,#a855f7);
  color:white;
}
body.theme-light .subjectCard{
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 15px 45px rgba(0,0,0,.08);
}
body.theme-light .subjectBtn{
  background: linear-gradient(90deg,#2563eb,#9333ea);
  color:white;
}

@media(max-width:768px){
  .subjectImageWrap{ height: 180px; }
}

/* -------------------------
   WHY CHOOSE
--------------------------*/
.featureGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media(max-width: 980px){ .featureGrid{ grid-template-columns: 1fr; } }

.featureCard{
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow:hidden;
  min-height: 118px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.theme-light .featureCard{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 55px rgba(15,23,42,.10);
}
body.theme-dark .featureCard{
  background: rgba(10,14,28,.55);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 85px rgba(0,0,0,.55);
}
.featureCard:hover{
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.22);
}
.featureRow{
  display:flex;
  flex-direction: row-reverse;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.featureText{
  flex: 1;
  min-width: 0;
  text-align: left;
}
.featureTitle{
  margin:0 0 6px;
  font-size: 16px;
  font-weight: 950;
}
.featureDesc{
  margin:0;
  font-size: 13px;
  line-height: 1.75;
}
body.theme-light .featureDesc{ color: rgba(15,23,42,.62); }
body.theme-dark  .featureDesc{ color: rgba(238,242,255,.70); }

.featureIconWrap{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  transform: translateZ(0);
}
.featureIcon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 20px;
  position: relative;
  will-change: transform, filter;
}
body.theme-light .featureIcon{
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.16);
  box-shadow: 0 12px 28px rgba(37,99,235,.12);
}
body.theme-dark .featureIcon{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 2px rgba(34,211,238,.10),
    0 0 22px rgba(34,211,238,.14),
    0 0 44px rgba(168,85,247,.10);
}
.featureIcon{ animation: iconPulse 3.4s ease-in-out infinite; }
@keyframes iconPulse{
  0%, 100%{ transform: translateY(0) scale(1); filter: brightness(1); }
  50%{ transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
}

/* -------------------------
   FOOTER
--------------------------*/
.footer{
  position: relative;
  padding: 54px 0 26px;
}
body.theme-light .footer{
  background: rgba(255,255,255,.55);
  border-top: 1px solid rgba(15,23,42,.06);
}
body.theme-dark .footer{
  background: linear-gradient(180deg, rgba(6,8,18,.2), rgba(5,8,18,.85));
  border-top: 1px solid rgba(255,255,255,.06);
}

.footerGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}
@media(max-width: 980px){ .footerGrid{ grid-template-columns: 1fr; } }

.footerCol h4{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}
body.theme-light .footerCol h4{ color: rgba(15,23,42,.85); }
body.theme-dark .footerCol h4{ color: rgba(238,242,255,.90); }

.footerLinks{
  display:grid;
  gap: 10px;
  font-size: 13px;
}
.footerLinks a{
  text-decoration:none;
  color: inherit;
  opacity:.85;
}
.footerLinks a:hover{ opacity:1; }

.footerBrand{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.footerBrand .logo{
  width: 48px; height: 48px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
}
body.theme-light .footerBrand .logo{
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: #2563eb;
}
body.theme-dark .footerBrand .logo{
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.18);
  color: rgba(34,211,238,.95);
}
.footerBrand p{
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
}
body.theme-light .footerBrand p{ color: rgba(15,23,42,.62); }
body.theme-dark .footerBrand p{ color: rgba(238,242,255,.70); }

.socialRow{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.socialBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
body.theme-light .socialBtn{
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.75);
}
body.theme-dark .socialBtn{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(238,242,255,.85);
}
.socialBtn:hover{ transform: translateY(-1px); }

.copyright{
  margin-top: 28px;
  font-size: 12px;
  opacity:.75;
  text-align:center;
}

/* -------------------------
   LOADING (1.5s)
--------------------------*/
.loadingOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.theme-light .loadingOverlay{
  background:
    radial-gradient(900px 520px at 80% 15%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(800px 520px at 18% 40%, rgba(168,85,247,.12), transparent 55%),
    linear-gradient(180deg, var(--l-bg), var(--l-bg2));
}
body.theme-dark .loadingOverlay{
  background:
    radial-gradient(900px 600px at 25% 20%, rgba(34,211,238,.12), transparent 55%),
    radial-gradient(900px 600px at 75% 70%, rgba(168,85,247,.12), transparent 55%),
    linear-gradient(180deg, var(--d-bg), var(--d-bg2));
}
.loadingBox{
  width: min(520px, 92vw);
  border-radius: 28px;
  padding: 24px 20px;
  text-align:center;
  backdrop-filter: blur(14px);
}
body.theme-light .loadingBox{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--l-shadow);
}
body.theme-dark .loadingBox{
  background: rgba(10,14,28,.55);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--d-shadow);
}
.loadingLine{
  height: 10px;
  border-radius: 999px;
  overflow:hidden;
  margin: 12px auto 16px;
  width: min(360px, 86%);
}
body.theme-light .loadingLine{ background: rgba(59,130,246,.12); }
body.theme-dark .loadingLine{ background: rgba(255,255,255,.08); }
.loadingLine span{
  display:block;
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,211,238,.95), rgba(168,85,247,.85));
  animation: move 1.05s ease-in-out infinite;
}
@keyframes move{ 0%{ transform: translateX(-20%);} 100%{ transform: translateX(140%);} }

.loadingTitle{ margin:0; font-size: 26px; font-weight: 900; }
body.theme-light .loadingTitle{ color:#2563eb; }
body.theme-dark .loadingTitle{ color: rgba(34,211,238,.95); }
.loadingSub{ margin: 6px 0 0; font-size: 13px; opacity:.75; }
.loadingHide{ animation: fadeOut .35s ease forwards; }
@keyframes fadeOut{ to{ opacity:0; transform: scale(.98);} }

/* -------------------------
   Reveal animation
--------------------------*/
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
  will-change: opacity, transform;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* parallax vars */
body.theme-dark .bgDecor::after{
  transform: translate3d(calc(var(--mx, 0px) * .6), calc(var(--my, 0px) * .6), 0);
}

/* Neon blue headline */
.neonTitle{
  margin: 14px 0 10px;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.8px;
  font-weight: 1000;
}
@media(max-width: 980px){ .neonTitle{ font-size: 50px; } }
@media(max-width: 520px){ .neonTitle{ font-size: 40px; } }

body.theme-dark .neonTitle{
  background: linear-gradient(90deg,
    rgba(34,211,238,1),
    rgba(59,130,246,1),
    rgba(168,85,247,.9)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 18px rgba(34,211,238,.28),
    0 0 28px rgba(59,130,246,.22),
    0 0 38px rgba(168,85,247,.16);
}
body.theme-light .neonTitle{ color: #0f172a; }
body.theme-light .neonTitle .dot{ color: #2563eb; }
body.theme-dark .neonTitle .dot{
  color: rgba(34,211,238,1);
  text-shadow:
    0 0 18px rgba(34,211,238,.55),
    0 0 34px rgba(59,130,246,.35);
}

.heroSubline{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  max-width: 62ch;
  font-weight: 700;
}
body.theme-light .heroSubline{ color: rgba(15,23,42,.62); }
body.theme-dark .heroSubline{ color: rgba(238,242,255,.70); }

.neonSub{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 6px 0 14px;
  font-weight: 1000;
  letter-spacing: -0.3px;
  font-size: 28px;
  line-height: 1.15;
  user-select: none;
}
@media(max-width: 980px){ .neonSub{ font-size: 22px; } }
@media(max-width: 520px){ .neonSub{ font-size: 20px; } }

.neonSub .word{
  position: relative;
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  transform: translate3d(0,0,0);
  will-change: transform, filter, opacity;
}
body.theme-light .neonSub .word{
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.14);
  color: #1d4ed8;
  box-shadow: 0 10px 30px rgba(37,99,235,.08);
}
body.theme-dark .neonSub .word{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(238,242,255,.90);
}

.neonSub .word.highlight{
  background: linear-gradient(90deg,
    rgba(34,211,238,.25),
    rgba(59,130,246,.18),
    rgba(168,85,247,.18)
  );
}
body.theme-dark .neonSub .word.highlight{
  border-color: rgba(34,211,238,.20);
  box-shadow:
    0 0 22px rgba(34,211,238,.20),
    0 0 40px rgba(59,130,246,.16),
    0 0 70px rgba(168,85,247,.12);
}

.neonSub .word::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-70%) rotate(12deg);
  opacity: 0;
  pointer-events:none;
}
body.theme-dark .neonSub .word.highlight::after{
  opacity: .75;
  animation: subShine 2.8s ease-in-out infinite;
}
@keyframes subShine{
  0%   { transform: translateX(-70%) rotate(12deg); }
  45%  { transform: translateX(70%)  rotate(12deg); }
  100% { transform: translateX(70%)  rotate(12deg); }
}

body.theme-dark .neonSub{ animation: flicker 5.8s ease-in-out infinite; }
@keyframes flicker{
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.07); }
}

/* Section underline (keep) */
.sectionTitle h2{
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  transform-origin: center;
  will-change: transform, opacity, filter;
}
.sectionTitle h2::after,
.sectionTitle h2::before{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 2px;
  width: min(220px, 72%);
  height: 14px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  pointer-events:none;
}
.sectionTitle h2::before{ opacity: .55; filter: blur(10px); }
.sectionTitle h2::after{ opacity: .95; }

body.theme-light .sectionTitle h2::after{
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(147,51,234,.85));
}
body.theme-light .sectionTitle h2::before{
  background: linear-gradient(90deg, rgba(37,99,235,.55), rgba(147,51,234,.45));
}
body.theme-dark .sectionTitle h2::after{
  background: linear-gradient(90deg, rgba(34,211,238,.95), rgba(168,85,247,.90), rgba(255,79,216,.75));
}
body.theme-dark .sectionTitle h2::before{
  background: linear-gradient(90deg, rgba(34,211,238,.55), rgba(168,85,247,.45), rgba(255,79,216,.35));
}
.sectionTitle h2::after,
.sectionTitle h2::before{
  clip-path: ellipse(70% 70% at 50% 40%);
}
.reveal.show .sectionTitle h2::after,
.reveal.show .sectionTitle h2::before{
  animation: underlineDraw .85s cubic-bezier(.2,.9,.2,1) .18s forwards;
}
@keyframes underlineDraw{
  0%{ transform: translateX(-50%) scaleX(0); opacity: 0; }
  70%{ transform: translateX(-50%) scaleX(1.08); opacity: 1; }
  100%{ transform: translateX(-50%) scaleX(1); opacity: 1; }
}