/* EntroWare Redesign Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg: #050608;
    --bg-light: #10121A;
    --primary: #ffffff;
    --accent: #0084ff;
    --neutral: #a0b4c0;
    --text: #e6f2ff;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.spacer {
    flex: 1;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 6, 8, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background .3s ease;
}

.nav {
    display: flex;
    align-items: center;
    height: 72px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.4px;
}

.brand img {
    filter: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--neutral);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

.lang-btn img {
    display: block;
    border-radius: 2px;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: #0070d6;
    border-color: #0070d6;
    box-shadow: 0 5px 20px rgba(0, 132, 255, 0.3);
}

.btn-lg {
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
}

.btn-ghost {
    background: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5, 6, 8, 0.2) 0%, rgba(5, 6, 8, 0.8) 80%, var(--bg) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    color: var(--neutral);
    margin: 0 0 32px;
    max-width: 600px;
}

.cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Pricing Page */
.pricing-hero {
    padding: 160px 24px 100px;
    text-align: center;
}

.pricing-grid-by-game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.game-pricing-column {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    padding: 24px;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background .2s ease;
    position: relative;
}

.price-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.price-list .plan-name {
    font-weight: 600;
}

.price-list .plan-price {
    font-weight: 600;
    color: var(--primary);
}

.price-list .btn {
    height: 32px;
    padding: 0 16px;
}

.price-list li.popular {
    background: rgba(0, 132, 255, 0.1);
    border: 1px solid var(--accent);
}

.price-list .popular-badge {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 12px;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}


/* Key Features Section */
.key-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 100px 24px;
}

.feature-item {
    text-align: center;
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 12px;
    background: var(--bg-light);
}

.feature-item h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.feature-item p {
    margin: 0;
    color: var(--neutral);
}

/* Detailed Features Section */
.features-detailed {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 40px;
    margin: 0 0 12px;
}

.section-header .section-subtitle {
    font-size: 18px;
    color: var(--neutral);
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    border-radius: 10px;
    background: var(--bg-light);
    padding: 8px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--neutral);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--accent);
}

.tab-content {
    display: none;
    animation: fadeIn .4s ease;
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 12px;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.tab-content li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tab-content li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

.tab-content li strong {
    color: var(--primary);
}

.tab-content li span {
    color: var(--neutral);
}

.dma-notice {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 185, 0, 0.1);
    border: 1px solid rgba(255, 185, 0, 0.2);
    color: #ffb900;
    margin-bottom: 24px;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 200;
    backdrop-filter: blur(4px);
    background: rgba(5, 6, 8, 0.7);
}

.modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: min(600px, 90%);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
}

.icon-btn {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--neutral);
    font-size: 20px;
    cursor: pointer;
    transition: color .2s ease;
}

.icon-btn:hover {
    color: var(--primary);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.game-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: all .2s ease;
}

.game-btn:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(0, 132, 255, 0.1);
}

.game-name {
    font-size: 18px;
    font-weight: 600;
}

.updates-list {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.updates-list .product {
    padding: 16px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.updates-list .product+.product {
    margin-top: 16px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    color: var(--neutral);
    text-align: center;
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp .8s .2s ease-out forwards;
}

.hero-subtitle.animate-fade-in-up {
    animation-delay: .4s;
}

.cta.animate-fade-in-up {
    animation-delay: .6s;
}

.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 860px) {
    .key-features {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-link {
        display: none;
    }

    /* Hide text links on mobile */
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .pricing-grid-by-game {
        grid-template-columns: 1fr;
    }
}