:root {
    --bg: #ffffff;
    --bg-subtle: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
    --accent: #111827;
    --accent-muted: #374151;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #030712;
        --bg-subtle: #111827;
        --text: #f9fafb;
        --text-muted: #9ca3af;
        --accent: #f9fafb;
        --accent-muted: #d1d5db;
        --border: #1f2937;
        --card-bg: #111827;
        --header-bg: rgba(3, 7, 18, 0.8);
        --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    }
}

* { box-sizing: border-box; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
main.container, article.container { padding-top: 56px; padding-bottom: 64px; }

/* Typography */
h1, h2, h3 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 800; margin-bottom: 24px; }
h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 16px; }
.subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 32px; max-width: 600px; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; text-decoration: none; color: var(--accent); letter-spacing: -0.03em; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }

.social-links { display: flex; gap: 16px; align-items: center; }
.social-icon { color: var(--text-muted); font-size: 1.125rem; text-decoration: none; transition: var(--transition); }
.social-icon:hover { color: var(--accent); transform: translateY(-2px); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; font-size: 1.25rem; }

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
    background: var(--bg);
    flex-direction: column; padding: 32px 24px; gap: 24px;
    z-index: 90; overflow-y: auto;
}
#mobile-menu.active { display: flex; }
#mobile-menu a { font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--text); }

/* Hero & Categories */
.hero { padding: 80px 0 40px; }
.cat-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-badge {
    padding: 8px 18px; background: var(--bg-subtle);
    border: 1px solid var(--border); border-radius: 100px;
    text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.875rem;
    transition: var(--transition);
}
.cat-badge:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Video Grid */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.section-header h2 a { text-decoration: none; color: inherit; }
.section-header h2 a:hover { opacity: 0.7; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-bottom: 64px; }

.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: var(--transition); }
.card:hover .card-img-wrapper { transform: translateY(-4px); }
.card:hover .card-title { color: var(--accent); }

.card-img-wrapper { 
    position: relative; width: 100%; aspect-ratio: 16/9; 
    border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; 
    background-color: var(--bg-subtle); border: 1px solid var(--border);
    transition: var(--transition);
}
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition); }

.seo-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; max-width: 800px; }
.seo-text p { margin-bottom: 16px; }

/* Ad Banner & Video Embeds */
.video-wrapper { max-width: 900px; margin: 0 auto 40px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.content { font-size: 1.125rem; line-height: 1.8; color: var(--text); }
.content p { margin-bottom: 24px; }
.content ul { margin-bottom: 24px; padding-left: 24px; }
.content li { margin-bottom: 12px; }
.content h2, .content h3 { margin: 40px 0 24px; }

.promo-banner { background: linear-gradient(135deg, var(--bg-subtle), var(--card-bg)); border: 1px solid var(--border); border-radius: var(--radius); margin: 40px 0 64px; display: grid; grid-template-columns: 1.2fr 0.8fr; box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden; }
.promo-banner:hover { box-shadow: var(--shadow); border-color: #fca311; transform: translateY(-2px); }
.promo-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.promo-image { background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&q=80&w=800'); background-size: cover; background-position: center; min-height: 300px; }
.promo-brand { display: flex; align-items: center; margin-bottom: 24px; }
.promo-brand img { height: 28px; }
@media (prefers-color-scheme: dark) { .promo-brand img { filter: brightness(0) invert(1); } }
.promo-banner h3 { font-size: 2rem; font-family: 'Outfit', sans-serif; font-weight: 800; margin-bottom: 16px; color: var(--text); line-height: 1.2; }
.promo-banner p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.1rem; line-height: 1.6; }
.promo-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 32px; }
.promo-price .amount { font-size: 2.5rem; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--text); }
.promo-price .term { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.promo-price .badge { background: #fee2e2; color: #b91c1c; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-left: 8px; }
.promo-cta { background: #fca311; color: #111; text-decoration: none; padding: 16px 32px; border-radius: 100px; font-weight: 700; transition: var(--transition); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.promo-cta:hover { transform: scale(1.02); background: #f59e0b; }
@media (prefers-color-scheme: dark) { .promo-price .badge { background: rgba(239, 68, 68, 0.2); color: #fca5a5; } }
@media (max-width: 768px) { 
    .promo-banner { grid-template-columns: 1fr; }
    .promo-image { order: -1; min-height: 180px; }
    .promo-content { padding: 24px 20px; }
    .promo-banner h3 { font-size: 1.5rem; margin-bottom: 12px; }
    .promo-price { margin-bottom: 24px; flex-wrap: wrap; }
    .promo-price .amount { font-size: 2.2rem; white-space: nowrap; }
    .promo-cta { width: 100%; justify-content: center; }
}

/* Footer */
footer { padding: 64px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
    .nav-links, .social-links { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 48px 0 32px; }
    h1 { font-size: 2.25rem; }
}
