/* RESET & VARS */
:root {
    /* REVOLUTION RED PALETTE */
    --quantum-black: #050000;
    /* Deep Red-Black */
    --quantum-bg: #2d0000;
    /* Dark Crimson */
    --quantum-cyan: #ffffff;
    /* White (replacing Cyan for contrast) */
    --quantum-magenta: #ff0000;
    /* Bright Red */
    --quantum-gold: #ffd700;
    /* Gold remains */
    --urgent-red: #ff3333;
    --text-white: #ffffff;
    --text-dim: #ffcccc;
    /* Pale Red text */

    --font-heading: 'Orbitron', 'Bodoni Moda', serif;
    --font-body: 'Montserrat', sans-serif;

    --glass-bg: rgba(40, 0, 0, 0.85);
    /* Red tinted glass */
    --glass-border: 1px solid rgba(255, 0, 0, 0.4);

    /* GLOWS */
    --cyan-glow: 0 0 10px rgba(255, 255, 255, 0.4);
    --magenta-glow: 0 0 20px rgba(255, 0, 0, 0.6);
    --gold-glow: 0 0 20px rgba(255, 215, 0, 0.5);
    --red-glow: 0 0 25px rgba(255, 0, 0, 0.8);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--quantum-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* NEW: Deep "Revolution" Red Gradient */
    background: radial-gradient(circle at 50% 30%, #500000 0%, #200000 60%, #000000 100%);
    background-attachment: fixed;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--quantum-gold);
    text-shadow: var(--gold-glow);
}

.cyan-text {
    color: var(--quantum-cyan);
    text-shadow: var(--cyan-glow);
}

.purple-text {
    color: var(--quantum-magenta);
    text-shadow: var(--magenta-glow);
}

.red-text {
    color: var(--urgent-red);
    text-shadow: var(--red-glow);
}

/* UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

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

/* STICKY HEADER */
.urgent-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Darker Red Bar */
    background: linear-gradient(90deg, #300, #900, #300);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    z-index: 1000;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulsate {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* HERO SECTION */
.hero-section {
    min-height: 50vh;
    /* Reduced from 100vh to fit content */
    padding-top: 140px;
    padding-bottom: 40px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Red-themed grid */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    z-index: 2;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    background: linear-gradient(to bottom, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    z-index: 2;
    max-width: 800px;
}

/* OFFER BOX */
.offer-box {
    background: var(--glass-bg);
    border: 1px solid var(--urgent-red);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
    /* Red Glow */
    padding: 40px;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(15px);
}

.offer-header {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    background: linear-gradient(to right, var(--quantum-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bill-container {
    margin: 30px 0;
    position: relative;
    display: inline-block;
}

.bill-img {
    max-width: 60%;
    /* Reduced from 100% */
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(255, 217, 0, 0.3);
    border: 1px solid var(--quantum-gold);
    transition: transform 0.3s ease;
}

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

.stock-bar-container {
    background: #111;
    height: 10px;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #333;
}

.stock-bar-fill {
    width: 7%;
    height: 100%;
    background: linear-gradient(90deg, #f00, #ff5500);
    box-shadow: 0 0 10px red;
    animation: flashBar 1s infinite alternate;
}

@keyframes flashBar {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.6;
    }
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.old-price {
    text-decoration: line-through;
    color: var(--urgent-red);
    font-size: 1.5rem;
}

.new-price {
    color: var(--quantum-gold);
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-heading);
    text-shadow: var(--gold-glow);
}

.cta-btn {
    display: block;
    width: 100%;
    /* REVOLUTION GRADIENT BUTTON: Red to Gold/White */
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* SECTIONS */
.section {
    padding: 90px 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.05);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.dark-card {
    background: rgba(20, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.icon-box {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 0, 0, 0.03);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    border-radius: 8px;
}

.feature-card:hover {
    border-color: var(--urgent-red);
    box-shadow: var(--red-glow);
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    background: #000;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #330000;
    font-size: 0.8rem;
    color: #777;
}

/* OVERLAYS */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

.overlay.active {
    display: flex;
}

.scan-circle {
    width: 120px;
    height: 120px;
    border: 4px solid transparent;
    border-top: 4px solid var(--urgent-red);
    border-right: 4px solid var(--quantum-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    margin-bottom: 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.console-text {
    font-family: 'Courier New', monospace;
    color: var(--urgent-red);
    font-size: 1.4rem;
    text-shadow: var(--red-glow);
}

.scan-progress {
    width: 400px;
    height: 6px;
    background: #222;
    margin-top: 25px;
    border-radius: 3px;
    overflow: hidden;
}

.scan-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--urgent-red), var(--quantum-gold));
    box-shadow: var(--red-glow);
    transition: width 0.2s;
}

.sale-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--urgent-red);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9000;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.sale-toast.show {
    transform: translateX(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .urgent-bar {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 5px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .grid-2,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .price-row {
        flex-direction: column;
        gap: 5px;
    }

    .new-price {
        font-size: 2.5rem;
    }

    .offer-box {
        padding: 20px;
    }

    /* RETENTION POPUP MOBILE */
    .retention-modal {
        padding: 20px !important;
    }

    .retention-modal h2 {
        font-size: 1.5rem !important;
    }

    .retention-modal p {
        font-size: 1rem !important;
    }
}