/* =====================================================================
   aiGod.digital — style.css (REFINED + CLEAN)
   - Duplicates removed
   - Desktop + Mobile split clearly
   - LOCKED blocks marked (do not edit)
   ===================================================================== */


/* =====================================================================
   0) ROOT + GLOBAL RESET (LOCKED)
   ===================================================================== */
:root {
  --brand-dark: #0b3c91;
  --brand-blue: #2d8cff;
  --brand-soft: #e8f1ff;
  --brand-yellow: #ffc857;
  --text-dark: #122031;
  --card-bg: #ffffff;
  --body-bg: #f4f6fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e8f1ff, #f4f6fb);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}


/* =====================================================================
   1) HEADER / NAV (DESKTOP + COMMON)
   ===================================================================== */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde4f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: none;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* allow welcome strip to wrap onto a second line */
  flex-wrap: wrap;
}

/* Keep NAV on top row, welcome below */
.logo { order: 1; }
.nav-links { order: 2; margin-left: auto; }
.header-welcome { order: 3; width: 100%; margin-top: 6px; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.6rem;
}

.logo-text-main {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.35rem;
  color: var(--brand-dark);
}

.logo-text-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #5a6c89;
  opacity: 0.85;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a { color: #44516a; }
.nav-links a:hover { color: var(--brand-dark); }

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 20px rgba(45, 140, 255, 0.35);
}


/* =====================================================================
   2) HEADER WELCOME ROTATOR (COMMON)
   ===================================================================== */
.header-welcome{
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.25;
  flex-wrap: wrap;
}

.welcome-static{
  font-weight: 700;
  opacity: 0.9;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

.welcome-rotator{
  display: inline-block;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: #d4af37;
  text-shadow: 0 2px 6px rgba(0,0,0,0.22);
  will-change: transform, opacity;
  transition: opacity 420ms ease, transform 420ms ease;
}

.welcome-rotator.is-fading{
  opacity: 0;
  transform: translateY(6px);
}


/* =====================================================================
   3) MAIN WRAPPER + PROMISE STRIP (COMMON)
   ===================================================================== */
main {
  max-width: none;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.4rem;
}

.promise-strip{
  max-width: 1080px;
  margin: 10px auto 12px;
  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);

  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
}


/* =====================================================================
   4) HERO GRID (DESKTOP DEFAULT)
   ===================================================================== */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.56fr) minmax(0, 0.84fr);
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 0.4rem;
}


/* =====================================================================
   5) LEFT COLUMN (DESKTOP DEFAULT)
   ===================================================================== */
.hero-left {
  background: radial-gradient(circle at top left, #fff7e0, #f3f6ff);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 16px 40px rgba(5, 26, 77, 0.2);
}

.hero-left-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--brand-dark);
}

.hero-left-subtitle {
  margin: 0.7rem 0 0.3rem;
  font-size: 1.1rem;
  color: var(--brand-dark);
}


/* =====================================================================
   6) PANELS (COMMON)
   ===================================================================== */
.hero-panel {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-panel li {
  margin-bottom: 0.18rem;
}

.dark-panel {
  background: #1b1421;
  color: #fbe9ff;
  border: 1px solid #ffb86b;
}

.dark-panel h3,
.dark-panel h2 {
  color: #ffd977;
}

.light-panel {
  background: #ffffff;
  color: #3f4a66;
  border: 1px solid #e3e7fb;
}

.light-panel h3 {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
  color: var(--brand-dark);
}

/* Gold panels (Parents/Students) */
.gold-panel {
  background: #110b18;
  color: #ffd977;
  border: 1px solid #ffcd7a;
}

.gold-panel h3 { color: #ffe9a8; }
.gold-panel li { color: #ffe9c4; }


/* =====================================================================
   7) BRAND HIGHLIGHT (COMMON)
   ===================================================================== */
.ai-brand-highlight{
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  margin: 6px 0 8px;

  background: linear-gradient(90deg, #ffd977, #2d8cff, #ffd977);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow:
    0 0 6px rgba(255, 217, 119, 0.45),
    0 0 12px rgba(45, 140, 255, 0.35);
}


/* =====================================================================
   8) MIDDLE COLUMN — VIDEO (DESKTOP DEFAULT)
   ===================================================================== */
.hero-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.video-shell {
  width: 75%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(4, 17, 57, 0.55);
  background: #000;
  position: relative; /* ✅ ADD THIS LINE */
  
}

.video-shell video {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;

}

/* ===== VIDEO SOUND TOGGLE (SAFE) ===== */
.sound-toggle{
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Video controls */
.video-controls {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  justify-content: center;
}

.video-controls button {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c1d0f0;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  color: #22304e;
  transition: background 0.15s, box-shadow 0.15s;
}

.video-controls button:hover {
  background: #e8f1ff;
  box-shadow: 0 4px 10px rgba(5, 26, 77, 0.18);
}


/* =====================================================================
   9) OFFER BOX (MATCHES YOUR NEW HTML: .offer-text only)
   ===================================================================== */
.offer-text{
  background: linear-gradient(120deg, #0b3c91, #2d8cff);
  border-radius: 22px;
  padding: 0.95rem 1.15rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(4, 22, 60, 0.70);
  width: 100%;
  max-width: 820px;
}

.offer-text h2{
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.offer-text p{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.offer-text .btn-primary{
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  box-shadow: 0 14px 25px rgba(45, 140, 255, 0.35);
}


/* =====================================================================
   10) RIGHT AREA GRID (DESKTOP DEFAULT)
   ===================================================================== */
.hero-middle-extra {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}


/* =====================================================================
   11) GRADE MENU (PAID + SAMPLE) — COMMON
   ===================================================================== */
.grade-menu {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.6rem 0.7rem;
  box-shadow: 0 12px 30px rgba(6, 22, 63, 0.16);
  border: 1px solid #dde4f5;
  width: fit-content;
  margin: 0 auto;
}

.grade-title {
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.grade-title-main {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  color: #f5c542;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.4px;
}

.grade-title-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #222;
  opacity: 0.9;
}

.grade-title-icon{
  display: inline-block;
  margin-right: 6px;
  transform: translateY(1px);
  opacity: 0.85;
}

/* Grade buttons grid (desktop) */
.grade-menu ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;

  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: center;
  gap: 0.5rem;
}

.grade-menu li { margin: 0; }

.grade-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 700;
  color: #111;
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

.grade-menu a:active{ transform: translateY(1px); }

/* Hover on desktop only */
@media (hover: hover) and (pointer: fine) {
  .grade-menu a{
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  }
  .grade-menu a:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.16);
    background-color: #ffffff;
  }
}


/* =====================================================================
   12) SAMPLE CARD ADD-ONS (COMMON)
   ===================================================================== */
.grade-menu-sample{
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* slightly tighter */
  padding: 0.8rem 0.9rem;
}

.sample-copy{
  margin: 6px 0 10px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1b2430;
  opacity: 0.95;
  text-align: center;
}

.sample-cta{
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  background: #1a66ff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transition: transform 180ms ease, opacity 180ms ease;
}

.sample-cta:hover{
  transform: translateY(-1px);
  opacity: 0.98;
}

.sample-note{
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
}

/* sample illustration size (smaller) */
.grade-menu-sample lottie-player,
.grade-menu-sample img{
  width: 90px !important;
  height: 90px !important;
  margin: 0.1rem auto 0.4rem !important;
}


/* =====================================================================
   13) BUTTONS (COMMON)
   ===================================================================== */
.btn-primary {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 14px 25px rgba(45, 140, 255, 0.35);
}

.btn-secondary {
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #c5d2ea;
  background: #fff;
  color: #42506b;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
}


/* =====================================================================
   14) FOOTER (COMMON)
   ===================================================================== */
footer {
  border-top: 1px solid #dde4f0;
  background: rgba(255, 255, 255, 0.92);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #64708d;
}


/* =====================================================================
   15) CRISIS MARQUEE (COMMON)
   ===================================================================== */
.footer-crisis {
  width: 100%;
  max-width: none;
  margin: 0 0 0.8rem;
  padding: 0.7rem 1.6rem;
  font-size: 1.02rem;
  border-radius: 0;
  background: #110b18;
  color: #ffe9c4;
  border-top: 1px solid #ffcd7a;
  border-bottom: 1px solid #ffcd7a;
  box-shadow: 0 6px 18px rgba(7, 25, 58, 0.45);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;

  overflow: hidden;
  white-space: nowrap;
}

.crisis-marquee-inner {
  display: inline-block;
  animation: crisis-scroll 90s linear infinite;
}

.crisis-marquee-inner span {
  display: inline-block;
  padding-right: 2.5rem;
}

.crisis-label {
  font-weight: 600;
  color: #ffd977;
}

@keyframes crisis-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* =====================================================================
   16) RESPONSIVE — TABLETS (<=1024px)
   ===================================================================== */
@media (max-width: 1024px) {
  main { padding: 1.2rem 1rem 2.2rem; }

  .hero-layout { grid-template-columns: 1fr; gap: 1.2rem; }

  .hero-left,
  .hero-middle,
  .grade-menu {
    max-width: 800px;
    margin: 0 auto;
  }
}


/* =====================================================================
   17) RESPONSIVE — PHONES (<=768px)  ✅ MAIN MOBILE BLOCK
   ===================================================================== */
@media (max-width: 768px) {
  /* NAV: hide links (mobile) */
  .nav-links { display: none; }

  main { padding: 1.15rem 0.9rem 2.2rem; }

  .hero-layout { grid-template-columns: 1fr; gap: 1rem; }

  /* LOCKED: keep VIDEO first on mobile */
  .hero-middle { order: -1; }

  /* Mobile video: short + clean */
  .video-shell{
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    max-height: 240px;
    overflow: hidden;
  }

  .video-shell video{
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
  }

  /* Reduce vertical height */
  .hero-left{
    padding: 1.05rem 1.1rem 1.15rem;
  }

  .hero-panel{
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .hero-panel li{ margin-bottom: 0.12rem; }

  /* Headings */
  .hero-left-title{
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    text-align: center;
  }

  .hero-left-subtitle{
    font-size: 1rem;
    line-height: 1.3;
    margin: 0.55rem 0 0.25rem;
    text-align: center;
  }

  .ai-brand-highlight{
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 6px 0 6px;
    text-align: center;
  }

  /* Offer: keep centered on mobile */
  .offer-text{
    text-align: center;
    padding: 0.85rem 0.95rem;
  }

  .offer-text h2{
    font-size: 1.05rem;
  }

  .offer-text p{
    font-size: 0.9rem;
  }

  /* ===================== LOCKED FIX ======================
     FIX: stop grade buttons from overflowing screen on phones
     (You confirmed: "No horizontal scroll = FIX CONFIRMED")
     DO NOT EDIT THIS BLOCK
     ======================================================= */
  .grade-menu{
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .grade-menu ul{
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .grade-menu a{
    padding: 9px 8px;
    font-size: 0.85rem;
  }
  /* =================== END LOCKED FIX ==================== */
}


/* =====================================================================
   18) MOBILE FINE TUNING (<=820px) — overflow safety + padding
   ===================================================================== */
@media (max-width: 820px){
  /* LOCKED: stop right shift */
  html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img, video, canvas, svg{
    max-width: 100%;
    height: auto;
  }

  .nav-container{
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .hero-layout{
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  /* Smaller logo on small screens */
  .logo-mark{
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 1.4rem;
  }

  .logo-text-main{ font-size: 1.15rem; }
  .logo-text-sub{ font-size: 0.8rem; }

  .promise-strip{
    margin: 8px 14px 10px;
    max-width: none;
    font-size: 1.06rem;
    padding: 12px 12px;
  }
}


/* =====================================================================
   19) EXTRA SMALL PHONES (<=600px)
   ===================================================================== */
@media (max-width: 600px){
  .header-welcome{ gap: 8px; margin-top: 6px; }
  .welcome-rotator{ font-size: 1.05rem; text-align: left; }

  .grade-title-main{ font-size: 1.02rem; }
  .grade-title-sub{ font-size: 0.72rem; }

  .promise-key{
    color: #d4af37;
    font-weight: 900;
  }
}


/* =====================================================================
   20) DESKTOP ONLY: keep sample card balanced (>=821px)
   ===================================================================== */
@media (min-width: 821px){
  .grade-menu-sample{ min-height: 275px; }
}




/* ===== Mobile hamburger placement ===== */
.nav-toggle{
  display:none;
  border:none;
  background:transparent;
  font-size:28px;
  cursor:pointer;
  padding:8px 10px;
  margin-left:auto;
}

/* Mobile view ONLY */
@media (max-width: 900px){

  .nav-container{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
  }

  .logo{ margin-right:auto; }
  .nav-toggle{ order: 2; }





  .nav-toggle{
    display:block;
  }

  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    gap:10px;
    padding:12px 0;
    overflow:hidden;
  }

  .nav-links.nav-open{
    display:flex;
    animation: slideDown 0.18s ease-out;
  }

  .header-welcome{
    width:100%;
  }

  .nav-links a{
    padding:10px 12px;
  }

  .nav-links .nav-cta{
    text-align:center;
  }
}

/* Animation OUTSIDE media block */
@keyframes slideDown{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav-links.nav-open{ animation:none; }
}





