/* ===== Variables ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --accent: #06B6D4;
    --bg: #FAFAFA;
    --bg-dark: #0F172A;
    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Utility ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.4); }
.btn-outline {
    border: 2px solid var(--border);
    color: var(--text);
    background: var(--surface);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}
.logo-icon { color: var(--primary); font-size: 1.5rem; }
.logo-accent { color: var(--primary); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav a:hover { color: var(--primary); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #EEF2FF 0%, var(--bg) 100%);
}
.hero .container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }

/* Hero Visual */
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border);
}
.card-header { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.card-deal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.deal-info { flex: 1; }
.deal-name { font-size: 0.9rem; font-weight: 600; }
.deal-store { font-size: 0.75rem; color: var(--success); font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--text-light); font-size: 0.85rem; margin-right: 8px; }
.price-new { color: var(--success); font-weight: 700; font-size: 1.1rem; }

/* ===== Sections ===== */
.section-header { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Deals ===== */
.deals { padding: 100px 0; }
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.deal-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    transition: all var(--transition);
    color: var(--text);
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.deal-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}
.deal-card-img { font-size: 3rem; margin-bottom: 16px; }
.deal-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.deal-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.deal-card-pricing { margin-bottom: 16px; }
.deal-card-pricing .price-old { font-size: 0.9rem; }
.deal-card-pricing .price-new { font-size: 1.3rem; }

/* ===== Categories ===== */
.categories { padding: 80px 0; background: var(--surface-alt); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    transition: all var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.category-icon { font-size: 2.2rem; }
.category-name { font-size: 0.85rem; font-weight: 600; text-align: center; }

/* ===== How It Works ===== */
.how-it-works { padding: 100px 0; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step { text-align: center; flex: 1; max-width: 280px; }
.step-number {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }
.step-connector { width: 60px; height: 2px; background: var(--border); margin-top: 28px; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--surface-alt); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-toggle { font-size: 1.4rem; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #CBD5E1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 0.85rem; line-height: 1.7; color: #94A3B8; }
.footer-links h4 { color: #F1F5F9; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 0.85rem; color: #94A3B8; padding: 5px 0; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: #64748B; }
.affiliate-disclosure { margin-top: 8px; font-size: 0.75rem; color: #475569; }
.footer .logo { color: #F1F5F9; }

/* ===== Legal Pages ===== */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal-content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.legal-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { color: var(--text-muted); line-height: 1.75; margin-bottom: 6px; list-style: disc; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .deals-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero h1 { font-size: 2rem; }
    .deals-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .section-header h2 { font-size: 1.7rem; }
}
