/* css/pages/promotion.css — Premium Promotion Page with SVG Animation */

.promo-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-5) var(--space-5) var(--space-10);
  max-width: 700px;
  margin: 0 auto;
}

/* === Hero Section === */
.promo-page__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--space-6);
}

.promo-page__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-page__subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  max-width: 450px;
  line-height: var(--lh-relaxed);
}

/* === Card section === */
.promo-page__card {
  width: 100%;
  background: var(--color-bg-pure);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* === Benefits Grid === */
.promo-page__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
}

.promo-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.promo-benefit-item:hover {
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.promo-benefit-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1), rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.promo-benefit-item__icon svg {
  width: 18px;
  height: 18px;
}

.promo-benefit-item__icon--gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  color: #f59e0b;
}

.promo-benefit-item__icon--rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(244, 63, 94, 0.04));
  color: #f43f5e;
}

.promo-benefit-item__icon--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  color: #10b981;
}

.promo-benefit-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-benefit-item__text strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.promo-benefit-item__text span {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

/* === Pricing === */
.promo-page__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary-ghost);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
  border-radius: var(--radius-full);
}

.promo-page__price-tag {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.promo-page__price-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* === CTA Button === */
.promo-page__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  cursor: pointer;
  box-shadow: var(--shadow-glow-primary);
  transition: all var(--transition-base);
}

.promo-page__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
}

.promo-page__cta:active {
  transform: translateY(0);
}

/* === SVG Animation Container === */
.promo-hero-animation {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-4);
  position: relative;
  /* Hover via transition — no animation override to avoid disappearing bug */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.promo-hero-animation:hover {
  transform: scale(1.1) translateY(-4px);
}

.promo-hero-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---- Circle draws in ---- */
.promo-svg-ring {
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: promoRingDraw 1.2s ease-out 0.2s forwards;
}

@keyframes promoRingDraw {
  to { stroke-dashoffset: 0; }
}

/* ---- Disc fades in ---- */
.promo-svg-disc {
  opacity: 0;
  animation: promoDiscFade 0.8s ease 0.6s forwards;
}

@keyframes promoDiscFade {
  to { opacity: 0.12; }
}

/* ---- Pulse ring ---- */
.promo-svg-pulse {
  transform-origin: center;
  animation: promoPulse 3s ease-in-out infinite 1.5s;
  opacity: 0;
}

@keyframes promoPulse {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- Rocket launches out ---- */
.promo-svg-rocket {
  transform: translate(10px, 10px) scale(0.6);
  opacity: 0;
  transform-origin: 100px 100px;
  animation: promoRocketLaunch 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes promoRocketLaunch {
  0% { transform: translate(10px, 10px) scale(0.6); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translate(-6px, -6px) scale(1.08); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* ---- Flame flicker ---- */
.promo-flame-core {
  animation: promoFlameFlicker 0.4s ease-in-out infinite alternate;
  transform-origin: 18px 42px;
}

.promo-flame-inner {
  animation: promoFlameFlicker 0.3s ease-in-out infinite alternate-reverse;
  transform-origin: 18px 42px;
}

@keyframes promoFlameFlicker {
  0% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(1.15) scaleX(0.9); }
  100% { transform: scaleY(0.85) scaleX(1.1); }
}

/* ---- Exhaust sparks ---- */
.promo-exhaust-spark-1 {
  animation: promoSparkDrift1 1.2s ease-out infinite;
}
.promo-exhaust-spark-2 {
  animation: promoSparkDrift2 1s ease-out infinite 0.3s;
}
.promo-exhaust-spark-3 {
  animation: promoSparkDrift3 1.5s ease-out infinite 0.6s;
}

@keyframes promoSparkDrift1 {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-4px, 8px) scale(0); }
}

@keyframes promoSparkDrift2 {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(3px, 7px) scale(0); }
}

@keyframes promoSparkDrift3 {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-2px, 10px) scale(0); }
}

/* ---- Floating idle ---- */
.promo-hero-animation .promo-hero-svg {
  animation: promoFloat 5s ease-in-out infinite 2s;
}

@keyframes promoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- Star sparkles ---- */
.promo-sparkle {
  opacity: 0;
  animation: promoSparklePop 2.5s ease-in-out infinite;
}

.promo-sparkle-1 { animation-delay: 1.0s; }
.promo-sparkle-2 { animation-delay: 1.5s; }
.promo-sparkle-3 { animation-delay: 2.0s; }
.promo-sparkle-4 { animation-delay: 2.5s; }
.promo-sparkle-5 { animation-delay: 1.3s; }

@keyframes promoSparklePop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  15% { opacity: 1; transform: scale(1.3) rotate(15deg); }
  30% { opacity: 0.8; transform: scale(1) rotate(0deg); }
  70% { opacity: 0.8; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0) rotate(-15deg); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .promo-hero-animation {
    width: 120px;
    height: 120px;
  }

  .promo-page__title {
    font-size: var(--fs-2xl);
  }

  .promo-page__benefits {
    grid-template-columns: 1fr;
  }

  .promo-page__pricing {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
