/* ==========================================================================
   PREPLIBRARY REDESIGN - DUAL THEME DESIGN SYSTEM (LIGHT & DARK)
   Defaults to: Light Theme (Crisp, High-Conversion, Elegant SaaS Aesthetic)
   Supports: Dark Theme (Deep Midnight, Neon/Indigo Accents, Glassmorphic)
   ========================================================================== */

/* Light Theme Variables (Default) */
:root, [data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-highlight: rgba(79, 70, 229, 0.35);
  --border-focus: #4f46e5;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Accents */
  --primary-blue: #4f46e5;
  --primary-indigo: #4338ca;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  --grad-text: linear-gradient(135deg, #4338ca 0%, #0284c7 50%, #059669 100%);
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);

  /* UI Theming */
  --header-bg: rgba(255, 255, 255, 0.92);
  --banner-bg: linear-gradient(90deg, #eef2ff 0%, #e0f2fe 50%, #eef2ff 100%);
  --banner-text: #1e1b4b;
  --banner-btn-bg: #4f46e5;
  --banner-btn-text: #ffffff;
  
  --box-inner-bg: #f8fafc;
  --mockup-bar-bg: #f1f5f9;
  --ring-bg: #e2e8f0;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --footer-bg: #0f172a;

  --comp-solitary-bg: #fff5f5;
  --comp-solitary-border: #fecaca;
  --comp-prep-bg: #eef2ff;
  --comp-prep-border: #c7d2fe;
  --comp-prep-glow: 0 8px 30px rgba(79, 70, 229, 0.08);

  --featured-plan-bg: #ffffff;
  --featured-plan-glow: 0 10px 40px rgba(79, 70, 229, 0.12);
}

/* Dark Theme Variables (Override) */
[data-theme="dark"] {
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-tertiary: #131926;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(26, 34, 54, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07090e;

  /* Accents */
  --primary-blue: #4f46e5;
  --primary-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #4ade80 100%);
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(7, 9, 14, 0) 70%);

  /* UI Theming */
  --header-bg: rgba(7, 9, 14, 0.82);
  --banner-bg: linear-gradient(90deg, #1e1b4b 0%, #0c4a6e 50%, #1e1b4b 100%);
  --banner-text: #ffffff;
  --banner-btn-bg: #ffffff;
  --banner-btn-text: #0f172a;
  
  --box-inner-bg: rgba(7, 9, 14, 0.75);
  --mockup-bar-bg: rgba(13, 17, 26, 0.95);
  --ring-bg: #1f2937;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --footer-bg: #040609;

  --comp-solitary-bg: rgba(239, 68, 68, 0.05);
  --comp-solitary-border: rgba(239, 68, 68, 0.25);
  --comp-prep-bg: rgba(99, 102, 241, 0.08);
  --comp-prep-border: rgba(99, 102, 241, 0.45);
  --comp-prep-glow: 0 0 35px rgba(99, 102, 241, 0.15);

  --featured-plan-bg: rgba(30, 41, 69, 0.85);
  --featured-plan-glow: 0 0 45px rgba(99, 102, 241, 0.28);
}

:root {
  /* Common System Properties */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-main);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --container-max: 1240px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.w-full {
  width: 100%;
}

/* ==========================================================================
   BUTTONS & DESIGN PRIMITIVES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.btn-glass:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* Glass Card Standard */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

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

/* Gradient Text */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse Indicator */
.pulse-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* ==========================================================================
   TOP ANNOUNCEMENT BANNER
   ========================================================================== */

.top-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  z-index: 100;
  position: relative;
  transition: background var(--transition-normal);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex: 1;
  text-align: center;
}

.banner-badge {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-blue);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .banner-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fcd34d;
}

.banner-cta {
  background: var(--banner-btn-bg);
  color: var(--banner-btn-text);
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.banner-cta:hover {
  transform: scale(1.04);
}

.banner-close {
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.5rem;
}

.banner-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.brand-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-dot {
  color: var(--accent-cyan);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.sun-icon { display: inline-block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: inline-block; }

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.82rem;
}

.live-count {
  font-weight: 700;
  color: var(--accent-emerald);
}

.live-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: 999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  visibility: hidden;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close:hover {
  background: var(--border-subtle);
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.mobile-link:hover {
  color: var(--primary-blue);
  padding-left: 0.4rem;
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-background-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: var(--hero-glow-1, radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%));
  top: -150px;
  left: 10%;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--hero-glow-2, radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%));
  top: 100px;
  right: 5%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.8;
}

[data-theme="dark"] .grid-overlay {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.8px;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--accent-cyan);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.85rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }
.av-1 { background: #4f46e5; }
.av-2 { background: #0284c7; }
.av-3 { background: #059669; }
.av-4 { background: #d97706; }
.av-plus { background: #64748b; font-size: 0.7rem; }

.rating-stars {
  color: var(--accent-amber);
  font-size: 0.95rem;
  font-weight: 700;
}

.rating-num {
  color: var(--text-primary);
  margin-left: 0.3rem;
}

.proof-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Hero Showcase Mockup */
.hero-visual {
  position: relative;
}

.mockup-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 30px rgba(79, 70, 229, 0.12);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

[data-theme="dark"] .mockup-frame {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
}

.mockup-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header-bar {
  background: var(--mockup-bar-bg);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.mockup-media {
  position: relative;
  overflow: hidden;
}

.hero-screen-img {
  width: 100%;
  display: block;
}

/* Floating Badges */
.float-badge {
  position: absolute;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: float-levitate 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 18px;
  right: 18px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bottom-left {
  bottom: 18px;
  left: 18px;
  animation-delay: -2s;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.badge-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes float-levitate {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   COHORT TICKER SECTION
   ========================================================================== */

.cohort-ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-label {
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-blue);
  white-space: nowrap;
  letter-spacing: 0.8px;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 5;
  box-shadow: 6px 0 16px var(--bg-secondary);
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  animation: ticker-slide 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ticker-icon {
  font-size: 1.1rem;
}

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

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.8rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   PROBLEM VS SOLUTION COMPARISON
   ========================================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.solitary-card {
  background: var(--comp-solitary-bg);
  border: 1px solid var(--comp-solitary-border);
}

.preplibrary-card {
  background: var(--comp-prep-bg);
  border: 1px solid var(--comp-prep-border);
  box-shadow: var(--comp-prep-glow);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--grad-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.card-status-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.red-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.green-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.comparison-card-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-list li {
  display: flex;
  gap: 1rem;
}

.icon-cross {
  color: #ef4444;
  font-weight: 900;
  font-size: 1.1rem;
}

.icon-check {
  color: var(--accent-emerald);
  font-weight: 900;
  font-size: 1.1rem;
}

.comparison-list strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.comparison-list p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   INTERACTIVE STUDY ROOM SIMULATOR
   ========================================================================== */

.simulator-wrapper {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-highlight);
}

.sim-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-room-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
}

.sim-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-left: 1rem;
}

.sim-sound-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sound-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sound-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.sound-btn.active, .sound-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  border-color: var(--border-highlight);
  color: var(--primary-blue);
}

.mute-btn {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: transparent;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-timer-box {
  background: var(--box-inner-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.timer-mode-selector {
  display: inline-flex;
  background: var(--bg-primary);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.mode-tab {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.mode-tab.active {
  background: var(--primary-blue);
  color: #ffffff;
}

.circular-timer-display {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring {
  transform: rotate(-90deg);
}

.timer-text-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-clock {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.timer-status {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.timer-action-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

/* Desk Feed */
.sim-desk-feed {
  background: var(--box-inner-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.feed-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feed-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.study-squad-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.peer-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.peer-tile:hover {
  border-color: var(--border-highlight);
}

.peer-avatar-bg {
  height: 95px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}

.tile-med { background: linear-gradient(180deg, #312e81, #4338ca); }
.tile-upsc { background: linear-gradient(180deg, #075985, #0284c7); }
.tile-ca { background: linear-gradient(180deg, #166534, #15803d); }
.tile-you { border: 1px dashed var(--primary-blue); }
.you-avatar {
  background: var(--bg-secondary);
  align-items: center;
  justify-content: center;
}

.you-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.peer-badge-cam {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.peer-badge-cam.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.peer-info {
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.peer-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.peer-tag {
  font-size: 0.7rem;
  color: var(--primary-blue);
}

.live-activity-stream {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.msg-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
  margin-right: 0.4rem;
}

/* ==========================================================================
   CORE FEATURES GRID (UNIFIED DUO-TONE DESIGN)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.icon-cyan { background: rgba(2, 132, 199, 0.1); color: #0284c7; }
.icon-amber { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.icon-rose { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.icon-emerald { background: rgba(5, 150, 105, 0.1); color: #059669; }
.icon-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.feature-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
}

.feature-perks li::before {
  content: '• ';
  color: var(--primary-blue);
  font-weight: bold;
}

/* ==========================================================================
   COHORT SECTION & SWITCHER
   ========================================================================== */

.cohort-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cohort-tab {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.cohort-tab.active, .cohort-tab:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: transparent;
}

.cohort-detail-card {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.detail-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.detail-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cohort-metrics {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}

.metric-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cohort-toppers-box {
  background: var(--box-inner-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.topper-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.topper-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.rank-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.gold { background: #f59e0b; color: #fff; }
.silver { background: #94a3b8; color: #fff; }
.bronze { background: #b45309; color: #fff; }

.topper-meta {
  flex-grow: 1;
}

.topper-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.topper-meta span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.streak-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
}

/* ==========================================================================
   TRANSPARENT PRICING SECTION
   ========================================================================== */

.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-label.active {
  color: var(--text-primary);
}

.savings-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
}

[data-theme="dark"] .slider {
  background-color: #334155;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:checked + .slider::before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-plan {
  border-color: var(--border-highlight);
  background: var(--featured-plan-bg);
  box-shadow: var(--featured-plan-glow);
  transform: scale(1.04);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.strike-price {
  font-size: 1.1rem;
  color: #ef4444;
  text-decoration: line-through;
  margin-right: 0.4rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-val {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 0.3rem;
}

.billed-note {
  display: block;
  font-size: 0.78rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 2rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.chk { color: var(--accent-emerald); font-weight: 800; }
.cross { color: #94a3b8; font-weight: 800; }

.guarantee-box {
  margin-top: 3.5rem;
  padding: 1.8rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}

.guarantee-icon {
  font-size: 2.5rem;
}

.guarantee-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.guarantee-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   STUDENT REVIEWS
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.review-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent-amber);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.review-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
}

.av-pink { background: #db2777; }
.av-cyan { background: #0284c7; }
.av-purple { background: #7c3aed; }

.author-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.author-meta span {
  font-size: 0.78rem;
  color: var(--primary-blue);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-container {
  max-width: 820px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.accordion-header {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.acc-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-blue);
  transition: transform 0.3s;
}

.accordion-item.active .acc-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.8rem;
}

.accordion-item.active .accordion-body {
  padding-bottom: 1.4rem;
}

.accordion-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */

.cta-banner-card {
  padding: 4.5rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.12);
}

[data-theme="dark"] .cta-banner-card {
  background: radial-gradient(circle at center, rgba(79, 70, 229, 0.25) 0%, rgba(7, 9, 14, 0.95) 80%);
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-trust-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

/* ==========================================================================
   REDESIGNED INAUGURAL MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2.2rem;
  position: relative;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 50px rgba(79, 70, 229, 0.15);
  text-align: center;
  background: var(--bg-card);
  animation: modal-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-subtle);
  transform: rotate(90deg);
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.discount-display-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.discount-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 1px;
}

.discount-val {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .discount-val {
  color: #ffffff;
}

.discount-scope {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.m-feat-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: left;
}

.promo-box {
  background: var(--bg-primary);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.5rem;
}

.promo-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.promo-code-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.promo-code-input-wrap input {
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-align: center;
}

.copy-feedback {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: 0.25rem;
  min-height: 16px;
  display: block;
}

.modal-micro-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ==========================================================================
   FLOATING ACTION DOCK
   ========================================================================== */

.floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-secondary);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 20px rgba(79, 70, 229, 0.15);
  z-index: 80;
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.app-dock-btn {
  background: var(--primary-blue);
  color: #ffffff;
}

.app-dock-btn:hover {
  background: var(--primary-indigo);
  transform: translateY(-1px);
}

.chat-dock-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.chat-dock-btn:hover {
  background: var(--border-subtle);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.f-logo-img {
  width: 32px;
  height: 32px;
}

.f-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-bio {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.3rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badges {
  display: flex;
  gap: 1.2rem;
}

.f-badge {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (DESKTOP, TABLET, MOBILE)
   ========================================================================== */

/* Universal Mobile Safety: prevent any horizontal overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

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

  .hero-social-proof {
    justify-content: center;
  }

  .mockup-frame {
    transform: none;
  }

  .features-grid, .pricing-cards-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .featured-plan {
    transform: none;
  }

  .cohort-detail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .main-nav, .hide-mobile {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-container {
    padding: 0.65rem 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7vw, 2.7rem);
    letter-spacing: -0.6px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.8rem;
  }

  .section-title {
    font-size: clamp(1.9rem, 6.5vw, 2.3rem);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .floating-dock {
    bottom: 14px;
    right: 14px;
    padding: 0.28rem 0.4rem;
    gap: 0.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  }

  .dock-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }

  .dock-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  /* Top Banner */
  .top-banner {
    padding: 0.45rem 0.6rem;
  }

  .banner-content {
    gap: 0.5rem;
  }

  .banner-badge {
    display: none;
  }

  .banner-text {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  .banner-cta {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .banner-close {
    font-size: 1.1rem;
    padding: 0 0.3rem;
  }

  /* Header Compact */
  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .brand-img {
    width: 26px;
    height: 26px;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle-btn {
    padding: 0.4rem 0.55rem;
    min-width: 34px;
    justify-content: center;
  }

  .live-label {
    display: none;
  }

  .live-status-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.8rem 0 2rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
    padding: 0 0.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
  }

  .proof-sub {
    font-size: 0.8rem;
    text-align: center;
  }

  /* Hero Showcase Mockup & Badges */
  .mockup-frame {
    transform: none !important;
    border-radius: var(--radius-lg);
  }

  .mockup-header-bar {
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
  }

  .window-status {
    display: none;
  }

  .float-badge {
    padding: 0.4rem 0.65rem;
    gap: 0.45rem;
  }

  .float-badge .badge-icon {
    font-size: 1.15rem;
  }

  .float-badge .badge-info strong {
    font-size: 0.72rem;
  }

  .float-badge .badge-info span {
    font-size: 0.65rem;
  }

  .badge-top-right {
    top: 8px;
    right: 8px;
  }

  .badge-bottom-left {
    bottom: 8px;
    left: 8px;
  }

  /* Cohort Ticker */
  .ticker-label {
    padding: 0 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
  }

  .ticker-track {
    gap: 1.8rem;
  }

  .ticker-item {
    font-size: 0.82rem;
  }

  /* Comparison Section */
  .comparison-card {
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .comparison-card-title {
    font-size: 1.25rem;
  }

  .comparison-list {
    gap: 1rem;
  }

  .comparison-list p {
    font-size: 0.85rem;
  }

  /* Study Room Simulator */
  .simulator-wrapper {
    padding: 1.2rem 0.9rem;
    border-radius: var(--radius-lg);
  }

  .sim-controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }

  .sim-room-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .sim-room-tag {
    font-size: 0.72rem;
  }

  .sim-live-indicator {
    margin-left: 0;
    font-size: 0.8rem;
  }

  .sim-sound-controls {
    display: flex !important;
    width: 100%;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sim-sound-controls::-webkit-scrollbar {
    display: none;
  }

  .sound-label {
    display: none;
  }

  .sound-btn {
    flex-shrink: 0;
    padding: 0.32rem 0.65rem;
    font-size: 0.75rem;
  }

  .sim-timer-box {
    padding: 1.4rem 0.8rem;
  }

  .timer-mode-selector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.2rem;
    margin-bottom: 1.4rem;
  }

  .mode-tab {
    flex: 1;
    padding: 0.4rem 0.35rem;
    font-size: 0.7rem;
    text-align: center;
  }

  .circular-timer-display {
    width: 190px;
    height: 190px;
    margin: 0 auto 1.4rem;
  }

  .circular-timer-display svg {
    width: 190px;
    height: 190px;
  }

  .circular-timer-display circle {
    cx: 95;
    cy: 95;
    r: 82;
    stroke-width: 7;
  }

  .timer-clock {
    font-size: 2.6rem;
  }

  .timer-status {
    font-size: 0.75rem;
  }

  .timer-action-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .timer-action-buttons .btn {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  /* Simulator Peer Feed */
  .sim-desk-feed {
    margin-top: 1rem;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 1rem;
  }

  .feed-title {
    font-size: 0.95rem;
  }

  .feed-badge {
    font-size: 0.72rem;
  }

  .study-squad-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .peer-tile {
    padding: 0.45rem;
  }

  .peer-avatar-bg {
    height: 65px;
  }

  .peer-badge-cam {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .peer-name {
    font-size: 0.75rem;
  }

  .peer-sub {
    font-size: 0.68rem;
  }

  /* Cohort Section */
  .cohort-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.2rem 0.2rem 0.7rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cohort-tabs::-webkit-scrollbar {
    display: none;
  }

  .cohort-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .cohort-detail-card {
    padding: 1.5rem 1.1rem;
    border-radius: var(--radius-lg);
  }

  .detail-title {
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
  }

  .detail-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
  }

  .cohort-metrics {
    gap: 1.2rem;
    margin-bottom: 1.6rem;
  }

  .metric-item strong {
    font-size: 1.5rem;
  }

  .metric-item span {
    font-size: 0.78rem;
  }

  .cohort-toppers-box {
    padding: 1.2rem 0.9rem;
  }

  .box-title {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
  }

  .topper-row {
    padding: 0.5rem 0.7rem;
    gap: 0.65rem;
  }

  .topper-meta strong {
    font-size: 0.82rem;
  }

  .topper-meta span {
    font-size: 0.72rem;
  }

  .topper-hours {
    font-size: 0.75rem;
  }

  /* Features Grid */
  .feature-card {
    padding: 1.6rem 1.2rem;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-description {
    font-size: 0.88rem;
  }

  /* Transparent Pricing Section */
  .pricing-toggle-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .pricing-card {
    padding: 1.8rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .plan-name {
    font-size: 1.25rem;
  }

  .price-val {
    font-size: 2.7rem;
  }

  .billed-note {
    margin-bottom: 1.4rem;
  }

  .plan-features {
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }

  .plan-features li {
    font-size: 0.85rem;
  }

  .guarantee-box {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1.4rem 1rem;
    border-radius: var(--radius-lg);
  }

  .guarantee-icon {
    font-size: 2.2rem;
  }

  /* Reviews & FAQ */
  .review-card {
    padding: 1.5rem 1.2rem;
  }

  .faq-card {
    padding: 1.1rem 1rem;
  }

  .faq-question {
    font-size: 0.92rem;
  }

  .faq-answer p {
    font-size: 0.85rem;
  }

  /* Inaugural Modal */
  .modal-card {
    max-width: calc(100vw - 28px);
    padding: 1.6rem 1.1rem;
    border-radius: var(--radius-lg);
    margin: 14px auto;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .discount-val {
    font-size: 2.2rem;
  }

  .modal-features-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .promo-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .promo-input-group input, .promo-input-group button {
    width: 100%;
  }

  .modal-cta-btn {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
  }

  /* Floating Dock Mobile Optimization */
  .floating-dock {
    bottom: 10px;
    right: 10px;
    padding: 0.25rem 0.35rem;
    gap: 0.35rem;
    border-radius: var(--radius-full);
  }

  .dock-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }
}
