body {
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.dashboard-mockup {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

.toggle-checkbox:checked {
  right: 0;
  border-color: #2563eb;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #2563eb;
}

.trading-illustration {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 3s ease-in-out forwards;
}

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.onboarding-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.onboarding-container {
  background-color: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.onboarding-overlay.active .onboarding-container {
  transform: translateY(0);
}

.progress-bar {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #4f46e5;
  transition: width 0.3s ease;
}

.question-container {
  display: none;
}

.question-container.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.option-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: #4f46e5;
  background-color: #f5f3ff;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-outline {
  border: 1px solid #4f46e5;
  color: #4f46e5;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #f5f3ff;
}

.dark .onboarding-container {
  background-color: #1e293b;
  color: white;
}

.dark .option-card {
  border-color: #334155;
  background-color: #1e293b;
}

.dark .option-card:hover {
  border-color: #2563eb;
}

.dark .option-card.selected {
  border-color: #2563eb;
  background-color: #312e81;
}

.dark .btn-outline {
  border-color: #2563eb;
  color: #2563eb;
}

.dark .btn-outline:hover {
  background-color: #312e81;
}

/* FAQ Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-toggle.active i {
  transform: rotate(180deg);
}

/* Pricing badge */
.pricing-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #10b981;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modern Testimonial Styles */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.testimonial-card-modern {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .testimonial-card-modern {
  background: #1e293b;
  border-color: #334155;
}

.testimonial-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
  position: absolute;
  top: 0;
  right: 2rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(79, 70, 229, 0.1);
}

.dark .testimonial-quote {
  color: rgba(99, 102, 241, 0.1);
}

.testimonial-rating {
  display: flex;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-avatar {
  border-color: #1e293b;
}

.testimonial-highlight {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: white;
}

.dark .testimonial-highlight {
  background: linear-gradient(135deg, #2563eb, #818cf8);
}

.testimonial-highlight .testimonial-quote {
  color: rgba(255, 255, 255, 0.2);
}

.testimonial-highlight .testimonial-rating i {
  color: #fbbf24;
}

.testimonial-highlight .testimonial-avatar {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Pricing badge */
.pricing-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #10b981;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.price-card {
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.price-card-popular {
  border: 2px solid #10b981;
  position: relative;
}

/* .popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #ff8c00;
  color: white;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4), 0 0 12px rgba(255, 120, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1);
  animation: badgeGlow 2.5s infinite ease-in-out alternate;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 160, 0, 0.3), 0 0 10px rgba(255, 120, 0, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 8px rgba(255, 180, 0, 0.5), 0 0 14px rgba(255, 140, 0, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 6px rgba(255, 150, 0, 0.4), 0 0 12px rgba(255, 130, 0, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
} */

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #10b981;
  color: white;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* New CTA Styles */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.9),
    rgba(99, 102, 241, 0.9)
  );
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.dark .cta-card {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.8),
    rgba(99, 102, 241, 0.8)
  );
}

.cta-button-primary {
  background-color: white;
  color: #4f46e5;
  transition: all 0.3s ease;
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button-secondary {
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(240, 240, 240, 0) 0%,
    rgba(240, 240, 240, 0.2) 50%,
    rgba(240, 240, 240, 0) 100%
  );
}

.accent-bg {
  background-color: #3b82f6;
}

.accent-bg:hover {
  background-color: color-mix(in srgb, #3b82f6, black 10%);
}

.trading-illustration {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Comparison Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .comparison-table th,
.dark .comparison-table td {
  border-color: rgba(255, 255, 255, 0.1);
}

.comparison-table th {
  font-weight: 600;
  background-color: rgba(79, 70, 229, 0.1);
}

.dark .comparison-table th {
  background-color: rgba(99, 102, 241, 0.1);
}

.comparison-table .feature {
  text-align: left;
  font-weight: 500;
}

.comparison-table .highlight {
  background-color: rgba(79, 70, 229, 0.05);
  position: relative;
}

.dark .comparison-table .highlight {
  background-color: rgba(99, 102, 241, 0.05);
}

.comparison-table .highlight::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #4f46e5;
}

.dark .comparison-table .highlight::after {
  background-color: #6366f1;
}

.comparison-check {
  color: #10b981;
  font-size: 1.2rem;
}

.comparison-x {
  color: #ef4444;
  font-size: 1.2rem;
}

.comparison-maybe {
  color: #f59e0b;
  font-size: 1.2rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: #2563eb;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: 2rem;
}

.video-content {
  text-align: center;
  margin-top: 1.5rem;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
  line-height: 1.3;
}

.video-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.modal-footer {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  display: flex;
  justify-content: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.action-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action-btn.primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
  border: 1px solid #e2e8f0;
  color: #2563eb;
  background: white;
}

.action-btn.secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Dark mode styles */
.dark .modal-content {
  background: #1e293b;
  border: 1px solid #334155;
}

.dark .modal-header {
  background: #2563eb;
}

.dark .video-title {
  color: #f8fafc;
}

.dark .video-description {
  color: #94a3b8;
}

.dark .modal-footer {
  background: #0f172a;
  border-top: 1px solid #334155;
}

.dark .action-btn.secondary {
  border-color: #334155;
  color: #2563eb;
  background: #1e293b;
}

.dark .action-btn.secondary:hover {
  background: #334155;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .modal-content {
    width: 95%;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .action-buttons {
    flex-direction: column;
  }
}

:root {
  --primary-light: #2563eb;
  --primary-dark: #447cf7;
  --background-light: #f9fafb;
  --background-dark: #0f172a;
  --text-light: #1f2937;
  --text-dark: #f3f4f6;
  --card-light: #ffffff;
  --card-dark: #1e293b;
  --border-light: #e5e7eb;
  --border-dark: #334155;
  --positive: #10b981;
  --negative: #ef4444;
  --accent: #1a5be9;
}

.new-hero .hero-text {
  max-width: 700px;
  margin-bottom: 60px;
}

.new-hero .tagline {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.new-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.new-hero .highlight {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.new-hero .hero-description {
  font-size: 1.25rem;
  /* color: #4b5563; */
  max-width: 600px;
  margin: 0 auto 40px;
}

.new-hero .dark-mode .hero-description {
  color: #d1d5db;
}

.new-hero .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: left;
  flex-wrap: wrap;
}

.new-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  gap: 10px;
}

.new-hero .btn-primary {
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15);
}

.new-hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(79, 70, 229, 0.2);
}

.new-hero .btn-secondary {
  background: var(--card-light);
  color: var(--primary-light);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.new-hero .dark-mode .btn-secondary {
  background: var(--card-dark);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}

.new-hero .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

@media (max-width: 768px) {
  .new-hero .hero-section {
    padding: 80px 0;
  }

  .new-hero h1 {
    font-size: 2.5rem;
  }

  .new-hero .hero-description {
    font-size: 1.1rem;
  }

  .new-hero .dashboard {
    grid-template-columns: 1fr;
  }

  .new-hero .chart-container {
    grid-column: span 1;
  }

  .new-hero .theme-toggle {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .new-hero .hero-text {
    text-align: center;
  }

  .new-hero .cta-buttons {
    justify-content: center;
    /* width: 100%; */
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 10px; /* spacing */
  align-items: center; /* center horizontally */
}

.cta-buttons a.btn {
  width: auto; /* natural width */
}

/* Side by side on larger screens */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center; /* center horizontally */
    align-items: center;
    gap: 10px;
  }
}

/* Moving fireflies */
.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #fbbf24;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 10px 2px #fbbf24;
  animation: float 15s infinite ease-in-out;
}

.firefly:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.firefly:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 3s;
}

.firefly:nth-child(3) {
  top: 40%;
  left: 30%;
  animation-delay: 6s;
}

.firefly:nth-child(4) {
  top: 80%;
  left: 60%;
  animation-delay: 9s;
}

.firefly:nth-child(5) {
  top: 10%;
  left: 70%;
  animation-delay: 12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, 15px);
    opacity: 0.7;
  }
  50% {
    transform: translate(-10px, 25px);
    opacity: 0.5;
  }
  75% {
    transform: translate(15px, -10px);
    opacity: 0.8;
  }
}

.diya-illustration {
  position: absolute;
  bottom: -20px; /* slight overflow */
  right: -15px;
  width: 70px;
  height: auto;
  animation: flicker 1.5s infinite alternate ease-in-out;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 180, 70, 0.7))
    drop-shadow(0 0 16px rgba(255, 150, 50, 0.5))
    drop-shadow(0 0 25px rgba(255, 120, 30, 0.3));
  transition: filter 0.3s ease-in-out;
}

/* Enhanced flicker animation with glow pulse */
@keyframes flicker {
  0% {
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(255, 180, 70, 0.4))
      drop-shadow(0 0 8px rgba(255, 140, 40, 0.25))
      drop-shadow(0 0 12px rgba(255, 100, 20, 0.15));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 200, 80, 0.5))
      drop-shadow(0 0 10px rgba(255, 160, 50, 0.35))
      drop-shadow(0 0 14px rgba(255, 120, 30, 0.25));
  }
  100% {
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(255, 180, 70, 0.4))
      drop-shadow(0 0 8px rgba(255, 150, 50, 0.25))
      drop-shadow(0 0 12px rgba(255, 120, 30, 0.2));
  }
}