/* ============================================
   Virtua — Smart TV Player
   Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #0f0f18;
    --color-surface: #13131d;
    --color-surface-hover: #1a1a28;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-text: #e8e8ed;
    --color-text-secondary: #9a9ab0;
    --color-text-muted: #5e5e72;
    --color-accent: #00d4ff;
    --color-accent-glow: rgba(0, 212, 255, 0.15);
    --color-accent-dark: #00a3c7;
    --color-accent-2: #6c63ff;
    --color-accent-2-glow: rgba(108, 99, 255, 0.15);
    --color-success: #00e68a;
    --color-warning: #ffb800;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ── Background Patterns ── */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--accent {
    background: var(--color-accent-glow);
    top: -200px;
    right: -200px;
}

.bg-glow--purple {
    background: var(--color-accent-2-glow);
    bottom: -200px;
    left: -200px;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.navbar__brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar__brand span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar__links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--color-text);
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
    border-radius: 2px;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
    width: 100%;
}

.navbar__mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
}

.navbar__mobile-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 999;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform var(--transition);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    list-style: none;
}

.mobile-menu__links a {
    display: block;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-menu__links a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}

.hero__badge svg {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease;
}

.hero__title span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__tv-visual {
    margin-top: 60px;
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero__tv-frame {
    background: linear-gradient(145deg, var(--color-surface), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.hero__tv-screen {
    background: linear-gradient(135deg, #0d0d1a, #151528);
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero__tv-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(108, 99, 255, 0.08));
    z-index: 1;
}

.hero__tv-ui {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero__tv-ui-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero__tv-ui-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__tv-ui-item {
    width: 60px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero__tv-stand {
    width: 120px;
    height: 8px;
    background: var(--color-surface);
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-top: none;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-hover);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-header__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header__title span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header__description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 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(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.feature-card__icon svg {
    width: 26px;
    height: 26px;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card__description {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Alternate card color */
.feature-card--purple .feature-card__icon {
    background: var(--color-accent-2-glow);
    color: var(--color-accent-2);
}

.feature-card--green .feature-card__icon {
    background: rgba(0, 230, 138, 0.12);
    color: var(--color-success);
}

/* ── Compatibility Section ── */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.compat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.compat-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
}

.compat-card--highlight {
    border-color: rgba(0, 212, 255, 0.3);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), var(--color-surface));
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}

.compat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compat-card--highlight .compat-card__icon {
    color: var(--color-accent);
}

.compat-card__icon svg {
    width: 32px;
    height: 32px;
}

.compat-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.compat-card__description {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.compat-card--highlight .compat-card__description {
    color: var(--color-text-secondary);
}

/* ── CTA Section ── */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(108, 99, 255, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05), transparent 60%);
    animation: pulse-glow 6s ease-in-out infinite;
}

.cta-box__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box__description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ── Footer ── */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer__brand-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 14px;
    line-height: 1.65;
    max-width: 320px;
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__copyright {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer__bottom-links a {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer__bottom-links a:hover {
    color: var(--color-accent);
}

/* ── Legal / Prose Pages ── */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-page__header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-page__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.legal-page__title span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page__date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.legal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 860px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--color-text);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    padding-left: 24px;
    font-size: 0.95rem;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.legal-content strong {
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar__links {
        display: none;
    }

    .navbar__mobile-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-content {
        padding: 28px 20px;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__tv-ui-item {
        width: 40px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .compat-grid {
        grid-template-columns: 1fr;
    }
}
