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

:root {
    --primary: #16A34A;
    --secondary: #0284C7;
    --accent: #EA580C;
    --trust: #0284C7;
    --warning: #DC2626;
    --dark: #1A1A2E;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
}

html { scroll-behavior: smooth; }

body { 
    font-family: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif; 
    color: var(--dark); 
    line-height: 1.75; 
    background: var(--white); 
}

a { text-decoration: none; color: var(--secondary); transition: all 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* NAV */
.nav { 
    background: var(--white); 
    border-bottom: 1px solid var(--border); 
    padding: 1rem 2rem; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.nav-brand { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--primary); 
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.nav-links a { 
    color: var(--dark); 
    font-weight: 500; 
    font-size: 0.95rem; 
    padding: 0.3rem 0; 
    border-bottom: 2px solid transparent; 
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { 
    background: linear-gradient(135deg, #dcfce7 0%, #dbeafe 50%, #fef3c7 100%); 
    padding: 5rem 2rem 4rem; 
    text-align: center; 
}

.hero h1 { 
    font-size: 2.8rem; 
    color: var(--dark); 
    max-width: 900px; 
    margin: 0 auto 1rem; 
    line-height: 1.2; 
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p { font-size: 1.25rem; color: var(--gray); max-width: 650px; margin: 0 auto 2rem; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* BUTTONS */
.btn { 
    display: inline-block; 
    padding: 0.9rem 2rem; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1rem; 
    transition: all 0.3s; 
    cursor: pointer; 
    border: none; 
    text-align: center; 
}

.btn-primary { 
    background: var(--accent); 
    color: var(--white); 
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover { 
    background: #C2410C; 
    color: var(--white); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4); 
}

.btn-green { background: var(--primary); color: var(--white); }
.btn-green:hover { background: #15803D; color: var(--white); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* SECTIONS */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--light); }

.section-title { 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 0.5rem; 
    color: var(--dark); 
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle { 
    text-align: center; 
    color: var(--gray); 
    margin-bottom: 3rem; 
    font-size: 1.15rem; 
}

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.card { 
    background: var(--white); 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s; 
    border: 1px solid var(--border); 
}

.card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.12); 
}

.card-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; color: var(--dark); font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* PRODUCT CARDS */
.product-card {
    position: relative;
}

.product-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #F3F4F6;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.product-badge.hot {
    background: var(--warning);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price-box {
    margin: 1rem 0;
}

.price-compare {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
}

.new-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.discount-badge {
    background: #DCFCE7;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.prime-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #E0F2FE;
    color: #0369A1;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rating-details {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.stock-alert {
    background: #FEF2F2;
    color: #991B1B;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0;
    text-align: center;
}

/* URGENCY BOX */
.urgency-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.badge-hot {
    background: var(--warning);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* COMPARISON TABLE */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
}

.comparison-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table tr:hover {
    background: #F0FDF4;
}

.comparison-table .best-choice {
    background: #DCFCE7;
}

/* TESTIMONIALS */
.testimonial { 
    background: var(--white); 
    border-radius: 16px; 
    padding: 2rem; 
    border-left: 4px solid var(--primary); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-info {
    flex: 1;
}

.testimonial p { 
    font-style: italic; 
    color: var(--dark); 
    margin-bottom: 1rem; 
    font-size: 0.95rem; 
}

.author { 
    font-weight: 700; 
    color: var(--primary); 
    font-size: 0.9rem; 
    display: block;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #DCFCE7;
    color: #166534;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* QUIZ SECTION */
.quiz-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: #F0FDF4;
}

.quiz-option.selected {
    border-color: var(--primary);
    background: #DCFCE7;
}

.quiz-progress {
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

/* CALCULATOR */
.calculator-box {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-input {
    margin-bottom: 1.5rem;
}

.calculator-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.calculator-input input,
.calculator-input select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-input input:focus,
.calculator-input select:focus {
    outline: none;
    border-color: var(--primary);
}

.calculator-result {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.calculator-result h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.calculator-result .dosage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
}

/* EMAIL POPUP */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.popup-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.popup-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

.popup-form input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

/* CTA SECTION */
.cta-section { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    padding: 4rem 2rem; 
    text-align: center; 
    color: var(--white); 
    border-radius: 0; 
}

.cta-section h2 { 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    color: var(--white);
    font-weight: 800;
}

.cta-section p { 
    font-size: 1.15rem; 
    margin-bottom: 2rem; 
    opacity: 0.95; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    margin-bottom: 2rem; 
}

.cta-section .btn-primary { 
    background: var(--accent); 
    color: var(--white); 
    font-size: 1.15rem; 
    padding: 1.1rem 2.5rem; 
}

/* FOOTER */
.footer { 
    background: var(--dark); 
    color: #9CA3AF; 
    padding: 3rem 2rem 1.5rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    max-width: 1100px; 
    margin: 0 auto 2rem; 
}

.footer h4 { 
    color: var(--white); 
    margin-bottom: 1rem; 
    font-size: 1rem; 
}

.footer a { 
    color: #9CA3AF; 
    display: block; 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
}

.footer a:hover { color: var(--accent); }

.footer-bottom { 
    text-align: center; 
    padding-top: 1.5rem; 
    border-top: 1px solid #374151; 
    font-size: 0.85rem; 
    max-width: 800px; 
    margin: 0 auto; 
}

.footer-disclaimer { 
    font-size: 0.75rem; 
    color: #6B7280; 
    margin-top: 1rem; 
    line-height: 1.5; 
}

/* BACK TO TOP */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    z-index: 999;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: #15803D;
    transform: translateY(-4px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: white; 
        padding: 1rem; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    }
    .hero-stats { gap: 1rem; }
    .comparison-table { font-size: 0.85rem; }
}
