:root {
    --primary: #0088cc;
    --primary-glow: rgba(0, 136, 204, 0.5);
    --accent: #00d2ff;
    --dark-bg: #030712;
    --dark-card: rgba(17, 24, 39, 0.7);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1140px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Decorations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 { top: -200px; right: -100px; }
.blob-2 { bottom: -200px; left: -100px; width: 600px; height: 600px; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
    position: relative;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Super Hero Button - "Начать играть" */
.btn-primary.btn-large {
    background: linear-gradient(135deg, #0088cc 0%, #00d2ff 50%, #0088cc 100%);
    background-size: 200% auto;
    color: white;
    padding: 22px 60px;
    font-size: 1.4rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 136, 204, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseGlow 2s infinite, bgShift 4s linear infinite;
}

.btn-primary.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px -10px rgba(0, 136, 204, 1);
}

.btn-primary.btn-large:active {
    transform: translateY(-2px) scale(0.98);
}

/* "Забрать бонус" Button */
.btn-white {
    background: #ffffff;
    color: #030712;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    background: #f8fafb;
}

/* Header Button */
.btn-primary:not(.btn-large) {
    background: var(--primary);
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Outline Button */
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

/* Animations for Buttons */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 136, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

@keyframes bgShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Hero Section */
.hero {
    padding: 200px 0 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle, black, transparent 80%);
}

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

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(to right, #0088cc, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Section Common */
.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 64px;
    letter-spacing: -1px;
}

/* Features Cards */
.features { padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(17, 24, 39, 0.9);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Games Section */
.games {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.3);
}

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

.game-item {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.game-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.game-img {
    font-size: 4.5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

/* How it Works */
.how-it-works { padding: 100px 0; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 24px;
}

.step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Why TON Section */
.why-ton { padding: 100px 0; }
.info-content { max-width: 1000px; margin: 0 auto; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-item {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 16px;
}

.extra-text {
    background: rgba(0, 136, 204, 0.08);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--primary);
    margin-top: 56px;
    text-align: center;
}

/* FAQ */
.faq { padding: 100px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
}

/* Popular Queries Tags */
.popular-queries {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.queries-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Footer Fixes */
.footer {
    padding: 100px 0 60px;
    background: var(--dark-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    max-width: 300px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-nav-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col li {
    margin-bottom: 12px;
}

.footer-nav-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-main);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.75rem; letter-spacing: -1px; }
    .hero p { font-size: 1.1rem; }
    .nav-links { display: none; }
    .section-title { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; }
}
