/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0f0ff;
  --text2: #a0a0c0;
  --text3: #6060a0;
  --primary: #6366f1;
  --primary2: #8b5cf6;
  --accent: #ec4899;
  --green: #10b981;
  --yellow: #f59e0b;
  --radius: 16px;
  --radius2: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --shadow2: 0 4px 24px rgba(99,102,241,0.25);
  --nav-offset: 88px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--nav-offset);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   LOADER
   ============================================= */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(99,102,241,0.6));
  animation: logoGlow 2s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { filter: drop-shadow(0 0 10px rgba(99,102,241,0.4)); }
  to   { filter: drop-shadow(0 0 28px rgba(139,92,246,0.8)); }
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 99px;
  animation: loadFill 1.8s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.custom-cursor {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: background 0.2s;
  mix-blend-mode: difference;
}
.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(99,102,241,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9997;
  will-change: transform, width, height;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease;
}

@media (min-width: 769px) {
  body, a, button { cursor: none; }
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.6));
  transform: scale(1.04);
}
.footer-brand .nav-logo-img {
  height: 44px;
  margin-bottom: 4px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 99px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-nav {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-nav .arrow { display: inline-block; transition: transform 0.3s; }
.btn-nav:hover .arrow { transform: translateX(4px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 99px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  gap: 4px;
}
.mobile-menu a { padding: 12px 0; color: var(--text2); font-size: 1rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.btn-mobile {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 99px;
  font-weight: 600;
  text-align: center;
  border-bottom: none !important;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 100px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  top: -200px; right: -100px;
  animation: blobMove1 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.2), transparent 70%);
  bottom: -100px; left: -100px;
  animation: blobMove2 10s ease-in-out infinite;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: blobMove3 12s ease-in-out infinite;
}
@keyframes blobMove1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,20px) scale(1.1)} }
@keyframes blobMove2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-30px) scale(1.05)} }
@keyframes blobMove3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.2)} }

#hero > .container, #hero > .hero-content, #hero > .hero-visual { position: relative; z-index: 1; }

#hero {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: visible;
}

/* Override for hero children */
#hero::before { display: none; }

.hero-content { position: relative; z-index: 2; }
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 0;
  overflow: visible;
  width: 100%;
  justify-self: stretch;
}
.hero-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{box-shadow: 0 0 0 0 rgba(16,185,129,0.4)}
  50%{box-shadow: 0 0 0 6px rgba(16,185,129,0)}
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-typed-line {
  display: inline-grid;
  vertical-align: top;
  margin-top: 0.08em;
  max-width: 100%;
}
.hero-typed-measure,
.hero-typed-visible {
  grid-area: 1 / 1;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.hero-typed-measure {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero-typed-visible {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}
.hero-typed-visible .typed-text {
  white-space: nowrap;
}
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(99,102,241,0.6); }
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-15deg);
  animation: shine 3s infinite;
}
@keyframes shine { 0%{left:-100%} 100%{left:200%} }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-secondary svg { width: 18px; height: 18px; }
.btn-secondary:hover { background: var(--surface); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { text-align: center; }
.stat-num { font-family: 'Space Grotesk',sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text3); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO CARDS */
.hero-visual-stage {
  position: relative;
  width: 560px;
  max-width: 100%;
  margin: 0 auto;
  padding: 44px 0 52px;
  overflow: visible;
}

.hero-card-stack {
  position: relative;
  overflow: visible;
  width: 100%;
}

.hero-visual-glow {
  position: absolute;
  inset: 14% 10% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 68%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  transition: background 0.5s ease;
}
.hero-visual-glow[data-course="inf03"] {
  background: radial-gradient(circle, rgba(139,92,246,0.38), transparent 68%);
}

.hero-card-main {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(165deg, rgba(22,22,38,0.98), rgba(13,13,22,0.98));
  border: 1px solid var(--border2);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: floatMain 6s ease-in-out infinite;
}
.hero-exam-card {
  position: relative;
  z-index: 1;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}
.hero-exam-card.is-course-switching {
  animation: none !important;
  transform: scale(0.985);
}
.hero-exam-card.is-course-switching::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255,0.07) 48%,
    transparent 100%
  );
  animation: heroScanFlash 0.52s ease forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes heroScanFlash {
  from { transform: translateY(-110%); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(110%); opacity: 0; }
}
.hero-visual-glow.is-switching {
  animation: heroGlowPulse 0.65s ease;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 1; filter: blur(36px); }
  50% { opacity: 1.35; filter: blur(44px); }
}
.hero-code-typed.is-typing {
  text-shadow: 0 0 14px currentColor;
  transition: text-shadow 0.15s ease;
}
.hero-exam-card[data-course="inf02"] {
  border-color: rgba(99,102,241,0.45);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 48px rgba(99,102,241,0.12);
}
.hero-exam-card[data-course="inf03"] {
  border-color: rgba(139,92,246,0.48);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 48px rgba(139,92,246,0.14);
}
.hero-exam-card[data-course="inf02"] .card-header {
  background: linear-gradient(90deg, rgba(99,102,241,0.16), rgba(99,102,241,0.04));
}
.hero-exam-card[data-course="inf03"] .card-header {
  background: linear-gradient(90deg, rgba(139,92,246,0.18), rgba(236,72,153,0.06));
}
.hero-exam-card[data-course="inf03"] .hero-course-pill {
  background: rgba(139,92,246,0.22);
  border-color: rgba(139,92,246,0.45);
  color: #c4b5fd;
}
.hero-exam-card[data-course="inf03"] .hero-progress-fill {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

@keyframes floatMain { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.card-header {
  background: rgba(99,102,241,0.1);
  border-bottom: 1px solid var(--border);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-dots { display: flex; gap: 7px; flex-shrink: 0; }
.card-dots span { width: 14px; height: 14px; border-radius: 50%; }
.card-title-bar {
  font-size: 0.95rem;
  color: var(--text2);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-code-typed {
  color: #a5b4fc;
  font-weight: 700;
  display: inline-block;
  min-width: 6ch;
}
.hero-exam-card[data-course="inf03"] .hero-code-typed {
  color: #c4b5fd;
}
.hero-course-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
}
.card-body {
  padding: 28px 26px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 210px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.card-body.is-fading {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
}
.card-body.is-revealing {
  animation: heroCodeReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroCodeReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.code-line { padding: 2px 0; }
.code-line.pl { padding-left: 16px; }
.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-num { color: #f78c6c; }
.code-fn { color: #82aaff; }
.code-method { color: #89ddff; }
.code-comment { color: #546e7a; }
.card-footer {
  padding: 16px 26px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text2);
}
.progress-bar-wrap {
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 99px;
  transition: width 2s ease 1s;
}
.hero-progress-fill {
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-float {
  position: absolute;
  z-index: 2;
  background: rgba(15,15,26,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  width: 178px;
  transition: border-color 0.4s ease, opacity 0.25s ease;
}
.hero-card-float.is-updating {
  opacity: 0;
  transform: scale(0.9) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-card-float.is-revealing {
  animation: floatPop 0.52s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
@keyframes floatPop {
  from { opacity: 0; transform: scale(0.88) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-course-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.card-float-1 {
  top: -20px;
  right: -70px;
  animation: floatCardA 5s ease-in-out infinite;
}
.card-float-2 {
  top: -70px;
  left: -55px;
  animation: floatCardB 5.5s ease-in-out infinite 1.2s;
}
.card-float-3 {
  bottom: -26px;
  right: -40px;
  animation: floatCardA 5s ease-in-out infinite 0.7s;
}

.hero-visual-stage[data-course="inf03"] .hero-card-float {
  border-color: rgba(139,92,246,0.28);
}

@keyframes floatCardA {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes floatCardB {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.float-icon {
  font-size: 1.55rem;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.float-sub { font-size: 0.8rem; color: var(--text2); line-height: 1.35; margin-top: 2px; }

.hero-course-dots {
  position: relative;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 3;
}
.hero-course-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}
.hero-visual-stage[data-course="inf03"] .hero-course-dot.is-active {
  background: #a78bfa;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  z-index: 900;
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}
.scroll-indicator.is-reveal-pop {
  animation: scrollIndicatorPop 0.4s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
.scroll-indicator:hover {
  color: var(--text2);
}
.scroll-indicator:hover .scroll-arrow {
  border-color: var(--text2);
}
.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  visibility: hidden;
}
@keyframes scrollIndicatorPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* ANIMATIONS */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

[data-aos] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* =============================================
   TRUST BAR
   ============================================= */
#trust {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label { color: var(--text3); font-size: 0.85rem; white-space: nowrap; }
.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Space Grotesk',sans-serif;
  transition: all 0.3s;
  cursor: default;
}
.trust-badge:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
  transform: translateY(-2px);
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
section[id]:not(#hero) {
  scroll-margin-top: var(--nav-offset);
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Space Grotesk',sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   WHY SECTION
   ============================================= */
.why-section {
  padding: 120px 0;
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color, #6366f1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.why-card:hover { border-color: var(--border2); transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card:hover::before { opacity: 1; }
.why-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(from var(--color,#6366f1) r g b / 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.why-icon-wrap svg { width: 26px; height: 26px; stroke: var(--color, #6366f1); }
.why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.why-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   COURSES
   ============================================= */
.courses-section {
  padding: 120px 0;
  background: var(--bg2);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { border-color: var(--border2); transform: translateY(-8px); box-shadow: var(--shadow); }
.course-card.featured {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg3));
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.course-card.bundle {
  border-color: rgba(236,72,153,0.4);
  background: linear-gradient(135deg, rgba(236,72,153,0.08), var(--bg3));
  box-shadow: 0 0 40px rgba(236,72,153,0.15);
}
.course-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bundle-badge { background: linear-gradient(135deg, #ec4899, #f43f5e) !important; }
.course-icon { font-size: 2.5rem; margin: 8px 0 16px; }
.course-card h3 { font-family:'Space Grotesk',sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.course-full { color: var(--text3); font-size: 0.8rem; line-height: 1.5; margin-bottom: 20px; flex: 1; }
.course-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.course-features li { font-size: 0.88rem; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.cf-check { color: var(--green); font-weight: 700; }
.course-price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-old { color: var(--text3); text-decoration: line-through; font-size: 0.9rem; }
.price-new { font-family:'Space Grotesk',sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.btn-course {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-course:hover { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; transform: translateY(-2px); }
.btn-bundle:hover { background: linear-gradient(135deg, #ec4899, #f43f5e) !important; }
.btn-course span { transition: transform 0.3s; }
.btn-course:hover span { transform: translateX(4px); }

/* =============================================
   DEMO SECTION
   ============================================= */
.demo-section { padding: 120px 0; background: var(--bg); }
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.demo-text .section-tag { margin-bottom: 16px; display: inline-block; }
.demo-text h2 { margin-bottom: 20px; }
.demo-text p { color: var(--text2); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
.demo-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.demo-list li { color: var(--text2); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }

.demo-video { position: relative; border-radius: var(--radius2); overflow: hidden; box-shadow: var(--shadow); }
.video-thumbnail { position: relative; background: var(--bg3); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; z-index: 2;
}
.play-btn {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
  transition: all 0.3s;
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 16px 48px rgba(99,102,241,0.6); }
.play-btn svg { width: 28px; height: 28px; fill: white; transform: translateX(2px); }
.video-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; background: rgba(0,0,0,0.5); padding: 6px 14px; border-radius: 99px; }
.video-placeholder {
  width: 100%; height: 100%;
  padding: 20px;
  font-family: 'Fira Code','Courier New',monospace;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.video-code-preview { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 400px; }
.vcp-line { padding: 2px 0; }
.vcp-line.pl { padding-left: 20px; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section { padding: 100px 0; position: relative; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; z-index: 0; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center; }
.big-stat { }
.big-num { font-family:'Space Grotesk',sans-serif; font-size: clamp(3rem,5vw,4.5rem); font-weight: 800; background: linear-gradient(135deg,#6366f1,#ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.big-plus { font-family:'Space Grotesk',sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.big-stat p { color: var(--text2); font-size: 0.95rem; margin-top: 8px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section { padding: 120px 0; background: var(--bg2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 28px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 8rem;
  color: rgba(99,102,241,0.06);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { border-color: var(--border2); transform: translateY(-6px); box-shadow: var(--shadow); }
.test-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { color: var(--text2); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0; }
.test-name { font-weight: 600; font-size: 0.9rem; }
.test-role { color: var(--text3); font-size: 0.8rem; }

/* =============================================
   FAQ
   ============================================= */
.faq-section { padding: 120px 0; background: var(--bg); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item.open { border-color: rgba(99,102,241,0.35); box-shadow: 0 8px 32px rgba(99,102,241,0.08); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.3s;
}
.faq-q:hover { color: #a5b4fc; }
.faq-icon {
  width: 28px; height: 28px;
  background: var(--surface2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--primary);
  line-height: 1;
  padding-bottom: 2px;
}
.faq-item.open .faq-icon { background: rgba(99,102,241,0.2); transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 24px 22px; color: var(--text2); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
[data-aos] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.faq-item[data-aos] {
  transform: translate3d(0, 18px, 0);
}

/* =============================================
   CTA
   ============================================= */
.cta-section { padding: 120px 0; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-block;
  background: rgba(236,72,153,0.15);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f9a8d4;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.cta-inner h2 { font-family:'Space Grotesk',sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.cta-inner p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px; }
.cta-actions { margin-bottom: 32px; }
.btn-large { padding: 18px 40px !important; font-size: 1.1rem !important; }
.cta-note { margin-top: 14px; color: var(--text3); font-size: 0.85rem; }
.cta-avatars { display: flex; align-items: center; justify-content: center; gap: 16px; }
.avatar-stack { display: flex; }
.av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: white;
  border: 2px solid var(--bg);
  margin-left: -10px;
  flex-shrink: 0;
}
.av:first-child { margin-left: 0; }
.cta-avatars span { color: var(--text2); font-size: 0.9rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 80px; margin-bottom: 60px; }
.footer-brand .nav-logo { font-size: 1.4rem; display: block; margin-bottom: 16px; }
.footer-brand p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: all 0.25s ease;
}
.social-link svg { width: 18px; height: 18px; display: block; }
.social-link:hover { transform: translateY(-2px); }
.social-link.social-yt:hover { color: #ff4444; background: rgba(255,68,68,0.12); border-color: rgba(255,68,68,0.35); }
.social-link.social-fb:hover { color: #4285f4; background: rgba(66,133,244,0.12); border-color: rgba(66,133,244,0.35); }
.social-link.social-tt:hover { color: #25f4ee; background: rgba(37,244,238,0.1); border-color: rgba(37,244,238,0.3); }
.social-link.social-ig:hover { color: #e1306c; background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.35); }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text2); font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text3); font-size: 0.85rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-typed-line { text-align: left; }
  .hero-visual {
    display: block;
    max-width: 100%;
    margin: 36px auto 0;
    padding: 0 12px;
  }
  .hero-visual-stage {
    width: 100%;
    max-width: 520px;
    padding: 32px 0 44px;
  }
  .card-float-1 { top: -28px; right: -8px; width: 158px; }
  .card-float-2 { top: -28px; left: -8px; width: 158px; }
  .card-float-3 { bottom: -18px; right: -8px; width: 158px; }
  .card-body { font-size: 0.88rem; min-height: 180px; padding: 22px 20px; }
  .scroll-indicator { bottom: 20px; }
  .demo-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-menu.open { display: flex; }
  .courses-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .trust-container { flex-direction: column; align-items: center; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; letter-spacing: -1.5px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* PARTICLES */
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(99,102,241,0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-owned {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #6ee7b7 !important;
  box-shadow: none !important;
  text-align: center;
  line-height: 1.35;
}
.btn-owned:hover { filter: brightness(1.08); transform: none !important; }
.btn-course.btn-owned { font-size: 0.88rem; padding: 14px 12px; }
