@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary: #ff5100;
    --primary-light: #ff7533;
    --primary-dark: #cc4100;
    --secondary: #ff8c00;
    --bg: #0a0b10;
    --bg-alt: #12141d;
    --card-bg: #1a1c26;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; text-align: center; }
h2 span { color: var(--primary); }
h3 { font-size: 1.5rem; margin-bottom: 16px; }

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 81, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 81, 0, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 81, 0, 0.05);
}

/* Header */
header {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    max-height: 44px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.ls-item {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.ls-item.active {
    background: var(--primary);
    color: white;
}

/* Hero */
.hero {
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 81, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-image-wrapper {
    margin-top: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 960px;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
    border: 1px solid var(--border);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* Grids */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-games {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.game-image {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

.game-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

/* Table */
.table-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary);
}

tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-question {
    padding: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question span {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    display: none;
    font-size: 1rem;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background: #050608;
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    margin-bottom: 28px;
    color: white;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.newsletter-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: white;
    flex: 1;
    font-family: inherit;
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 24px;
    align-items: center;
    filter: grayscale(1) opacity(0.5);
}

.footer-badges img {
    height: 30px;
}

/* Mobile Nav */
.nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; width: 30px; z-index: 1001; }
.hamburger span { width: 100%; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-alt);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 50px rgba(0,0,0,0.5);
    }
    .nav-toggle:checked ~ .nav-menu {
        right: 0;
    }
    .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-actions { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero { padding: 120px 0 60px; }
    h1 { font-size: 2.75rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}
