/*
Theme Name: IPTV Hub Space
Theme URI: https://iptvhublive.space
Author: IP Nova Team
Description: Minimal Streaming UI
Version: 9.0
Text Domain: iptv-hub-space
*/

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: rgba(255,255,255,0.06);
    --text: #fff;
    --muted: #808080;
    --red: #e50914;
    --font: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: none; }
/* Googlebot / noscript fallback: ensure content is always visible */
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ═══ HEADER ═══ */
.header { position: fixed; top: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 68px; z-index: 1000; transition: background .3s; }
.header.scrolled { background: rgba(10,10,10,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo-wrapper { display: flex; align-items: center; gap: 10px; }
.logo-wrapper svg { filter: drop-shadow(0 0 6px rgba(229,9,20,.3)); }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo-text span { color: var(--red); }
.header nav { display: flex; align-items: center; gap: 32px; }
.header nav ul { list-style: none; display: flex; gap: 28px; }
.header nav ul a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.header nav ul a:hover { color: #fff; }
.nav-btn { font-size: 14px; font-weight: 600; color: #fff; background: var(--red); padding: 8px 20px; border-radius: 4px; transition: background .2s; }
.nav-btn:hover { background: #f40612; }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,.15) 0%, transparent 60%); }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 50%), linear-gradient(to bottom, rgba(10,10,10,.7) 0%, transparent 40%); }
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); line-height: 1.7; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-red { display: inline-block; padding: 14px 36px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; border-radius: 4px; transition: all .2s; }
.btn-red:hover { background: #f40612; transform: translateY(-1px); }
.btn-red.sm { padding: 12px 28px; font-size: 14px; }
.btn-outline { display: inline-block; padding: 14px 36px; border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: 15px; border-radius: 4px; transition: all .2s; }
.btn-outline:hover { border-color: #fff; }
.btn-outline.sm { padding: 12px 28px; font-size: 14px; }

/* ═══ STATS ═══ */
.stats-bar { display: flex; justify-content: center; gap: 48px; padding: 40px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sb-item { text-align: center; }
.sb-item strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.sb-item span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ═══ SECTIONS ═══ */
.section { padding: 100px 48px; }
.section-dark { background: var(--surface); }
.s-head { text-align: center; margin-bottom: 60px; }
.s-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; }
.s-head p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ═══ FEATURES ═══ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1000px; margin: 0 auto; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.feat { padding: 40px 32px; background: var(--bg); transition: background .3s; }
.feat:hover { background: var(--surface); }
.feat-num { font-size: 32px; font-weight: 900; color: var(--red); opacity: .3; margin-bottom: 16px; }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ═══ DEVICES ═══ */
.split { display: flex; align-items: center; gap: 60px; max-width: 1000px; margin: 0 auto; }
.split-text { flex: 1; }
.split-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.split-text p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.device-list { list-style: none; }
.device-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: rgba(255,255,255,.7); }
.device-list li:last-child { border: none; }
.split-img { flex: 1; position: relative; }
.dev-img { width: 100%; border-radius: 12px; }

/* ═══ STEPS ═══ */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 800px; margin: 0 auto; }
.step { text-align: center; flex: 1; padding: 24px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }
.step-line { width: 40px; height: 1px; background: var(--border); flex-shrink: 0; }

/* ═══ PRICING ═══ */
.cur-switch { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.cur-btn { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px 18px; border-radius: 6px; cursor: pointer; transition: all .3s; font-family: var(--font); }
.cur-btn:hover { border-color: rgba(255,255,255,.15); color: #fff; }
.cur-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.pay-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 32px; }
.price-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
.price-card {
    background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(16,16,16,1) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 32px;
    text-align: center;
    transition: all .4s cubic-bezier(.25,.8,.25,1);
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at top, rgba(229,9,20,.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s;
}
.price-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.price-card:hover::before { opacity: 1; }
.price-card.pop { border-color: var(--red); transform: scale(1.03); }
.price-card.pop:hover { transform: scale(1.03) translateY(-6px); }
.price-card.pop::before { opacity: 1; }
.pop-tag { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--red), #ff4444); font-size: 10px; font-weight: 700; padding: 6px 20px; border-radius: 0 0 8px 8px; letter-spacing: 1.5px; text-transform: uppercase; }
.price-card h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 2px; }
.price { font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 800; margin-bottom: 32px; background: linear-gradient(135deg, #fff, rgba(255,255,255,.8)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price span { font-size: 14px; font-weight: 400; -webkit-text-fill-color: var(--muted); }
.price-card ul { list-style: none; text-align: left; margin-bottom: 32px; }
.price-card ul li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: rgba(255,255,255,.7); }
.price-card ul li:last-child { border: none; }
.price-card .btn-red, .price-card .btn-outline { display: block; width: 100%; text-align: center; border-radius: 8px; }

/* ═══ FAQ ═══ */
.faq-list { max-width: 650px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 20px 0; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q span { font-size: 20px; color: var(--muted); transition: transform .3s; }
.faq-item.open .faq-q span { transform: rotate(45deg); color: var(--red); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-a a { color: var(--red); text-decoration: underline; }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--border); padding: 64px 48px 32px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto 48px; }
.f-logo { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.f-logo span { color: var(--red); }
.f-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 220px; }
.f-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: #fff; }
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 8px; }
.f-col ul li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.f-col ul li a:hover { color: #fff; }
.f-bottom { text-align: center; font-size: 12px; color: #444; border-top: 1px solid var(--border); padding-top: 24px; max-width: 1000px; margin: 0 auto; }
.f-contact { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; }
.f-contact svg { color: var(--red); flex-shrink: 0; }
.f-contact a { color: var(--muted); transition: color .2s; }
.f-contact a:hover { color: var(--red); }

/* ═══ SINGLE PAGE ═══ */
.page-hero { position: relative; height: 40vh; min-height: 280px; display: flex; align-items: flex-end; padding: 48px; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-inner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.article-wrap { max-width: 800px; margin: -40px auto 80px; padding: 0 24px; position: relative; z-index: 10; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 48px; }
.pseo-content h2, .pseo-content h3 { color: var(--red); margin: 32px 0 16px; }
.pseo-content p { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }

/* ═══ MOBILE NAV ═══ */
.mob-nav { display: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .price-row { grid-template-columns: 1fr; max-width: 400px; }
    .price-card.pop { transform: none; }
    .price-card.pop:hover { transform: translateY(-6px); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header { padding: 0 20px; height: 56px; }
    .header nav ul { display: none; }
    .section { padding: 80px 20px; }
    .mob-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; width: 100%; background: rgba(10,10,10,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 8px 0; z-index: 1000; }
    .mob-nav a { color: var(--muted); font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .mob-nav a.active { color: #fff; }
    .mob-nav a svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
    body { padding-bottom: 56px; }
    .hero h1 { font-size: 2.2rem; }
    .stats-bar { gap: 20px; }
    .sb-item { min-width: 40%; }
    .feat-grid { grid-template-columns: 1fr; }
    .split { flex-direction: column; gap: 40px; }
    .steps { flex-direction: column; gap: 12px; }
    .step-line { width: 1px; height: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; }
    .btn-red, .btn-outline { width: 100%; text-align: center; }
}
