/* ========================================
   PillPick — Premium Supplement Landing Page
   ======================================== */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #fafafa;
    --bg-alt: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    color: var(--primary);
}

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

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(99,102,241,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 160px 24px 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240,147,251,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(118,75,162,0.3) 0%, transparent 50%);
    opacity: 0.6;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-product {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Category Grid
   ======================================== */
.categories {
    padding: 100px 0;
    background: var(--bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ========================================
   Product Sections
   ======================================== */
.product-section {
    padding: 100px 0;
}

.product-section.alt-bg {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.info-banner {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--section-accent, var(--primary));
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.info-banner h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--section-accent, var(--primary));
}

.info-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   Product Cards
   ======================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.product-badge.best-seller {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7c2d12;
}

.product-badge.editors-pick {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--white);
}

.product-image-placeholder {
    height: 180px;
    background: var(--bg, linear-gradient(135deg, #667eea, #764ba2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-placeholder span {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: -1px;
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    width: fit-content;
}

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.product-features span {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 4px;
}

/* ========================================
   Disclaimer
   ======================================== */
.disclaimer-section {
    padding: 60px 0;
    background: var(--bg-alt);
}

.disclaimer-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.affiliate-disclosure {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 1.4rem;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand .logo-accent {
    color: #818cf8;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #818cf8;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card,
.step-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1), .category-card:nth-child(1), .step-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2), .category-card:nth-child(2), .step-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3), .category-card:nth-child(3), .step-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4), .category-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5), .category-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6), .category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }
.category-card:nth-child(9) { animation-delay: 0.45s; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 24px 80px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .info-banner {
        padding: 20px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .disclaimer-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .product-image-placeholder {
        height: 140px;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(99,102,241,0.2);
    color: var(--text);
}
