/* Optimized CSS for US Male Enhancement Market - Performance Enhanced */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables for Better Maintainability */
:root {
    --primary-red: #ff4444;
    --primary-red-light: #ff6666;
    --primary-red-dark: #ff2222;
    --success-green: #4CAF50;
    --success-green-dark: #45a049;
    --background-dark: #0a0a0a;
    --background-medium: #1a1a1a;
    --background-light: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #333333;
    --border-gray: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max-width: 1200px;
    --border-radius: 20px;
    --border-radius-large: 25px;
    --border-radius-pill: 50px;
    --transition: all 0.3s ease;
    --shadow-primary: 0 12px 35px rgba(255, 68, 68, 0.5);
    --shadow-success: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Base Typography */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--background-dark);
    overflow-x: hidden;
    font-display: swap;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-red);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-red);
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.large-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    color: var(--text-white);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 1.2s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 600;
    line-height: 1.4;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
    color: var(--text-white);
    padding: 18px 40px;
    border-radius: var(--border-radius-pill);
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
    box-shadow: var(--shadow-primary);
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
    color: var(--text-white);
    padding: 25px 55px;
    text-decoration: none;
    border-radius: var(--border-radius-pill);
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    will-change: transform;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(255, 68, 68, 0.6);
    background: linear-gradient(45deg, var(--primary-red-dark), var(--primary-red));
}

.cta-button.final {
    font-size: 1.5rem;
    padding: 28px 60px;
    margin: 2.5rem 0;
    background: linear-gradient(45deg, var(--primary-red-dark), var(--primary-red));
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: glow 2s infinite;
}

.guarantee {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 700;
}

/* Section Styles */
section {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-white);
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Pain Section */
.pain-section {
    background: #111;
    color: var(--text-white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3.5rem;
}

.pain-item {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    border: 3px solid var(--border-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.pain-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 68, 68, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pain-item:hover::before {
    opacity: 1;
}

.pain-item:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary-red);
    box-shadow: 0 25px 60px rgba(255, 68, 68, 0.3);
}

.pain-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.pain-item h3 {
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.pain-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Agitation Section */
.agitation-section {
    background: var(--background-dark);
    color: var(--text-white);
}

.consequences-list {
    list-style: none;
    margin: 2.5rem 0;
}

.consequences-list li {
    padding: 1.2rem 0;
    padding-left: 3rem;
    position: relative;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-gray);
    font-weight: 600;
}

.consequences-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.8rem;
}

.warning-text {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    border-left: 6px solid var(--primary-red);
    margin-top: 2.5rem;
    font-size: 1.3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

/* Solution Section */
.solution-section {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    color: var(--text-white);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(20px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.check {
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-section {
    background: #111;
    color: var(--text-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 4.5rem;
}

.testimonial {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    border: 3px solid var(--border-gray);
    transition: var(--transition);
    position: relative;
    will-change: transform;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 5rem;
    color: var(--primary-red);
    font-weight: bold;
}

.testimonial:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.testimonial p {
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 500;
}

.author {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    min-width: 220px;
    border: 2px solid rgba(255, 68, 68, 0.3);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 25px rgba(255, 68, 68, 0.4);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
}

/* Ingredients Section */
.ingredients-section {
    background: var(--background-dark);
    color: var(--text-white);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.ingredient-item {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-gray);
    transition: var(--transition);
    will-change: transform;
}

.ingredient-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--success-green);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.2);
}

.ingredient-item h3 {
    color: var(--success-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ingredient-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* Side Effects Section */
.side-effects-section {
    background: #111;
    color: var(--text-white);
}

.safety-intro {
    text-align: center;
    margin-bottom: 3.5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
    margin: 3.5rem 0;
}

.comparison-item {
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 3px solid;
}

.comparison-item.danger {
    background: rgba(255, 68, 68, 0.15);
    border-color: var(--primary-red);
}

.comparison-item.safe {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--success-green);
}

.comparison-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.side-effects-list,
.benefits-list {
    list-style: none;
    margin-top: 1.5rem;
}

.side-effects-list li,
.benefits-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
}

.side-effects-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.safety-guarantee {
    margin-top: 3.5rem;
}

.safety-box {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    border: 3px solid var(--success-green);
    text-align: center;
}

.safety-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--success-green);
    font-weight: 800;
    text-transform: uppercase;
}

.safety-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge {
    background: var(--success-green);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-large);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Scarcity Section */
.scarcity-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--text-white);
    padding: 70px 0;
}

.scarcity-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    border: 4px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
}

.scarcity-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.scarcity-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.timer-container {
    margin: 3rem 0;
}

.timer-label {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    min-width: 120px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.time-unit span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.time-unit label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-indicator {
    margin-top: 3rem;
}

.stock-bar {
    background: rgba(0, 0, 0, 0.5);
    height: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.stock-fill {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.stock-text {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 100%);
    color: var(--text-white);
    text-align: center;
}

.cta-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.price-box {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    margin: 3rem auto;
    max-width: 500px;
    border: 4px solid var(--primary-red);
    box-shadow: 0 20px 50px rgba(255, 68, 68, 0.3);
    animation: fadeInScale 1s ease-out;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.old-price span {
    font-size: 1.8rem;
}

.new-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--success-green);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 25px rgba(76, 175, 80, 0.4);
}

.savings {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.guarantees {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1.2rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.guarantee-icon {
    font-size: 1.5rem;
}

.final-warning {
    margin-top: 3rem;
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    background: rgba(255, 68, 68, 0.15);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-red);
    text-transform: uppercase;
}

/* FAQ Section */
.faq-section {
    background: var(--background-dark);
    color: var(--text-white);
}

.faq-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-gray);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.faq-item h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.faq-toggle {
    float: right;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #000;
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.disclaimer a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer a:hover {
    color: var(--primary-red-light);
    text-decoration: underline;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: var(--shadow-primary); }
    50% { transform: scale(1.08); box-shadow: 0 15px 40px rgba(255, 68, 68, 0.7); }
    100% { transform: scale(1); box-shadow: var(--shadow-primary); }
}

@keyframes glow {
    0% { box-shadow: var(--shadow-primary); }
    50% { box-shadow: 0 20px 50px rgba(255, 68, 68, 0.8); }
    100% { box-shadow: var(--shadow-primary); }
}

/* Enhanced Hover Effects */
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 350px;
    height: 350px;
}

/* Accessibility Improvements */
.cta-button:focus,
.testimonial:focus,
.pain-item:focus,
.ingredient-item:focus,
.faq-item:focus {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        gap: 2.5rem;
    }
    
    .timer {
        gap: 2rem;
    }
    
    .time-unit {
        min-width: 90px;
        padding: 1.5rem;
    }
    
    .time-unit span {
        font-size: 2.5rem;
    }
    
    .guarantees {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        padding: 20px 40px;
        font-size: 1.2rem;
    }
    
    .cta-button.final {
        padding: 22px 45px;
        font-size: 1.3rem;
    }
    
    .pain-item,
    .testimonial,
    .ingredient-item {
        padding: 2rem;
    }
    
    .scarcity-box {
        padding: 3rem;
    }
    
    .price-box {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

/* Performance Optimizations */
.hero::before,
.pain-item::before {
    will-change: opacity;
}

.cta-button,
.pain-item,
.testimonial,
.ingredient-item {
    will-change: transform;
}

/* Print Styles */
@media print {
    .hero,
    .scarcity-section,
    .final-cta-section {
        background: white !important;
        color: black !important;
    }
    
    .cta-button {
        background: #333 !important;
        color: white !important;
    }
}

