/*
  Modern premium dark theme with sophisticated design system.
  Clean, minimal code with clear component organization.
*/

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    background: #121318;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Aurora brand background + vignette */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
}
.bg-aurora::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(800px 400px at 20% -10%, rgba(24,220,255,.18), transparent),
                radial-gradient(900px 500px at 70% -10%, rgba(227,75,255,.16), transparent),
                radial-gradient(700px 600px at 50% 110%, rgba(255,159,60,.12), transparent);
}
.bg-aurora::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(1200px 800px at 50% 50%, rgba(18,19,24,.5), rgba(18,19,24,.6) 40%, rgba(18,19,24,.8) 75%);
    mix-blend-mode: multiply;
}

/* Headline utilities */
.headline-xl { letter-spacing: -0.02em; line-height: 1.05; }
.headline-gradient { @apply bg-gradient-to-r from-white via-white to-white/70 bg-clip-text text-transparent; }
.accent-gradient { @apply bg-gradient-to-r from-primary-400 via-pink-400 to-purple-400 bg-clip-text text-transparent; }

/* Premium buttons with glass morphism */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff3b5c 0%, #f01d47 50%, #d91039 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 25px -5px rgba(255, 59, 92, 0.4),
        0 4px 12px -2px rgba(255, 59, 92, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Glossy overlay effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    border-radius: 9999px 9999px 0 0;
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f01d47 0%, #d91039 50%, #b50f35 100%);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 35px -5px rgba(255, 59, 92, 0.5),
        0 10px 20px -5px rgba(255, 59, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1.5;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Video container */
.video-container {
    @apply relative aspect-video rounded-2xl overflow-hidden bg-gradient-to-br from-dark-800 to-dark-900 border border-white/10 shadow-2xl shadow-black/50;
}

.play-button {
    @apply absolute inset-0 m-auto w-16 h-16 bg-white/10 hover:bg-white/20 rounded-full flex items-center justify-center backdrop-blur-sm border border-white/20 transition-all duration-200 hover:scale-110;
}

/* Thumbnails */
.thumbnail-card {
    @apply relative rounded-xl overflow-hidden border border-white/10 bg-white/5 backdrop-blur-sm transition-all duration-200 hover:border-white/20 hover:bg-white/10 hover:-translate-y-1;
}

.thumbnail-overlay {
    @apply absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent p-3;

    
    margin-top: -30px;
   
}

.thumbnail-overlay .text-white {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* Live badge for demo thumbnails */
.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(255, 59, 92, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 6px 14px -6px rgba(255,59,92,.6);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.9);
    animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.9); }
    70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Feature pills */
.feature-pill {
    @apply flex items-center space-x-2 px-3 py-2 bg-white/5 rounded-full border border-white/10 text-sm text-dark-300 backdrop-blur-sm;
}

/* Step cards */
.step-card {
    @apply relative p-8 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 backdrop-blur-sm transition-all duration-300 hover:from-white/10 hover:to-white/5 hover:border-white/20 hover:-translate-y-1;
}
.step-bar { @apply absolute left-0 top-0 h-1 w-full bg-white/5; }
.step-bar > span { @apply block h-full bg-gradient-to-r from-primary-500 to-pink-500; width: 0%; transition: width .6s ease; }

.step-number {
    @apply absolute top-4 right-4 w-8 h-8 bg-primary-500/20 text-primary-400 rounded-full flex items-center justify-center text-sm font-bold;
}

.step-icon {
    @apply w-12 h-12 bg-gradient-to-br from-primary-500/20 to-primary-600/20 rounded-xl flex items-center justify-center text-primary-400 mb-4;
}

/* Benefit sections */
.benefit-section {
    @apply p-6 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 backdrop-blur-sm;
}

.benefit-section-title {
    @apply text-lg font-bold mb-4 text-white;
}
.benefit-section-title::after { content: ''; display: block; height: 2px; margin-top: 8px; width: 48px; @apply bg-gradient-to-r from-primary-500 to-pink-500 rounded-full; }

.benefit-item {
    @apply flex items-start space-x-3;
}

.benefit-icon {
    @apply w-8 h-8 rounded-lg flex items-center justify-center text-sm flex-shrink-0 mt-0.5;
}

/* Pricing card */
.pricing-card {
    @apply p-8 rounded-3xl bg-gradient-to-br from-white/10 to-white/5 border border-white/20 backdrop-blur-xl shadow-2xl shadow-black/50;
}
.pricing-card .halo { @apply absolute -inset-px rounded-3xl bg-gradient-to-r from-primary-500/20 via-pink-500/20 to-purple-500/20 blur-xl; }
.pricing-divider { @apply h-px w-full bg-gradient-to-r from-transparent via-white/10 to-transparent my-6; }

.quantity-btn {
    @apply w-12 h-12 bg-white/10 hover:bg-white/20 rounded-xl flex items-center justify-center border border-white/10 transition-all duration-200 hover:scale-105;
}

.feature-item {
    @apply flex items-center space-x-3 text-sm text-dark-300;
}

/* FAQ */
.faq-item {
    @apply rounded-xl border border-white/10 bg-white/5 backdrop-blur-sm overflow-hidden transition-all duration-200 hover:bg-white/10;
}

.faq-question {
    @apply w-full px-6 py-4 text-left font-semibold text-white cursor-pointer flex items-center justify-between list-none outline-none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    @apply text-2xl text-dark-400 transition-transform duration-200;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    @apply px-6 pb-4 text-dark-300 leading-relaxed;
}

/* Chat widget */
.chat-widget {
    @apply fixed bottom-6 right-6 z-50 flex items-center space-x-2 px-4 py-3 bg-gradient-to-r from-primary-500 to-primary-600 text-white font-semibold rounded-full shadow-lg shadow-primary-500/25 transition-all duration-200 hover:scale-105 hover:shadow-xl hover:shadow-primary-500/30;
}

/* Responsive design */
@media (max-width: 768px) {
    .step-card {
        @apply p-6;
    }
    
    .benefit-section {
        @apply p-4;
    }
    
    .pricing-card {
        @apply p-6;
    }
}

/* Smooth animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.thumbnail-card:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.thumbnail-card:nth-child(even) {
    animation: float 6s ease-in-out infinite 3s;
}

/* Gradient text utilities */
.gradient-text {
    @apply bg-gradient-to-r from-primary-400 via-pink-400 to-purple-400 bg-clip-text text-transparent;
}

/* Glass morphism effects */
.glass {
    backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(18, 19, 24, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    backdrop-filter: blur(20px) saturate(200%);
    background-color: rgba(18, 19, 24, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dialog styles with premium glass morphism design */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.show .dialog-container {
    transform: scale(1) translateY(0);
}

.dialog-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dialog close button */
.dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Dialog header */
.dialog-header {
    text-align: center;
    margin-bottom: 24px;
}

.dialog-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.2) 0%, rgba(255, 59, 92, 0.1) 100%);
    border: 1px solid rgba(255, 59, 92, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(8px);
}

.dialog-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dialog-subtitle {
    font-size: 16px;
    color: #9aa0a6;
    font-weight: 500;
}

/* Dialog body */
.dialog-body {
    margin-bottom: 32px;
}

/* Coupon section */
.coupon-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.coupon-code-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: rgba(255, 59, 92, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.1);
}

.copy-button {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.coupon-note {
    font-size: 14px;
    color: #9aa0a6;
    text-align: center;
    margin: 0;
}

/* Dialog footer */
.dialog-footer {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.dialog-cta {
    width: 100%;
    justify-content: center;
}

/* Responsive design for dialog */
@media (max-width: 640px) {
    .dialog-overlay {
        padding: 16px;
    }
    
    .dialog-content {
        padding: 24px;
    }
    
    .dialog-title {
        font-size: 24px;
    }
    
    .dialog-body p {
        font-size: 16px;
    }
    
    .dialog-footer {
        gap: 8px;
    }
}