/* ════════════════════════════════════════════════════════════════
   VIDYA TOPPER - PREMIUM COMPREHENSIVE STYLESHEET
   ════════════════════════════════════════════════════════════════ */

:root {
  --p: hsl(245, 80%, 62%);
  --p-light: hsl(245, 90%, 95%);
  --p-dark: hsl(255, 80%, 40%);
  --s: hsl(270, 85%, 62%);
  --s-light: hsl(270, 95%, 96%);
  --text: hsl(222, 47%, 11%);
  --sub: hsl(215, 25%, 45%);
  --muted: hsl(214, 32%, 91%);
  --bg: hsl(210, 40%, 98%);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.75);
  --bdr: rgba(226, 232, 240, 0.8);
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.12);
  --glow: rgba(79, 70, 229, 0.1);
  --card-bg: #ffffff;
  --av-bg: #ffffff;
  --accent-glow: linear-gradient(135deg, var(--p), var(--s));
}

body.dark {
  --text: hsl(220, 20%, 92%);
  --sub: hsl(218, 15%, 65%);
  --muted: hsl(244, 20%, 15%);
  --bg: hsl(244, 25%, 6%);
  --white: hsl(244, 24%, 10%);
  --glass: rgba(15, 11, 30, 0.65);
  --bdr: rgba(255, 255, 255, 0.08);
  --shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
  --glow: rgba(124, 58, 237, 0.2);
  --card-bg: hsl(244, 24%, 10%);
  --p-light: hsl(245, 40%, 14%);
  --s-light: hsl(270, 40%, 14%);
  --av-bg: hsl(244, 24%, 12%);
}

/* ════ RESET & LAYOUT BASE ════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(var(--bdr) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body.dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1.5px, transparent 1.5px);
}

/* ════ CUSTOM SCROLLBAR ════ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--p);
}

/* ════ SCROLL PROGRESS BAR ════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--p), var(--s));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ════ GLASS EFFECTS ════ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bdr);
  box-shadow: var(--shadow);
}

/* ════ NAVBAR ════ */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 999;
  padding: 12px 30px;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  top: 10px;
  width: 95%;
  padding: 8px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--p);
}

body.dark nav.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 58, 237, 0.3);
}

.ni {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--p), var(--s));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--sub);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all .3s;
  position: relative;
  display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--p);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p), var(--s));
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Magnetic style wrapper class */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.nav-cta {
  background: linear-gradient(135deg, var(--p), var(--s));
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.nav-cta::after {
  display: none !important;
}

/* ════ THEME TOGGLER ════ */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--bdr);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: var(--p-light);
  border-color: var(--p);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
}

/* ════ MOBILE HAMBURGER MENU ════ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 99px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--card-bg);
  z-index: 998;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.open {
  right: 0;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-links a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

.mobile-menu-links a:hover {
  color: var(--p);
}

/* ════ BACKGROUND DRIFTING EDUCATIONAL BACKDROP ════ */
.educational-icons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.edu-icon-bg {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.08;
  pointer-events: none;
  transition: transform 0.5s ease-out;
  will-change: transform, opacity;
  color: var(--p);
}

body.dark .edu-icon-bg {
  opacity: 0.04;
  color: var(--s);
}

/* ════ HERO ════ */
.hero {
  padding: 180px 5% 100px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top right, var(--p-light), transparent 45%),
    radial-gradient(circle at bottom left, var(--s-light), transparent 45%);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--p-light);
  color: var(--p);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 24px;
  border-radius: 999px;
  margin-bottom: 30px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -2.5px;
}

/* Cinematic Slide reveals stagger */
.hero-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-word-el {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.hero-word-el.active {
  transform: translateY(0);
  opacity: 1;
}

/* Shifting Text Glow */
@keyframes textGlowShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--p), var(--s), #FFE259, var(--p));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlowShine 4s linear infinite;
  text-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
  position: relative;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--sub);
  max-width: 650px;
  margin: 0 auto 40px;
  font-weight: 450;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

/* Animated background elements */
.blob {
  position: absolute;
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--p-light), var(--s-light));
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.65;
  pointer-events: none;
  animation: drift 25s infinite alternate ease-in-out;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(80px, -60px) scale(1.25) rotate(180deg); }
  100% { transform: translate(-40px, 80px) scale(0.9) rotate(360deg); }
}

/* Hero phones */
.hero-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 70px;
  flex-wrap: wrap;
  align-items: flex-end;
  perspective: 1000px;
}

.phone-frame {
  width: 170px;
  height: 350px;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s, border-color 0.4s;
  will-change: transform;
  position: relative;
}

body.dark .phone-frame {
  border-color: var(--white);
}

.phone-screen-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  position: relative;
  background: var(--card-bg);
}

/* Premium Autoscrolling Mockup setup! */
.phone-screen-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 6.5s ease-in-out;
  transform: translateY(0);
}

.phone-frame:hover .phone-screen-container img {
  transform: translateY(calc(-100% + 340px));
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(-20px); }
  50% { transform: translateY(-38px); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

.phone-frame:nth-child(1) {
  animation: float-1 6s ease-in-out infinite;
}

.phone-frame:nth-child(2) {
  transform: translateY(-20px);
  animation: float-2 5.2s ease-in-out infinite;
}

.phone-frame:nth-child(3) {
  animation: float-3 6.8s ease-in-out infinite;
}

.phone-frame:hover {
  box-shadow: 0 25px 60px var(--glow);
  z-index: 10;
  border-color: var(--p) !important;
}

/* ════ REVEAL ANIMATIONS ════ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* ════ SECTION BASE ════ */
section {
  padding: 92px 5%;
}

.wrap {
  max-width: 1140px;
  margin: auto;
}

.slabel {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--p);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stitle {
  text-align: center;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.sdesc {
  text-align: center;
  color: var(--sub);
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ════ STATS SECTION ════ */
.stats-section {
  padding: 50px 5% 70px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--glow);
  border-color: var(--p);
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--p), var(--s));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--sub);
  font-weight: 600;
}

/* ════ ABOUT ════ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--p-light), var(--s-light));
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.av-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--av-bg);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.av-row:hover {
  transform: translateX(6px);
}

.av-row .av-icon {
  font-size: 1.6rem;
}

.av-row .av-t {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text);
}

.av-row .av-s {
  font-size: 0.8rem;
  color: var(--sub);
  font-weight: 500;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.about-text p {
  color: var(--sub);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  background: var(--p-light);
  color: var(--p);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.08);
  transition: all 0.2s;
}

.tag:hover {
  transform: scale(1.05);
  background: var(--p);
  color: #fff;
}

/* ════ FEATURES ════ */
.features {
  background: var(--bg);
}

.fg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.fc {
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 30px 24px;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: 480px;
}

.fc:hover {
  box-shadow: 0 15px 45px var(--glow);
  transform: translateY(-8px);
  border-color: var(--p);
}

.fi {
  font-size: 1.8rem;
  background: var(--p-light);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.fc h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.fc p {
  color: var(--sub);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 15px;
}

.fc-mockup-frame {
  width: 100%;
  height: 220px;
  border: 3px solid var(--bdr);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  margin-top: auto;
  transition: border-color 0.3s;
}

.fc:hover .fc-mockup-frame {
  border-color: var(--p);
}

.fc-mockup-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 6s ease-in-out;
  transform: translateY(0);
}

.fc:hover .fc-mockup-frame img {
  transform: translateY(calc(-100% + 214px));
}

/* ════ HOW IT WORKS ════ */
.how {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--p), var(--s));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.snum {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--p), var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.3);
  color: #ffffff;
  transition: transform 0.3s;
}

.step:hover .snum {
  transform: scale(1.1) rotate(10deg);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  color: var(--sub);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ════ INTERACTIVE APP TOUR ════ */
.interactive-showcase {
  background: var(--white);
  border-bottom: 1px solid var(--bdr);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-tab {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 22px 26px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase-tab:hover {
  transform: translateX(8px);
  border-color: var(--p);
}

.showcase-tab.active {
  border-color: var(--p);
  background: linear-gradient(90deg, var(--p-light), transparent);
  box-shadow: 0 10px 25px var(--glow);
}

.tab-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--p), var(--s));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.showcase-tab.active .tab-indicator {
  transform: scaleY(1);
}

.showcase-tab .tab-icon {
  font-size: 1.6rem;
  padding: 10px;
  background: var(--muted);
  border-radius: 12px;
  transition: background 0.3s;
}

.showcase-tab.active .tab-icon {
  background: var(--p);
  color: #fff;
}

.tab-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.tab-details p {
  font-size: 0.88rem;
  color: var(--sub);
  line-height: 1.5;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase-phone-glow {
  position: absolute;
  width: 300px;
  height: 480px;
  background: linear-gradient(135deg, var(--p), var(--s));
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  border-radius: 40px;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { opacity: 0.12; transform: scale(0.95) rotate(0deg); }
  100% { opacity: 0.22; transform: scale(1.05) rotate(10deg); }
}

.showcase-phone-frame {
  width: 250px;
  height: 520px;
  background: #000;
  border-radius: 36px;
  border: 8px solid #1a1a1a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: border-color 0.3s;
}

.showcase-phone-frame:hover {
  border-color: var(--p);
}

.screen-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background: #1a1a1a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.showcase-screen-content {
  width: 100%;
  height: 100%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.showcase-screen-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 6.5s ease-in-out;
  transform: translateY(0);
  z-index: 1;
}

.showcase-screen-content img.active {
  opacity: 1;
  z-index: 2;
}

.showcase-phone-frame:hover .showcase-screen-content img.active {
  transform: translateY(calc(-100% + 504px));
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-phone-frame {
    width: 210px;
    height: 440px;
  }
}

/* ════ LIVE QUIZ DEMO ════ */
.live-quiz {
  background: var(--bg);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}

.quiz-widget {
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.quiz-header {
  margin-bottom: 20px;
}

.qh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-badge {
  background: var(--p-light);
  color: var(--p);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
}

.quiz-timer {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sub);
}

.quiz-progress-outer {
  height: 6px;
  background: var(--muted);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--s));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-question {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 20px;
  color: var(--text);
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-opt {
  background: var(--white);
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.q-opt:hover {
  border-color: var(--p);
  background: var(--p-light);
  transform: translateX(4px);
}

.q-opt.correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.q-opt.incorrect {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

body.dark .q-opt.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
}

body.dark .q-opt.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #F87171;
}

.quiz-result-view {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.q-res-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.q-res-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.q-res-score {
  font-size: 1.1rem;
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 20px;
}

.q-res-score span {
  color: var(--p);
  font-size: 1.8rem;
  font-weight: 900;
}

.q-mini-leaderboard {
  width: 100%;
  background: var(--muted);
  border-radius: 12px;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark .q-mini-leaderboard {
  background: rgba(255, 255, 255, 0.03);
}

.q-ml-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sub);
  padding: 6px 10px;
  border-radius: 8px;
}

.q-ml-row.current-user {
  background: var(--p-light);
  color: var(--p);
  border: 1px dashed var(--p);
}

/* ════ TESTIMONIALS SLIDER ════ */
.testimonials {
  background: var(--white);
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 600%;
}

.testimonial-slide {
  width: 16.666%;
  flex-shrink: 0;
  padding: 10px 15px;
  box-sizing: border-box;
  opacity: 0.4;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.t-card {
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}

.t-stars {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.t-text {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--p);
  background: var(--p-light);
}

.t-meta {
  display: flex;
  flex-direction: column;
}

.t-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.t-class {
  font-size: 0.82rem;
  color: var(--sub);
  font-weight: 600;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--bdr);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--p-light);
  border-color: var(--p);
  color: var(--p);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--p);
  width: 24px;
  border-radius: 99px;
}

/* ════ SCREENSHOTS ════ */
.screens {
  background: linear-gradient(160deg, var(--p-light) 0%, var(--s-light) 100%);
}

.sg {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.sc {
  width: 175px;
  height: 360px;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border: 4.5px solid rgba(255, 255, 255, 0.9);
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sc-screen-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.sc-screen-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 6s ease-in-out;
}

.sc:hover .sc-screen-container img {
  transform: translateY(calc(-100% + 351px));
}

.sc:hover {
  transform: translateY(-8px) scale(1.04) rotate(2deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  border-color: var(--p);
}

.sc:nth-child(3) {
  transform: translateY(-22px);
}

.sc:nth-child(3):hover {
  transform: translateY(-30px) scale(1.04) rotate(-2deg);
  border-color: var(--p);
}

.sc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sc-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--p);
  text-align: center;
}

/* ════ FAQs ACCORDION ════ */
.faq {
  background: var(--bg);
}

.faq-accordion-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 24px 30px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
}

.faq-icon {
  font-size: 0.95rem;
  color: var(--sub);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(45deg);
  display: inline-block;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 30px;
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 1.7;
  transition: padding 0.3s ease;
}

.faq-item.active {
  border-color: var(--p);
  box-shadow: var(--shadow);
}

.faq-item.active .faq-icon {
  transform: rotate(0deg);
  color: var(--p);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer-inner {
  padding-bottom: 24px;
}

/* ════ CONTACT ════ */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--bdr);
}

.contact-inner {
  max-width: 620px;
  margin: auto;
  text-align: center;
  background: var(--card-bg);
  border: 1.5px solid var(--bdr);
  border-radius: 24px;
  padding: 52px 40px;
  box-shadow: var(--shadow);
}

.contact-inner h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
}

.contact-inner p {
  color: var(--sub);
  margin-bottom: 32px;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--p-light);
  color: var(--p);
  border: 1.5px solid var(--bdr);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all .2s;
}

.chip:hover {
  background: var(--white);
  transform: translateY(-2px);
  border-color: var(--p);
  box-shadow: var(--shadow);
}

/* ════ STICKY RADIAL DOWNLOAD BADGE ════ */
.sticky-download-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--p), var(--s));
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-download-badge.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sticky-download-badge:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.cta-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--p), var(--s));
  border-radius: 999px;
  z-index: -1;
  animation: ripple 2s infinite ease-out;
  opacity: 0.5;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.25, 1.45); opacity: 0; }
}

/* ════ PROMO BANNER ════ */
.promo-banner-section {
  background: var(--bg);
}

.promo-card {
  background: linear-gradient(135deg, hsl(244, 25%, 8%), hsl(255, 30%, 15%));
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 60px 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.promo-content {
  position: relative;
  z-index: 2;
}

.play-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.play-badge-link:hover {
  transform: scale(1.05);
}

.promo-qr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.qr-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--p);
  filter: blur(40px);
  opacity: 0.3;
  z-index: 0;
  border-radius: 50%;
}

.qr-box {
  width: 130px;
  height: 130px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-app-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
}

.qr-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  z-index: 1;
}

.qr-text strong {
  color: #fff;
  font-size: 0.92rem;
}

/* ════ IMAGE LIGHTBOX MODAL ════ */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}

.lightbox-modal.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1102;
}

.lightbox-close:hover {
  background: #EF4444;
  border-color: #EF4444;
  transform: rotate(90deg) scale(1.05);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 24px;
  border-radius: 99px;
}

.zoomable-img {
  cursor: zoom-in !important;
}

/* Neon Outline glow-trail card borders */
.fc, .stat-card, .t-card, .faq-item {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc::after, .stat-card::after, .t-card::after, .faq-item::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--p), var(--s));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fc:hover::after, .stat-card:hover::after, .t-card:hover::after, .faq-item:hover::after {
  opacity: 1;
}

/* ════ FOOTER ════ */
footer {
  background: hsl(244, 20%, 8%);
  color: hsl(220, 15%, 70%);
  padding: 80px 5% 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .fl {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
  max-width: 300px;
}

.footer-links-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 24px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-col a {
  color: hsl(220, 15%, 70%);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s;
}

.footer-links-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
  }

  nav {
    width: 95%;
    top: 10px;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-card {
    padding: 24px 16px;
  }

  .fc {
    height: auto;
  }

  .fc-mockup-frame {
    height: 180px;
  }

  .sc {
    width: 145px;
    height: 300px;
  }

  .sc:hover .sc-screen-container img {
    transform: translateY(calc(-100% + 291px));
  }

  .promo-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    text-align: center;
  }

  .promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .badge-row {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ════ ADDED CINEMATIC ENHANCEMENTS ════ */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
  opacity: 0;
}
body.dark .mouse-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
}

.logo img {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover img {
  transform: rotate(360deg) scale(1.15);
  box-shadow: 0 0 15px var(--glow);
}
