html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  background: #111113;
}

/* hero radial glow */
.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% -5%,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* gradient text */
.grad {
  background: linear-gradient(160deg, #fff 30%, rgba(255, 255, 255, 0.45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-blue {
  background: #3b82f6;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-blue:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-ghost {
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.5);
}

.card {
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-card {
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.35) !important;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  color: #60a5fa;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* marketing image sections */
.mkt-img {
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.5);
  display: block;
}

/* placeholder for missing images */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  background: #1a1a1e;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* ── CAROUSEL ─────────────────────── */
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
}
.carousel-slide img {
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.5);
}
.thumb-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.thumb {
  width: 88px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.4;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    opacity 0.2s,
    border-color 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}
.thumb.active {
  opacity: 1;
  border-color: #3b82f6;
  transform: scale(1.05);
}
.thumb:hover:not(.active) {
  opacity: 0.7;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
  backdrop-filter: blur(8px);
  color: white;
  font-size: 16px;
  user-select: none;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.carousel-btn.prev {
  left: -20px;
}
.carousel-btn.next {
  right: -20px;
}

/* faq */
.faq-answer {
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* float animation for mockup */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.float {
  animation: float 5s ease-in-out infinite;
}

/* coupon copy */
.coupon {
  cursor: pointer;
}
.coupon:hover {
  text-decoration: underline;
}

/* scroll fade */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fade-up 0.7s ease both;
}
.d1 {
  animation-delay: 0.1s;
}
.d2 {
  animation-delay: 0.25s;
}
.d3 {
  animation-delay: 0.4s;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #1a1a1e;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: white;
  font-size: 18px;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.coupon-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s;
}
.coupon-field:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
}
.coupon-code {
  flex: 1;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #60a5fa;
  user-select: all;
}
.coupon-copy-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.coupon-copy-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.02);
}
.coupon-copy-btn:active {
  transform: scale(0.98);
}
.coupon-copy-btn.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* ── MINIMALIST MODAL STYLES ─────────────────────── */
.modal-icon-mini {
  font-size: 40px;
  margin-bottom: 12px;
}

.modal-title-mini {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-subtitle-mini {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-modal-primary {
  display: block;
  width: 100%;
  background: #3b82f6;
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  margin-bottom: 16px;
}

.btn-modal-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.modal-divider-mini {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-divider-mini::before,
.modal-divider-mini::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-divider-mini span {
  padding: 0 12px;
}

.coupon-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.coupon-mini:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.coupon-code-mini {
  flex: 1;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #60a5fa;
  user-select: all;
  text-align: left;
}

.coupon-btn-mini {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-btn-mini:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.coupon-btn-mini.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.btn-modal-secondary {
  display: block;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12),
    rgba(37, 99, 235, 0.08)
  );
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  color: #60a5fa;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.btn-modal-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(37, 99, 235, 0.15)
  );
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(59, 130, 246, 0.25),
    0 0 0 3px rgba(59, 130, 246, 0.08);
}

.modal-close-text-mini {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.modal-close-text-mini:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ── PURCHASE MODAL REDESIGN ─────────────────────── */
.pm-body {
  text-align: center;
}

.pm-header {
  margin-bottom: 20px;
}

.pm-app-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.pm-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  display: block;
}

.pm-icon-glow {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  opacity: 0.45;
  z-index: 0;
  filter: blur(12px);
}

.pm-headline {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.pm-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Feature pills */
.pm-features {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pm-feat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
}

/* Trial button */
.pm-btn-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #3b82f6;
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  letter-spacing: -0.1px;
}

.pm-btn-trial:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.55);
}

.pm-trust {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.pm-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pm-section-divider::before,
.pm-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.pm-section-divider span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* Buy card */
.pm-buy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 14px 10px;
  margin-bottom: 14px;
  text-align: left;
}

.pm-buy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pm-buy-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pm-price-now {
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.pm-price-was {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.pm-discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 100px;
  padding: 3px 9px;
}

.pm-buy-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pm-coupon-field {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.pm-coupon-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-width: 0;
}

.pm-coupon-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pm-coupon-val {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 14px;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.06em;
}

.pm-coupon-copy {
  background: rgba(59, 130, 246, 0.12);
  border: none;
  border-left: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pm-coupon-copy:hover {
  background: rgba(59, 130, 246, 0.22);
}

.pm-coupon-copy.copied {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.pm-btn-buy {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #60a5fa 100%);
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
}

.pm-btn-buy:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.pm-buy-fine {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 9px;
  text-align: center;
}

/* Skip link */
.pm-skip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.pm-skip:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── MICROINTERACTIONS ─────────────────────── */
/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Stagger delays for multiple reveals */
.reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

/* Button loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced button hover with scale */
.btn-blue,
.btn-modal-primary {
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-blue:hover,
.btn-modal-primary:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-blue:active,
.btn-modal-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Checkmark pop animation */
@keyframes checkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.check-animate {
  display: inline-block;
  animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Card hover elevation */
.feature-card,
.card {
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth image hover */
.mkt-img,
.carousel-slide img {
  transition: transform 0.3s ease;
}

.mkt-img:hover {
  transform: scale(1.02);
}

/* Icon bounce on hover */
.feature-icon i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon i {
  transform: translateY(-3px);
}

/* Button ripple effect */
.btn-blue,
.btn-modal-primary,
.btn-modal-secondary {
  position: relative;
  overflow: hidden;
}

.btn-blue::before,
.btn-modal-primary::before,
.btn-modal-secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.5s,
    height 0.5s;
}

.btn-blue:active::before,
.btn-modal-primary:active::before,
.btn-modal-secondary:active::before {
  width: 300px;
  height: 300px;
}

/* Pulse animation for promo badge */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ── THANK YOU MODAL ─────────────────────── */
.thank-you-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.thank-you-highlight {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(59, 130, 246, 0.04)
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.thank-you-cta {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .modal-content {
    max-width: 100%;
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.download-timer {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  margin-top: 16px;
  display: none;
  animation: fade-up 0.3s ease-out;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
    overflow-y: auto;
    padding: 28px 20px;
  }
}
