/* ============================================
   EnigmaTV — Home / Landing Page Styles
   ============================================ */

:root {
    --bg: #06060b;
    --bg-2: #0c0c14;
    --bg-card: #11111b;
    --bg-card-hover: #16162a;
    --border: #1a1a2e;
    --border-light: #252545;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #c084fc;
    --accent-2: #a855f7;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-muted: #64748b;
    --text-faint: #475569;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(6, 6, 11, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}

.nav-brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-brand-text .tv {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; padding: 14px; font-size: 14px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(99, 102, 241, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.btn-premium {
    background: linear-gradient(135deg, var(--gold), #f97316);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, 0.08), transparent),
        radial-gradient(ellipse 50% 60% at 20% 80%, rgba(99, 102, 241, 0.06), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.hero-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(99, 102, 241, 0.12);
    top: 10%; left: 60%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px; height: 300px;
    background: rgba(168, 85, 247, 0.1);
    bottom: 20%; left: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px; height: 200px;
    background: rgba(245, 158, 11, 0.06);
    top: 50%; right: 10%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ef4444;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* TV Mockup */
.hero-visual {
    flex: 0 0 auto;
}

.tv-mockup {
    position: relative;
}

.tv-screen {
    width: 320px;
    height: 200px;
    background: var(--bg-2);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(99, 102, 241, 0.03);
}

.tv-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at 50% 45%, #0e0e1e, var(--bg));
}

.tv-logo-anim {
    height: 80px;
    opacity: 0.6;
    animation: tvFloat 4s ease-in-out infinite;
}

@keyframes tvFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-6px); opacity: 0.9; }
}

.tv-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.tv-bars i {
    display: block;
    width: 5px;
    background: var(--primary);
    border-radius: 2px;
    animation: tvVu 1.2s ease-in-out infinite;
}

.tv-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.tv-bars i:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.tv-bars i:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.tv-bars i:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.tv-bars i:nth-child(5) { height: 50%; animation-delay: 0.4s; }
.tv-bars i:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.tv-bars i:nth-child(7) { height: 35%; animation-delay: 0.6s; }

@keyframes tvVu {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.tv-stand {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
    opacity: 0.6;
}

/* ===== SECTIONS COMMON ===== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-light);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 12px;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.04), transparent),
        var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0 120px;
    background:
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(99, 102, 241, 0.06), transparent),
        var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.plan-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), var(--bg-card));
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.plan-popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-premium {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04), var(--bg-card));
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 100px;
    white-space: nowrap;
}

.premium-badge {
    background: linear-gradient(135deg, var(--gold), #f97316);
    color: #0a0a0f;
}

.plan-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-2);
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.plan-popular .price-amount {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-premium .price-amount {
    background: linear-gradient(135deg, var(--gold-light), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.plan-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.5;
    fill: none;
    stroke: currentColor;
}

.plan-features li.included svg { color: var(--success); }
.plan-features li.included { color: var(--text-2); }
.plan-features li.excluded svg { color: var(--text-faint); }
.plan-features li.excluded { color: var(--text-faint); }

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo {
    height: 50px;
    opacity: 0.5;
    margin-bottom: 8px;
}

.footer-brand-text {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.footer-brand-text .tv {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom p {
    color: var(--text-faint);
    font-size: 12px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.plan-card:nth-child(2) { transition-delay: 0.1s; }
.plan-card:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 6, 11, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.mobile-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 20px;
    }

    .nav-mobile-toggle { display: flex; }

    .hero { min-height: auto; padding: 100px 20px 60px; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .plan-popular { transform: none; }
    .plan-popular:hover { transform: translateY(-4px); }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
}
