/* ==========================================================================
   Design Tokens & Resets
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #0D1E36;
  --bg-secondary: #0A1629;
  --accent-blue: #4A72B7;
  --accent-red: #E13B30;
  --text-main: #FFFFFF;
  --text-muted: #A0B2C9;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(74, 114, 183, 0.15);
  
  /* Red Glow */
  --btn-glow: rgba(225, 59, 48, 0.4);

  /* Spacing */
  --section-pad: 5rem 2rem;

  /* Toasts & UI */
  --whatsapp-green: #25D366;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #FFF, #A0B2C9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-red {
  color: var(--accent-red);
}

.text-blue {
  color: var(--accent-blue);
}

.title-section {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Layout Utils & Glassmorphism
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--section-pad);
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--glass-glow);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Red button with Glow */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-red);
  color: #FFF;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px var(--btn-glow);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 35px var(--btn-glow);
  border-color: rgba(255,255,255,0.2);
}

.btn-large {
  font-size: 1.25rem;
  padding: 1.2rem 3rem;
  width: 100%;
  max-width: 400px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(13, 30, 54, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar .nav-cta {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: radial-gradient(circle at 50% -20%, #173256, var(--bg-primary));
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(74, 114, 183, 0.2);
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(74, 114, 183, 0.4);
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

.hero-glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  filter: blur(100px);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.4;
}

/* ==========================================================================
   Pain Section (Dor)
   ========================================================================== */

.pain-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(225, 59, 48, 0.03); /* subtle red bg */
  border-color: rgba(225, 59, 48, 0.1);
}

.pain-card i {
  color: var(--accent-red);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.the-truth {
  margin-top: 4rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(74, 114, 183, 0.05));
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
}

.the-truth h3 {
  color: var(--accent-blue);
}

.the-truth ul {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 2rem auto 0;
}

.the-truth li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.the-truth li::before {
  content: '→';
  color: var(--accent-blue);
  font-weight: bold;
}

/* ==========================================================================
   Modules Section (Bento Box)
   ========================================================================== */

.modules-section {
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.module-card {
  display: flex;
  flex-direction: column;
}

.module-icon {
  width: 50px;
  height: 50px;
  background: rgba(74, 114, 183, 0.1);
  border: 1px solid rgba(74, 114, 183, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.module-card h4 {
  color: #FFF;
  margin-bottom: 0.5rem;
}

.module-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.module-features {
  list-style: none;
  font-size: 0.85rem;
  color: #FFF;
}

.module-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-features li::before {
  content: '•';
  color: var(--accent-blue);
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.comparison-wrapper {
  margin-top: 5rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.comparison-table td:first-child {
  color: var(--text-muted);
  border-right: 1px solid var(--glass-border);
}

.comparison-table td:last-child {
  background: rgba(74, 114, 183, 0.05);
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Testimonials & Social Proof
   ========================================================================== */

.testimonials-section {
  background-color: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
  line-height: 1;
}

.stars {
  color: #FFB800;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #E2E8F0;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   Author / Professor Section
   ========================================================================== */

.professor-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.professor-img-wrapper {
  position: relative;
}

.professor-img {
  width: 100%;
  border-radius: 24px;
}

.professor-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item h3 {
  color: var(--accent-blue);
  font-size: 2rem;
  margin-bottom: 0;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Offer / Pricing Breakdown
   ========================================================================== */

.offer-section {
  text-align: center;
  position: relative;
}

.offer-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-red);
  filter: blur(150px);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.15;
}

.price-card {
  max-width: 600px;
  margin: 0 auto;
  border-color: rgba(225, 59, 48, 0.3);
  box-shadow: 0 0 50px rgba(225, 59, 48, 0.1);
  padding: 3rem 2rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.new-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  color: #FFB800; /* Vibrant Yellow */
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.price-subtitle {
  margin-bottom: 2rem;
}

.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.guarantee-badge i {
  color: #FFB800;
  font-size: 2rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-pad);
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
  background-color: var(--bg-secondary);
}

.footer img {
  height: 40px;
  margin: 0 auto 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFF;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes float-reverse {
  0% { transform: translateY(0px); }
  50% { transform: translateY(15px); }
  100% { transform: translateY(0px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-reverse {
  animation: float-reverse 7s ease-in-out infinite;
}

/* ==========================================================================
   Sales Notifications (Toasts)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.sales-toast {
  background: rgba(13, 30, 54, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateX(-150%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  max-width: 320px;
}

.sales-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  background: var(--accent-blue);
  color: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-content p {
  font-size: 0.85rem;
  margin: 0;
  color: #FFF;
  line-height: 1.3;
}

.toast-content span {
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 600;
}

/* ==========================================================================
   WhatsApp Floating Button & Back to Top
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: bounce 4s infinite ease-in-out;
}

.wa-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-red);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #FFF;
  animation: none; /* Stop bounce on hover */
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #FFF;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-blue);
  color: #FFF;
  transform: translateY(-5px);
}

/* ==========================================================================
   Top Timer Banner
   ========================================================================== */
.top-timer-banner {
  background: var(--accent-red);
  color: #FFF;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1001; /* Above navbar for load */
}

.timer-box {
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   Mac Window Style
   ========================================================================== */
.mac-window {
  background: rgba(13, 30, 54, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7);
  margin-top: 3rem;
  position: relative;
}

.mac-header {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mac-dot.close { background: #FF5F56; }
.mac-dot.min { background: #FFBD2E; }
.mac-dot.max { background: #27C93F; }

.mac-body {
  padding: 2rem;
}

/* ==========================================================================
   Floating UI Scene (Professor + Glass cards)
   ========================================================================== */
.floating-scene {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-professor {
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

.floating-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-1 {
  top: 5%;
  left: -8%;
}

.card-2 {
  bottom: 10%;
  right: -8%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .hero-content {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .professor-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .floating-scene {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 1.2rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .title-section {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th, .comparison-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  /* Make floating cards fit on mobile */
  .card-1 {
    left: -2%;
    padding: 0.6rem 0.8rem;
    top: 2%;
  }

  .card-2 {
    right: -2%;
    padding: 0.6rem 0.8rem;
    bottom: -2%;
  }

  .floating-glass-card strong {
    font-size: 0.8rem !important;
  }
}
