/*
Theme Name: SmartX2 Premium
Theme URI: https://smartx2france.com
Author: SmartX2 France
Description: High-converting dark-mode IPTV subscription theme for SmartX2 France.
Version: 1.0.0
Text Domain: smartx2-iptv
*/

/* =============================================
   CSS VARIABLES & RESET
============================================= */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1c1c1e;
    --bg-card-hover: #252527;
    --color-purple: #7c3aed;
    --color-blue: #3b82f6;
    --color-gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
    --color-gold: #f59e0b;
    --color-gold-light: #fbbf24;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1da851;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #2d2d2d;
    --border-gold: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-gold: 0 0 30px rgba(245,158,11,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* =============================================
   LAYOUT UTILITIES
============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 80px 0; }
.section-alt { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 3rem; }

.badge {
    display: inline-block;
    background: var(--color-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* =============================================
   HEADER
============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}
.site-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.site-nav a:hover { color: var(--text-primary); }
.header-cta {
    background: var(--color-whatsapp);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.header-cta:hover { background: var(--color-whatsapp-dark); transform: translateY(-1px); }
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
/* Animated hamburger → X */
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown nav */
.mobile-nav {
    position: absolute;
    top: 100%;        /* directly below the header bar */
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}
.mobile-nav.is-open {
    max-height: 400px;
    padding: 1rem 1.5rem 1.25rem;
}
.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text-primary); }
.mobile-nav-whatsapp {
    background: var(--color-whatsapp) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px !important;
    text-align: center;
    font-weight: 700 !important;
    margin-top: 0.5rem;
    border-bottom: none !important;
    justify-content: center;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(59,130,246,0.1) 50%, rgba(10,10,10,0) 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 2.5rem;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.hero-stat i { color: var(--color-gold); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--color-purple);
    background: rgba(124,58,237,0.1);
}
.btn-primary {
    background: var(--color-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }

/* =============================================
   FEATURES STRIP
============================================= */
.features-strip { padding: 50px 0; background: var(--bg-secondary); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-item:hover {
    border-color: var(--color-purple);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.85rem; margin: 0; }

/* =============================================
   PRICING SECTION
============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-purple);
}
.pricing-card.featured {
    border: 2px solid var(--border-gold);
    background: linear-gradient(160deg, #1c1c1e, #1a1506);
    box-shadow: var(--shadow-gold);
    transform: scale(1.04);
}
.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 0 50px rgba(245,158,11,0.4);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    white-space: nowrap;
}
.pricing-duration {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.pricing-card.featured .pricing-price { color: var(--color-gold); }
.pricing-price sup { font-size: 1.5rem; vertical-align: super; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { margin-bottom: 2rem; text-align: left; flex: 1; }
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--color-whatsapp); font-size: 0.85rem; flex-shrink: 0; }
.pricing-card.featured .pricing-features li i { color: var(--color-gold); }
.pricing-cta { margin-top: auto; }
.btn-gold {
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    color: #000;
    font-weight: 800;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.5);
}

/* Pulse animation for featured button */
@keyframes pulse-gold {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.btn-pulse { animation: pulse-gold 2s infinite; }

/* =============================================
   INSTALLATION / DOWNLOAD SECTION
============================================= */
.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    transition: var(--transition);
}
.install-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}
.install-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.install-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.install-steps { margin: 1rem 0 1.5rem; }
.install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--color-gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   FAQ / ACCORDION
============================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active { border-color: var(--color-purple); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}
.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(124,58,237,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-purple);
    transition: var(--transition);
    font-size: 0.75rem;
}
.faq-item.active .faq-icon { background: var(--color-purple); color: #fff; transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner { padding: 0 1.5rem 1.25rem; }
.faq-answer p { margin: 0; font-size: 0.9rem; }

/* =============================================
   TUTORIAL SINGLE PAGE
============================================= */
.tutorial-header {
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(59,130,246,0.1));
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
}
.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.tutorial-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.15);
    color: var(--color-purple);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.download-box {
    background: var(--bg-card);
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.download-box-text h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.download-box-text p { margin: 0; font-size: 0.85rem; }
.tutorial-steps-list { counter-reset: step; margin: 2rem 0; }
.tutorial-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}
.tutorial-step:hover { border-color: var(--color-purple); }
.tutorial-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: var(--color-gradient);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.tutorial-sticky-cta {
    position: sticky;
    bottom: 80px;
    background: linear-gradient(135deg, #1a1506, #1c1c1e);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-gold);
    flex-wrap: wrap;
}

/* =============================================
   STICKY MOBILE CTA
============================================= */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: rgba(10,10,10,0.97);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}
.sticky-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-whatsapp);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; }
.footer-brand .site-logo { display: inline-block; margin-bottom: 0.5rem; }
.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { font-size: 0.9rem; color: var(--text-secondary); }
.footer-links ul li a:hover { color: var(--text-primary); }
.footer-seo {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 1rem;
}
.footer-seo p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-6px); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .install-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .site-nav, .header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    .site-header { position: sticky; top: 0; overflow: visible; } /* allow dropdown to overflow */
    .hero { min-height: 80vh; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .sticky-mobile-cta { display: block; }
    body { padding-bottom: 80px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 1rem; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}
