:root {
  --brand: #ffc069;
  --brand-strong: #ffae39;
  --glow: rgba(255, 192, 105, 0.35);
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --shell: rgba(255, 255, 255, 0.85);
  --shadow: rgba(15, 23, 42, 0.08);
  --modal-backdrop: rgba(15, 23, 42, 0.45);
}

body.dark-mode {
  --bg: #0b1224;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --shell: rgba(19, 27, 43, 0.8);
  --shadow: rgba(0, 0, 0, 0.35);
  --modal-backdrop: rgba(0, 0, 0, 0.55);
}

* {
  scroll-behavior: smooth;
}

@media (hover: hover) {
  *:hover,
  *:hover::before,
  *:hover::after {
    transition-delay: 0s !important;
  }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a.btn-primary {
  display: inline-flex;
}

.header-shell {
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
}

.header-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 192, 105, 0.8), rgba(255, 255, 255, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 6s linear infinite;
  pointer-events: none;
}

@keyframes borderGlow {
  0% {
    opacity: 0.6;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 0.9;
    filter: hue-rotate(10deg);
  }

  100% {
    opacity: 0.6;
    filter: hue-rotate(0deg);
  }
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
  color: #0f172a;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.dark-mode .nav-link {
  color: #f8fafc;
}

.dark-mode .mobile-link {
  color: #e2e8f0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffb347, #ffc069, #ff9f30);
  color: #0f172a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 158, 48, 0.3);
  box-shadow: 0 18px 45px rgba(255, 158, 48, 0.3), 0 2px 10px rgba(255, 192, 105, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, #ffc069, #ffae39, #ff9f30);
  box-shadow: 0 22px 60px rgba(255, 158, 48, 0.35), 0 2px 12px rgba(255, 192, 105, 0.28);
}

.btn-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.glass-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 192, 105, 0.4);
  box-shadow: 0 12px 35px rgba(255, 192, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
}

.glass-stars span {
  color: #f59e0b;
  font-size: 18px;
  text-shadow: 0 2px 8px rgba(255, 193, 112, 0.5);
}

.dark-mode .glass-stars {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 192, 105, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark-mode .glass-stars span {
  color: #ffc069;
}

.dark-mode .modal-content {
  background: #111927;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode input {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

.mobile-link {
  padding: 14px 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.mobile-link:hover {
  background: rgba(15, 23, 42, 0.05);
}

.dark-mode .mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-bar {
  background: #fff;
}

.dark-mode .menu-bar {
  background: #f8fafc;
}

#site-header {
  transform-origin: top;
  animation: slideDown 0.7s ease forwards;
  width: min(94%, 1200px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#site-header.shrink .header-shell {
  transform: scale(0.98);
  padding-top: 8px;
  padding-bottom: 8px;
}

.dark-mode .header-shell {
  background: var(--shell);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.dark-mode #mobile-menu {
  background: rgba(19, 27, 43, 0.92);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
}

#site-header.shrink {
  top: 10px;
}

.header-hidden {
  transform: translate(-50%, -200%) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -30px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.floating-shape {
  position: absolute;
  inset: 0;
  border-radius: 30% 70% 40% 60%;
  filter: blur(60px);
  opacity: 0.65;
  animation: float 12s ease-in-out infinite alternate;
}

.shape-one {
  background: radial-gradient(circle, rgba(255, 192, 105, 0.4), transparent 60%);
  transform: translate(-40px, -30px);
}

.shape-two {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
  transform: translate(80px, 60px);
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(15px, -18px) scale(1.05);
  }
}

.hero-blob {
  position: absolute;
  inset: -20px;
  background: none;
  filter: none;
  animation: none;
  z-index: 0;
  pointer-events: none;
}

@keyframes blobMove {
  0% {
    transform: translate(-10px, -5px) scale(1);
  }

  50% {
    transform: translate(15px, 20px) scale(1.05);
  }

  100% {
    transform: translate(-12px, 10px) scale(1.02);
  }
}

.brand-bg {
  transition: opacity 0.3s ease;
}

.dark-mode .brand-bg {
  opacity: 0.9;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 36, 74, 0.9), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(14, 24, 52, 0.7), transparent 32%),
    radial-gradient(circle at 40% 80%, rgba(16, 30, 60, 0.78), transparent 36%),
    #0b1224;
  filter: saturate(0.95);
}

.dark-mode main {
  background: #0b1224;
}

.feature-card,
.pricing-card,
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card.tilt-card {
  text-align: center;
}

.feature-card:hover,
.pricing-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 192, 105, 0.6);
  box-shadow: 0 25px 80px rgba(255, 192, 105, 0.2);
}

.logo-pill {
  padding: 14px 16px;
  border-radius: 9999px;
  background: var(--card);
  border: 1px dashed var(--card-border);
  filter: grayscale(1) brightness(0.9);
  width: 100%;
  text-align: center;
}

.logo-dark {
  display: none;
}

.dark-mode .logo-light {
  display: none;
}

.dark-mode .logo-dark {
  display: block;
}

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

.stat-card.compact {
  padding: 14px;
}

.stat-card.testimonial {
  text-align: left;
}

.tilt-card {
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.tilt-card .text-2xl,
.tilt-card h3,
.tilt-card p {
  transform: translateZ(20px);
}

.magnetic {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.magnetic:hover {
  transform: translateY(-2px);
}

.save-pill {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(16, 185, 129, 0.32));
  color: #065f46;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22);
}

#pricing .pricing-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08), 0 12px 36px rgba(255, 192, 105, 0.18);
  isolation: isolate;
}

#pricing .pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 192, 105, 0.16), transparent 60%),
    radial-gradient(circle at 78% 18%, rgba(255, 192, 105, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

#pricing .pricing-card > * {
  position: relative;
  z-index: 1;
}

#pricing .pricing-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 192, 105, 0.4);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12), 0 18px 60px rgba(255, 192, 105, 0.24);
}

#pricing .best-value {
  border-color: rgba(255, 192, 105, 0.55);
  box-shadow: 0 18px 60px rgba(255, 192, 105, 0.26);
}

#pricing .best-value::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 192, 105, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(255, 192, 105, 0.28), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.dark-mode #pricing .pricing-card {
  background: linear-gradient(135deg, rgba(19, 27, 43, 0.9), rgba(19, 27, 43, 0.75));
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 12px 36px rgba(255, 192, 105, 0.22);
}

.dark-mode #pricing .pricing-card::after {
  opacity: 0.35;
}

.dark-mode .save-pill {
  color: #ecfdf3;
  border-color: rgba(52, 211, 153, 0.7);
}

.feature-off {
  opacity: 0.55;
  text-decoration: line-through;
}

.recent-ticker {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ticker-label {
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 192, 105, 0.22);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 192, 105, 0.5);
}

.ticker-track {
  display: inline-flex;
  gap: 18px;
  animation: ticker 22s linear infinite;
  min-width: 120%;
  padding-left: 6px;
  position: relative;
}

.ticker-item {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
  color: #0f172a;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.badge {
  background: rgba(255, 192, 105, 0.15);
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 192, 105, 0.4);
}

.best-value {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 192, 105, 0.08), rgba(255, 192, 105, 0.02));
}

.dark-mode .badge {
  background: rgba(255, 192, 105, 0.25);
  color: #fff;
  border-color: rgba(255, 192, 105, 0.6);
}

.toggle-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

.toggle-btn.active {
  background: #fff;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 192, 105, 0.25);
}

.dark-mode .toggle-btn {
  color: #e2e8f0;
}

.dark-mode .theme-icon {
  color: #f8fafc;
}

.toggle-track {
  position: relative;
  overflow: hidden;
}

.toggle-highlight {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 50%;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, rgba(255, 192, 105, 0.4), rgba(255, 174, 57, 0.4));
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255, 192, 105, 0.25);
  transition: transform 0.3s ease;
}

.dark-mode .toggle-track {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

#monthly-plans.hidden,
#yearly-plans.hidden {
  display: none;
}

.dark-mode #pricing {
  background: rgba(19, 27, 43, 0.9);
  border-color: rgba(255, 255, 255, 0.05);
}

#mobile-menu {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  background: transparent;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: rgba(71, 85, 105, 0.9);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 18px 16px;
}

.dark-mode .faq-answer {
  color: rgba(241, 245, 249, 0.9);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  position: relative;
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  padding: 22px;
  width: 95vw;
  max-width: 1400px;
  max-height: 90vh;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  z-index: 1;
  animation: popIn 0.35s ease forwards;
  transform: scale(0.97);
}

.modal-content::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 192, 105, 0.35), transparent 45%), radial-gradient(circle at 80% 10%, rgba(255, 174, 57, 0.3), transparent 40%);
  filter: blur(35px);
  z-index: -1;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stats-bubble {
  animation: levitate 6s ease-in-out infinite;
}

.hero-figure {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.hero-image {
  object-fit: cover;
  filter: saturate(1.25) hue-rotate(-8deg) brightness(1.05) drop-shadow(0 25px 70px rgba(255, 192, 105, 0.18));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-image:hover {
  filter: saturate(1.35) hue-rotate(-4deg) brightness(1.1) drop-shadow(0 30px 80px rgba(255, 192, 105, 0.28));
  transform: scale(1.01);
}

@keyframes levitate {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  #site-header {
    width: 92%;
  }

  .header-shell {
    padding: 10px 12px;
  }

  .modal-content {
    width: 99vw;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
  }

  .modal-content .aspect-video {
    flex: 1;
    height: 100%;
    padding: 0 !important;
    position: relative;
  }

  .modal-content .aspect-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

body.dark-mode {
  color-scheme: dark;
}

.dark-mode .text-slate-600 {
  color: rgba(226, 232, 240, 0.85) !important;
}

.dark-mode .text-slate-700 {
  color: rgba(241, 245, 249, 0.9) !important;
}

.dark-mode .text-slate-500 {
  color: rgba(203, 213, 225, 0.85) !important;
}

.dark-mode .text-slate-900 {
  color: #f8fafc !important;
}

.dark-mode .text-slate-800\/80 {
  color: rgba(226, 232, 240, 0.8) !important;
}

.dark-mode .text-slate-600.text-sm {
  color: rgba(226, 232, 240, 0.7) !important;
}

.dark-mode .cta-fixed-dark {
  color: #0f172a !important;
}

.dark-mode .header-shell {
  background: linear-gradient(135deg, rgba(19, 27, 43, 0.9), rgba(19, 27, 43, 0.75));
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .feature-card,
.dark-mode .pricing-card,
.dark-mode .stat-card,
.dark-mode .logo-pill,
.dark-mode .faq-item {
  background: linear-gradient(135deg, rgba(19, 27, 43, 0.92), rgba(19, 27, 43, 0.78));
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.dark-mode .logo-pill {
  filter: grayscale(1) brightness(1.2);
}

.dark-mode .bg-white,
.dark-mode .bg-white\/90,
.dark-mode .bg-white\/80 {
  background-color: rgba(19, 27, 43, 0.85) !important;
}

.dark-mode .border-slate-100,
.dark-mode .border-slate-200 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .border-slate-100 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .toggle-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.dark-mode .hero-blob {
  filter: blur(110px);
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}
