/* ==========================================================================
   SAIM TRADES ACADEMY — BRAND SYSTEM (v2 — Purple/Violet, Glassmorphism)
   Domain: academy.saimfareed.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #0D0D14;
  --bg-violet-deep: #1A0F3D;
  --bg-purple-accent: #4C3A8C;
  --bg-card: rgba(13, 13, 20, 0.55);
  --bg-card-hover: rgba(22, 18, 38, 0.65);
  
  /* Brand Accents */
  --mint: #3ECF8E;
  --mint-hover: #34B97C;
  --mint-glow: rgba(62, 207, 142, 0.25);
  --purple-glow: rgba(139, 92, 246, 0.25);
  --violet-glow: rgba(76, 58, 140, 0.4);
  --gold: #F5B301;
  --gold-glow: rgba(245, 179, 1, 0.2);
  --red: #EF4444;

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #B8AFD9;
  --text-muted: #7E76A3;

  /* Borders & Dividers */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-mint: rgba(62, 207, 142, 0.4);

  /* Typography */
  --font-headline: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(62, 207, 142, 0.35);
  --shadow-purple: 0 0 35px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Moody Ambient Radial Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--bg-violet-deep) 0%, rgba(26, 15, 61, 0) 70%);
}

.bg-glow-2 {
  top: 30%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--bg-purple-accent) 0%, rgba(76, 58, 140, 0) 70%);
  opacity: 0.35;
}

.bg-glow-3 {
  bottom: 5%;
  left: 20%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #2E1065 0%, rgba(46, 16, 101, 0) 70%);
  opacity: 0.4;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* Reusable Glassmorphism Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn.pill {
  border-radius: var(--radius-pill);
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--bg-dark);
}

.btn-white:hover {
  background-color: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-mint {
  background-color: var(--mint);
  color: var(--bg-dark);
}

.btn-mint:hover {
  background-color: var(--mint-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outlined {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outlined:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.full-width {
  width: 100%;
}

/* Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 20px;
}

.badge-dot, .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header */
.section {
  padding: 100px 0;
  position: relative;
}

.section.alt-bg {
  background: linear-gradient(180deg, rgba(11, 7, 22, 0.6) 0%, rgba(26, 15, 61, 0.3) 100%);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. SECTION 1: STICKY NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11, 7, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-transform: uppercase;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--mint);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. SECTION 2: HERO SECTION & FLOATING GLASS CARDS
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Hero Visual & Interactive 2D Candlestick Chart */
.hero-visual {
  position: relative;
}

.chart-wrapper {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.market-pair {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;

}

.market-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(62, 207, 142, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
}

.chart-price-info {
  text-align: right;
}

.price-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.price-change.positive {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 600;
}

.chart-canvas {
  width: 100%;
  height: 240px;
}

.candlestick-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Growing Candlestick Bar Animations */
.bar {
  transform-origin: bottom;
  animation: growBar 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.2s; }
.bar-3 { animation-delay: 0.3s; }
.bar-4 { animation-delay: 0.4s; }
.bar-5 { animation-delay: 0.5s; }
.bar-6 { animation-delay: 0.6s; }
.bar-7 { animation-delay: 0.7s; }
.bar-8 { animation-delay: 0.8s; }

@keyframes growBar {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

.ema-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawEma 2s ease-in-out 0.4s forwards;
}

@keyframes drawEma {
  to { stroke-dashoffset: 0; }
}

.price-pulse-circle {
  animation: pulseDot 1.5s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% { r: 4; fill-opacity: 0.7; }
  100% { r: 8; fill-opacity: 1; }
}

.chart-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.strategy-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mint);
  background: rgba(62, 207, 142, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px stroke rgba(62, 207, 142, 0.2);
}

/* Floating Glass Stat Cards (Crypto Dashboard Style) */
.float-card {
  position: absolute;
  padding: 14px 18px;
  z-index: 3;
  width: 170px;
  opacity: 0;
  animation: floatFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-card-1 {
  top: -20px;
  left: -35px;
  animation: floatFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards, floatAnim1 5s ease-in-out 1.1s infinite;
}

.float-card-2 {
  bottom: 20px;
  left: -40px;
  animation: floatFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards, floatAnim2 6s ease-in-out 1.3s infinite;
}

.float-card-3 {
  top: 10px;
  right: -30px;
  animation: floatFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards, floatAnim1 5.5s ease-in-out 1.5s infinite;
}

.float-card-4 {
  bottom: -25px;
  right: -25px;
  animation: floatFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards, floatAnim2 6.5s ease-in-out 1.7s infinite;
}

@keyframes floatFadeIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatAnim1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatAnim2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.float-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.symbol-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.crypto-btc { background: #F7931A; color: #FFF; }
.crypto-eth { background: #627EEA; color: #FFF; }
.forex-eur { background: #003399; color: #FFF; }
.stock-nvda { background: #76B900; color: #FFF; }

.symbol-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.symbol-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.float-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.float-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.float-badge.positive {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mint);
  font-weight: 700;
  background: rgba(62, 207, 142, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Bottom Scrolling Ticker Strip */
.hero-ticker-wrap {
  margin-top: 60px;
  width: 100%;
  overflow: hidden;
  background: rgba(18, 14, 34, 0.7);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: scrollTicker 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.ticker-sym {
  color: var(--text-primary);
  font-weight: 700;
}

.ticker-val {
  color: var(--text-secondary);
}

.ticker-chg.pos {
  color: var(--mint);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. SECTION 3: STATS BAR (ANIMATED COUNTERS)
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 40px 0;
  position: relative;
}

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

.stat-card {
  padding: 30px 24px;
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.stat-number-wrap {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number-wrap .plus, .stat-number-wrap .percent {
  color: var(--mint);
}

.stat-label {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. SECTION 4: WHAT WE TEACH (COURSES GRID)
   -------------------------------------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.15);
}

.course-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.course-card:hover .course-icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.course-icon-wrap.crypto { background: rgba(247, 147, 26, 0.15); }
.course-icon-wrap.forex { background: rgba(62, 207, 142, 0.15); }
.course-icon-wrap.stocks { background: rgba(139, 92, 246, 0.15); }

.course-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.course-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.course-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-list {
  margin-bottom: 30px;
}

.course-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--mint);
  margin-top: auto;
}

.course-link:hover {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. SECTION 5: WHY SAIM TRADES (FEATURES GRID)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-mint);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(62, 207, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.925rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. SECTION 6: COURSE ROADMAP / HOW IT WORKS
   -------------------------------------------------------------------------- */
.roadmap-wrapper {
  position: relative;
  margin-top: 40px;
}

.roadmap-svg-line {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.step-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-num-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--mint);
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px var(--mint-glow);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   9. SECTION 7: TESTIMONIALS CAROUSEL
   -------------------------------------------------------------------------- */
.carousel-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 10px 0 20px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  box-sizing: border-box;
  opacity: 0.5;
  transform: scale(0.96);
  transition: all 0.4s ease;
}

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

.testi-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.student-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--mint);
}

.student-name {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.student-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.verified-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mint);
  background: rgba(62, 207, 142, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

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

.testi-result-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(62, 207, 142, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px stroke rgba(62, 207, 142, 0.25);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 14, 34, 0.8);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: var(--mint);
  color: var(--bg-dark);
  border-color: var(--mint);
}

.prev-btn { left: -60px; }
.next-btn { right: -60px; }

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--mint);
}

/* --------------------------------------------------------------------------
   10. SECTION 8: PRICING / PLANS
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured-tier {
  border-color: var(--mint);
  box-shadow: var(--shadow-glow), 0 10px 40px rgba(0, 0, 0, 0.5);
  background: rgba(26, 20, 48, 0.7);
  transform: scale(1.03);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--mint) 0%, #059669 100%);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.1em;
}

.pricing-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pricing-tier-badge.mint { color: var(--mint); }
.pricing-tier-badge.gold { color: var(--gold); }

.pricing-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.875rem;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
}

.pricing-price .currency {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mint);
}

.pricing-price .amount {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.pricing-features {
  margin-bottom: 36px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   11. SECTION 9: FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--mint);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 28px;
  text-align: left;
}

.faq-item.active .faq-answer {
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. SECTION 10: FINAL CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 60px 0 100px 0;
}

.cta-banner-card {
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
  border-color: var(--border-mint);
  box-shadow: var(--shadow-purple);
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--bg-purple-accent) 0%, rgba(76, 58, 140, 0) 70%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px auto;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto 24px auto;
}

.input-group {
  display: flex;
  background: rgba(11, 7, 22, 0.7);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-pill);
  padding: 6px;
  gap: 8px;
}

.form-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  color: var(--mint);
}

.form-message.error {
  color: var(--red);
}

.cta-foot-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. SECTION 11: FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #07040E;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
}

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

.brand-col .logo {
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 360px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--mint);
  color: var(--bg-dark);
}

.footer-col-title {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.domain-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mint);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.copyright-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS (MOBILE-FIRST FLEXIBILITY)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group, .hero-trust {
    justify-content: center;
  }

  .stats-grid, .courses-grid, .features-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-svg-line {
    display: none;
  }

  .pricing-card.featured-tier {
    transform: none;
  }

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

  .float-card-1 { left: 0; }
  .float-card-2 { left: 0; }
  .float-card-3 { right: 0; }
  .float-card-4 { right: 0; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(11, 7, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-menu.active {
    clip-path: circle(140% at 100% 0);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .stats-grid, .courses-grid, .features-grid, .pricing-grid, .roadmap-steps {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .testimonial-card {
    padding: 24px;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }

  .form-input {
    background: rgba(11, 7, 22, 0.8);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-pill);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copyright-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .float-card {
    display: none; /* Hide floating cards on small mobile screens to prevent clutter */
  }
}

/* --------------------------------------------------------------------------
   15. PREFERS-REDUCED-MOTION SUPPORT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-track {
    animation: none;
  }

  .float-card {
    animation: none;
  }
}
