/* ========================================
   GLAZIO IPTV — Landing Page Styles v2
   NexsenDev © 2026
   ======================================== */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #181818;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --red: #e50914;
    --red-dark: #b91c1c;
    --red-glow: rgba(229, 9, 20, 0.25);
    --red-light: #ff6b6b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* ======== NAVBAR ======== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    background: rgba(5, 5, 5, 0.6);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(5, 5, 5, 0.92);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.logo-glazio { font-size: 24px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-iptv { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: 3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--red); transform: scaleX(0);
    transition: transform 0.25s ease; border-radius: 1px;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.lang-btn {
    background: none; border: 1px solid var(--border); color: var(--text-tertiary);
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.lang-btn:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.lang-btn.active {
    background: var(--red); border-color: var(--red);
    color: white;
}
.lang-sep { color: var(--text-tertiary); font-size: 12px; }

.nav-right-mobile { display: none; align-items: center; gap: 12px; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.96); backdrop-filter: blur(24px);
    padding: 24px; flex-direction: column; gap: 20px; z-index: 99;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a { text-decoration: none; color: var(--text-secondary); font-size: 16px; font-weight: 500; }
.mobile-menu.open { display: flex; }

/* ======== HERO ======== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 120px 24px 80px; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, var(--red-glow) 0%, rgba(229,9,20,0.05) 40%, transparent 65%);
    opacity: 0.5; animation: heroGlow 6s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes heroGlow {
    from { transform: translateX(-50%) scale(0.85); opacity: 0.35; }
    to { transform: translateX(-50%) scale(1.15); opacity: 0.55; }
}
.hero-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute; width: 2px; height: 2px;
    background: rgba(229, 9, 20, 0.4); border-radius: 50%;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(229, 9, 20, 0.08); border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 100px; padding: 8px 20px;
    font-size: 13px; font-weight: 600; color: var(--red);
    margin-bottom: 32px; animation: fadeInUp 0.8s ease-out;
}
.badge-dot {
    width: 8px; height: 8px; background: var(--red);
    border-radius: 50%; animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: clamp(42px, 7vw, 76px); font-weight: 900;
    line-height: 1.02; margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title-line { display: block; color: var(--text-primary); }
.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 50%, #ffa07a 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 18px; color: var(--text-secondary); line-height: 1.7;
    max-width: 560px; margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-cta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red); color: white; text-decoration: none;
    padding: 16px 32px; border-radius: 100px;
    font-size: 15px; font-weight: 600; transition: var(--transition);
    border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover {
    background: var(--red-dark); transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--red-glow);
}
.btn-secondary {
    display: inline-flex; align-items: center; color: var(--text-primary);
    text-decoration: none; padding: 16px 32px; border-radius: 100px;
    font-size: 15px; font-weight: 600; border: 1px solid var(--border);
    transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: var(--border-hover); }
.hero-stats {
    display: flex; justify-content: center; align-items: center; gap: 40px;
    margin-top: 64px; animation: fadeInUp 0.8s ease-out 0.4s both;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-tertiary); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ======== FEATURES ======== */
.features { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: var(--red); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover {
    background: var(--bg-card-hover); transform: translateY(-4px);
    border-color: rgba(229,9,20,0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
    width: 48px; height: 48px; margin-bottom: 20px;
    background: rgba(229, 9, 20, 0.08); border: 1px solid rgba(229, 9, 20, 0.15);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.feature-icon-wrap svg { width: 24px; height: 24px; color: var(--red); }
.feature-card:hover .feature-icon-wrap {
    background: rgba(229, 9, 20, 0.15); transform: scale(1.05);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ======== HOW IT WORKS ======== */
.how-it-works { padding: 100px 0; background: var(--bg-secondary); }
.steps-grid {
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 32px; text-align: center;
    flex: 1; max-width: 280px; transition: var(--transition);
}
.step-card:hover { border-color: rgba(229,9,20,0.2); transform: translateY(-4px); }
.step-number {
    font-size: 48px; font-weight: 900; color: var(--red); opacity: 0.3;
    line-height: 1; margin-bottom: 16px;
}
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { color: var(--text-tertiary); flex-shrink: 0; }
.step-arrow svg { width: 32px; height: 32px; }

/* ======== SCREENSHOTS ======== */
.screenshots { padding: 120px 0; }
.screenshots-showcase { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; align-items: flex-end; }
.screenshot-card { text-align: center; transition: var(--transition); }
.screenshot-card.featured { transform: scale(1.08); }
.screenshot-card.featured .phone-frame { border-color: var(--red); }

.phone-frame {
    width: 200px; height: 420px;
    background: #0f0f0f; border-radius: 28px;
    border: 2px solid #2a2a2a; overflow: hidden;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 24px; background: #000; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
    width: 100%; height: 100%; padding: 36px 10px 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: linear-gradient(180deg, #0a0a0a, #111);
}
.mock-hero-img {
    height: 130px; border-radius: 10px;
    background: linear-gradient(135deg, #1a0a0c, var(--red-dark), #1a0a0c);
    opacity: 0.6;
}
.mock-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.8); padding: 2px 0; }
.mock-row { display: flex; gap: 6px; }
.mock-card { width: 55px; height: 72px; background: #1a1a1a; border-radius: 6px; flex-shrink: 0; }
.mock-player-bg {
    flex: 1; border-radius: 10px;
    background: linear-gradient(135deg, #111, #1a1a1a);
}
.mock-player-overlay {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 12px;
}
.mock-play-btn {
    width: 44px; height: 44px; border-radius: 50%; background: rgba(229,9,20,0.8);
    display: flex; align-items: center; justify-content: center;
}
.mock-play-btn svg { width: 20px; height: 20px; }
.mock-progress { width: 100%; height: 3px; background: #333; border-radius: 2px; }
.mock-progress-fill { width: 40%; height: 100%; background: var(--red); border-radius: 2px; }
.mock-settings-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.mock-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: #2a2a2a;
    margin-bottom: 8px;
}
.mock-settings-row {
    height: 32px; background: #1a1a1a; border-radius: 8px; margin-bottom: 6px;
}
.mock-settings-row.short { width: 60%; }
.screenshot-label {
    display: block; margin-top: 16px;
    font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

/* ======== TRUST BAND ======== */
.trust-band { padding: 80px 0; background: var(--bg-secondary); }
.trust-items { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-item svg { width: 36px; height: 36px; color: var(--red); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 16px; font-weight: 700; }
.trust-item span { font-size: 13px; color: var(--text-tertiary); }

/* ======== SUPPORT PAGE ======== */
.support-page {
    padding: 120px 24px 80px;
    min-height: 100vh;
    background: var(--bg-primary);
}
.support-hero {
    text-align: center;
    margin-bottom: 64px;
}
.support-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.support-hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}
.support-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
    padding-left: 4px;
    border-left: 3px solid var(--red);
    padding-left: 16px;
}
.support-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}
.support-faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}
.support-faq-card:hover {
    border-color: rgba(229,9,20,0.2);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}
.support-faq-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-faq-icon svg {
    width: 20px;
    height: 20px;
    color: var(--red);
}
.support-faq-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.support-faq-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.support-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.support-contact-card:hover {
    border-color: rgba(229,9,20,0.2);
    transform: translateY(-2px);
}
.support-contact-card .support-faq-icon {
    margin: 0 auto 16px;
}
.support-contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.support-contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.support-email-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 100px;
    border: 1px solid rgba(229,9,20,0.3);
    transition: var(--transition);
    margin-top: 12px;
}
.support-email-btn:hover {
    background: rgba(229,9,20,0.08);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--red-glow);
}

/* ======== DOWNLOAD ======== */
.download { padding: 120px 0; }
.download-card {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 24px;
    padding: 80px 40px; text-align: center; overflow: hidden;
}
.download-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 350px;
    background: radial-gradient(circle, var(--red-glow), transparent 60%);
    opacity: 0.25; pointer-events: none;
}
.download-card h2 {
    font-size: clamp(24px, 4vw, 36px); font-weight: 800;
    margin-bottom: 16px; position: relative;
}
.download-card p {
    font-size: 17px; color: var(--text-secondary);
    max-width: 500px; margin: 0 auto 40px; position: relative;
}
.btn-appstore {
    display: inline-flex; align-items: center; gap: 12px;
    background: white; color: #000; text-decoration: none;
    padding: 16px 32px; border-radius: 14px;
    transition: var(--transition); position: relative;
}
.btn-appstore:hover {
    transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.1);
}
.appstore-small { display: block; font-size: 11px; font-weight: 500; text-align: left; }
.appstore-big { display: block; font-size: 20px; font-weight: 700; text-align: left; }

/* ======== FOOTER ======== */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links a {
    display: block; font-size: 14px; color: var(--text-secondary);
    text-decoration: none; margin-bottom: 10px; transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-address { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }

/* ======== LEGAL PAGES ======== */
.legal-page { padding: 120px 24px 80px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.legal-page .legal-date { font-size: 14px; color: var(--text-tertiary); margin-bottom: 48px; }
.legal-page h2 {
    font-size: 22px; font-weight: 700; margin: 48px 0 16px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page h3 { font-size: 17px; font-weight: 600; margin: 24px 0 12px; }
.legal-page p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.legal-page strong { color: var(--text-primary); }
.legal-page .legal-alert {
    background: rgba(229,9,20,0.06); border: 1px solid rgba(229,9,20,0.18);
    border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.legal-page .legal-alert p { color: #fca5a5; margin-bottom: 0; }
.legal-page .legal-info {
    background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.18);
    border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.legal-page .legal-info p { color: #93c5fd; margin-bottom: 0; }
.legal-page .legal-code {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 24px; margin: 16px 0;
}
.legal-page .legal-code p { margin-bottom: 8px; color: var(--text-secondary); }
.legal-page .legal-code strong { color: var(--red); }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-right-mobile { display: flex; }
    .nav-toggle { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 24px; }
    .screenshots-showcase { gap: 16px; }
    .screenshot-card.featured { transform: scale(1); }
    .phone-frame { width: 160px; height: 340px; }
    .trust-items { flex-direction: column; gap: 32px; align-items: flex-start; padding: 0 24px; }
    .support-faq-grid { grid-template-columns: 1fr; }
    .support-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
}
