/* ==========
   GRAVITO Academy (static HTML + CSS)
   ========== */

:root{
  --bg: #ffffff;
  --muted-bg: #f6f8fc;
  --text: #0f172a;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.06);

  --primary: #2b66ff;
  --primary-2: #1e4fd6;
  --navy: #0b1531;
  --navy-2: #0d1c3f;

  --radius: 14px;
  --radius-lg: 18px;
  --container: 1140px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; scroll-padding-top: 92px; }

body{
  margin: 0;
  padding-top: 72px;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button, input, select{ font: inherit; }
.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.header-inner{
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(11, 21, 49, 0.10);
  background: white;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(43, 102, 255, 0.10);
  color: var(--primary);
}

.brand-mark svg{
  width: 22px;
  height: 22px;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name{
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link{
  font-size: 13.5px;
  color: rgba(15,23,42,0.78);
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.nav-link:hover{
  background: rgba(43, 102, 255, 0.08);
  color: var(--primary);
}
.nav-link.active{
  color: var(--primary);
}

.nav-dropdown{
  position: relative;
}

.nav-btn{
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chev{ width: 16px; height: 16px; opacity: .8; }

.dropdown-menu{
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 190px;
  background: white;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: none;
}

.nav-dropdown:hover .dropdown-menu{
  display: grid;
}

.dropdown-menu a{
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(15,23,42,0.76);
}
.dropdown-menu a:hover{
  background: rgba(43,102,255,0.08);
  color: var(--primary);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(43,102,255,0.18);
}
.btn-primary:hover{ background: var(--primary-2); }

.btn-ghost{
  background: white;
  border-color: rgba(43,102,255,0.25);
  color: var(--primary);
}
.btn-ghost:hover{
  border-color: rgba(43,102,255,0.40);
  background: rgba(43,102,255,0.06);
}

.btn-lg{
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.btn-full{
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
}

/* Hamburger (only visible on small screens) */
.hamburger{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  background: white;
  display: none;
  padding: 10px;
}
.hamburger span{
  display: block;
  height: 2px;
  background: rgba(15,23,42,0.75);
  border-radius: 10px;
  margin: 5px 0;
}

/* Mobile nav backdrop */
.nav-backdrop{
  display: none;
}

.nav-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

/* Hero */

.hero{
  position: relative;
  min-height: 560px;
  color: white;
  overflow: hidden;
}

.hero-carousel{
  position: relative;
  min-height: 560px;
}

.carousel-track{
  display: flex;
  height: 560px;
  width: 100%;
  transition: transform .7s ease;
  will-change: transform;
}

.carousel-slide{
  min-width: 100%;
  height: 560px;
}

.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.02);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,21,49,0.85) 0%, rgba(11,21,49,0.45) 45%, rgba(11,21,49,0.25) 100%);
  pointer-events: none;
}

.hero-inner{
  position: absolute;
  inset: 0;
  padding: 54px 0;
  display: grid;
  align-items: center;
}

.hero-content{
  max-width: 560px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.8px;
}

.hero-subtitle{
  margin: 0 0 18px;
  font-size: 16px;
  opacity: 0.92;
}

.hero-actions{ margin-top: 10px; }

.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: white;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hero-arrow:hover{ background: rgba(255,255,255,0.16); }
.hero-arrow-left{ left: 0; }
.hero-arrow-right{ right: 0; }

.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot-btn{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.dot-btn.active{
  width: 18px;
  background: rgba(255,255,255,0.95);
}

/* Sections */
.section{
  padding: 64px 0;
}

.section-muted{
  background: var(--muted-bg);
}

.section-title{
  margin: 0 0 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.3px;
}

.center{ text-align: center; }

.section-head{
  margin-bottom: 30px;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.tiny{ font-size: 12px; }

/* Stats */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.stat-card{
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  justify-items: center;
  text-align: center;
}

.stat-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.stat-icon svg{ width: 24px; height: 24px; color: white; }

.i-blue{ background: #2b66ff; }
.i-green{ background: #14b86a; }
.i-purple{ background: #7c3aed; }
.i-orange{ background: #f97316; }

.stat-value{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.stat-label{
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(15,23,42,0.65);
  font-weight: 650;
}

/* Welcome */
.welcome{
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.checklist{
  padding-left: 0;
  list-style: none;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li{
  position: relative;
  padding-left: 26px;
  color: rgba(15,23,42,0.78);
  font-weight: 550;
}

.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 900;
}

.inline-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.welcome-card{
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow);
  padding: 22px;
}

.welcome-badge{
  display: inline-flex;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  border-radius: 999px;
  background: rgba(43,102,255,0.10);
  color: var(--primary);
  margin-bottom: 10px;
}

.welcome-card h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.mini-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mini{
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(15,23,42,0.02);
}

.mini-k{ font-weight: 800; color: rgba(15,23,42,0.85); }
.mini-v{ font-size: 12px; color: rgba(15,23,42,0.65); margin-top: 2px; }

/* Achievements */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.pill svg{ width: 16px; height: 16px; }

.toppers-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.topper{
  height: 220px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow-soft);
  color: white;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55)),
    url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1000&q=60');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.topper-dim{
  opacity: 0.55;
  filter: saturate(0.8);
}

.topper-tag{
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(245, 158, 11, 0.92);
  color: #1f2937;
  font-weight: 900;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}

.topper-name{ font-size: 18px; font-weight: 850; }
.topper-score{ font-size: 14px; font-weight: 800; opacity: 0.95; margin-top: 4px; }
.topper-meta{ font-size: 12px; opacity: 0.92; }

/* Cards grid */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.info-card{
  border: 1px solid rgba(15,23,42,0.08);
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.info-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(43,102,255,0.10);
  color: var(--primary);
  margin-bottom: 10px;
}
.info-icon svg{ width: 22px; height: 22px; }

.info-card h3{
  margin: 2px 0 8px;
  font-size: 16px;
}
.info-card p{ margin: 0; }

/* Programs */
.programs-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.program-card{
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.program-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: rgba(43,102,255,0.35);
}

.program-icon{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15,23,42,0.04);
  margin-bottom: 10px;
  font-size: 18px;
}

.program-card h3{ margin: 0 0 6px; font-size: 16px; }
.program-card p{ margin: 0 0 8px; }
.program-card .link{
  display: inline-block;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.p-purple::before{ background: #a78bfa; }
.p-blue::before{ background: #93c5fd; }
.p-orange::before{ background: #fb923c; }
.p-pink::before{ background: #f9a8d4; }
.p-cream::before{ background: #fde68a; }

/* CTA */
.cta{
  background: linear-gradient(90deg, #1f4fe0, #274ed6, #3b5bd9);
  padding: 66px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before{
  content:"";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.08), transparent 48%);
  pointer-events: none;
}

.cta-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}

.cta-media{
  border-radius: 18px;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.30)),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=60');
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.cta-form{
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.35);
}

.cta-form h2{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.form{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

.field span{
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(15,23,42,0.72);
}

input, select{
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  outline: none;
  background: white;
}

input:focus, select:focus{
  border-color: rgba(43,102,255,0.45);
  box-shadow: 0 0 0 4px rgba(43,102,255,0.12);
}

/* Footer */
.footer{
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: rgba(255,255,255,0.86);
  padding-top: 54px;
}

.footer-top{
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

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

.footer .brand-mark{
  background: rgba(43,102,255,0.16);
  color: #9cb7ff;
}

.footer-brand .brand-name{ color: white; }
.footer-brand .brand-sub{ color: rgba(255,255,255,0.65); }

.footer-contact{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.footer-link{
  color: rgba(255,255,255,0.76);
  font-weight: 650;
}
.footer-link:hover{ color: white; }

.footer-cols{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.footer-col h4{
  margin: 0 0 10px;
  font-size: 14px;
  color: white;
}
.footer-col a{
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  font-size: 13px;
}
.footer-col a:hover{ color: white; }

.footer-bottom{
  padding: 18px 0 26px;
  text-align: center;
}

.footer-bottom-links{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.62);
  font-weight: 600;
  font-size: 12.5px;
}

.footer-bottom-links a:hover{ color: white; }

.footer-copy{
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1020px){
  .hamburger{ display: inline-block; }
  .brand{ min-width: 180px; }

  /* Backdrop visible on mobile */
  .nav-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 55;
  }
  .nav-backdrop.show{
    opacity: 1;
    pointer-events: auto;
  }

  /* Nav becomes a drawer panel */
  .nav{
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 56;
  }
  .nav.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link{
    width: 100%;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-dropdown .dropdown-menu{
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0;
    margin: 0;
  }
  .nav-dropdown.open .dropdown-menu{ display: grid; }
  .dropdown-menu a{
    padding: 10px 12px;
    border-radius: 10px;
  }

  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .welcome{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .programs-grid{ grid-template-columns: repeat(2, 1fr); }
  .toppers-grid{ grid-template-columns: 1fr; }
  .cta-inner{ grid-template-columns: 1fr; }

  .payment-card{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .header-inner{ gap: 100px; }
  .header-actions .btn-ghost{ display: none; }
  .hero-inner{ padding: 44px 0; }
  .hero-arrow{ display: none; }
  .section{ padding: 52px 0; }
  .cards-grid{ grid-template-columns: 1fr; }
  .programs-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: repeat(2, 1fr); }
}


/* Anchor offset for fixed header */
section[id], main[id]{ scroll-margin-top: 92px; }

.footer-logo-img{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
}

/* Payment */
.payment-card{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.payment-points{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,0.78);
}
.payment-points li{ margin: 6px 0; }

.payment-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  padding: 6px 0;
}

.blog-grid .card{ min-height: 220px; }

body.nav-open{ overflow: hidden; }

.site-header.scrolled{
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

/* .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-actions{
  margin-left:auto;
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  cursor:pointer;
}

.hamburger span{
  width:24px;
  height:3px;
  background:#111;
  display:block;
} */

@media (max-width: 600px){
  .carousel-track, .carousel-slide{ height: 520px; }
  .hero{ min-height: 520px; }
  .hero-carousel{ min-height: 520px; }
  .hero-dots{ bottom: 18px; }
}

/* @media (max-width: 900px){

  .nav{
    display:none;
  }

  .hamburger{
    display:flex;
  }

} */



.dot-btn{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}
.dot-btn:hover{ background: rgba(255,255,255,0.7); }
.dot-btn.active{
  width: 22px;
  background: rgba(255,255,255,0.95);
}
