/* --- CSS Variables & Design System --- */
:root {
    --bg-dark: #0a0510;
    --bg-light: #160a22;
    --text-main: #ffffff;
    --text-muted: #a395b5;
    
    --primary: #8a2be2;      /* Deep Violet */
    --secondary: #00ffff;    /* Neon Cyan */
    --accent: #ff00ff;       /* Magenta */
    
    --success: #00e676;
    --danger: #ff1744;
    
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
    
    --glass-bg: rgba(22, 10, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Components --- */

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #ff00ff, #8a2be2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::after {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.7);
}

.cta-btn:active {
    transform: translateY(1px);
}

.cta-btn.small-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: auto;
}

.cta-btn.large-btn {
    font-size: 1.3rem;
    padding: 20px 40px;
}

.pulse-anim {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* --- Layout Sections --- */

/* Sticky Bar */
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    padding: 10px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.sticky-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.sticky-text .highlight {
    color: var(--secondary);
}

/* Purchase Popup */
.purchase-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 90;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.purchase-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.popup-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.popup-info p {
    margin: 0;
    font-size: 0.85rem;
}

.popup-name { color: var(--text-main); }
.popup-action { color: var(--text-muted); font-size: 0.8rem; }
.popup-time { color: var(--secondary); font-size: 0.75rem; margin-top: 2px !important; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-media-container {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    padding: 0 20px 40px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 106, 0.2);
    border: 1px solid rgba(255, 0, 106, 0.5);
    color: #ff3366;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-icon {
    font-size: 14px;
}

.headline {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stars-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    display: flex;
}

.stars .material-icons-round {
    font-size: 18px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.subheadline {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Pricing & Urgency */
.pricing-area {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sale-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--success);
}

.stock-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.trust-icons-small {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.trust-icons-small span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trust-icons-small .material-icons-round {
    font-size: 16px;
    color: var(--secondary);
}

/* Features */
.features {
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.icon-wrapper .material-icons-round {
    color: var(--secondary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Social Proof Visual */
.social-proof-visual {
    padding: 40px 20px;
    background: var(--bg-light);
}

.video-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 2px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button .material-icons-round {
    font-size: 40px;
    color: white;
}

.view-count {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.view-count .material-icons-round {
    font-size: 16px;
}

.testimonial {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.user-info strong {
    color: var(--secondary);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--success);
    background: rgba(0, 230, 118, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Final CTA */
.final-cta {
    padding: 80px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    min-width: 80px;
}

.time-box span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
}

.time-box label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

.colon {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-top: -20px;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.secure-checkout .material-icons-round {
    font-size: 16px;
    color: #4caf50;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

footer p {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* --- Global Navigation --- */
.main-nav {
    background: rgba(10, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo .material-icons-round {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* --- Storefront Grid --- */
.storefront-hero {
    background: radial-gradient(circle at 50% 0%, rgba(138,43,226,0.2) 0%, transparent 70%);
}

.product-grid-section {
    padding: 20px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.store-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.store-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.store-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card:hover .store-card-img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255,23,68,0.4);
}

.store-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.store-card-info .tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-row .sale-price {
    font-size: 1.5rem;
}

.price-row .original-price {
    font-size: 1rem;
}

/* --- Cart & Navigation --- */
.cart-icon-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-drawer {
    position: absolute;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-light);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.cart-overlay.show .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
}

.close-cart:hover {
    color: white;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    opacity: 0.7;
}

.remove-btn:hover {
    opacity: 1;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Checkout Page --- */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .checkout-container {
        grid-template-columns: 3fr 2fr;
    }
}

.checkout-form-section, .checkout-summary-section {
    padding: 30px;
}

.checkout-form-section h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.checkout-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: var(--font-stack);
    font-size: 1rem;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 12px;
}

.checkout-summary-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-info {
    flex-grow: 1;
}

.checkout-item-info strong {
    display: block;
    font-size: 0.9rem;
}

.checkout-item-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.checkout-item-price {
    font-weight: 800;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 10px;
}

.grand-total {
    font-size: 1.3rem;
    font-weight: 900;
}
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-media-container {
        height: 100vh;
        width: 50%;
    }
    
    .hero-overlay {
        background: linear-gradient(to right, var(--bg-dark), transparent);
        height: 100%;
        width: 50%;
        left: auto;
        right: 0;
    }
    
    .hero-content {
        width: 50%;
        margin-top: 0;
        padding: 40px 60px;
        text-align: left;
    }
    
    .stars-review, .price-tags, .stock-warning, .trust-icons-small {
        justify-content: flex-start;
    }
    
    .features, .final-cta {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-grid {
        flex-direction: row;
    }
    
    .social-proof-visual {
        display: flex;
        align-items: center;
        gap: 60px;
        justify-content: center;
    }
    
    .video-container {
        margin: 0;
    }
    
    .testimonial {
        text-align: left;
        margin: 0;
    }
    
    .user-info {
        align-items: flex-start;
    }
}
