/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --text: #0f172a;
    --text-light: #475569;
    --text-lighter: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --dark: #1e293b;
    --darker: #0f172a;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.logo-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(67, 125, 255, 0.3));
    transition: all 0.3s;
}

.nav-logo:hover .logo-svg {
    filter: drop-shadow(0 4px 8px rgba(67, 125, 255, 0.5));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
}

.hero-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    margin: 24px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(14, 165, 233, 0.5);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.stat:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0ea5e9;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 120px 24px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.features-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.decoration-circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: rotate 20s linear infinite;
}

.decoration-circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature {
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.2);
    background: white;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(14, 165, 233, 0.08);
    line-height: 1;
    transition: all 0.3s;
}

.feature:hover .feature-number {
    color: rgba(14, 165, 233, 0.15);
    transform: scale(1.1);
}

.feature-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-radius: 12px;
    margin-bottom: 20px;
    color: white;
    transition: all 0.3s;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Screenshots */
.screenshots {
    padding: 120px 24px;
    background: var(--bg-alt);
}

.screenshots-container {
    max-width: 1200px;
    margin: 0 auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    border: 2px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
    border-color: var(--primary);
}

.screenshot-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.screenshot-item:hover .screenshot-image {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.screenshots-empty {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

/* Games */
.games {
    padding: 120px 24px;
    background: var(--bg-alt);
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.game-card {
    padding: 24px 20px;
    background: white;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.game-icon {
    font-size: 32px;
    transition: transform 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(5deg);
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.game-card-more {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
    border-style: dashed;
}

.game-card-more:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
}

/* How it works */
.how {
    padding: 120px 24px;
    background: white;
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.how-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.how-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15);
}

.how-number {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.number-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s;
}

.how-step:hover .number-glow {
    opacity: 0.6;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.how-step:hover .step-icon {
    transform: scale(1.2);
}

.how-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.how-step p {
    color: var(--text-light);
}

.how-arrow {
    font-size: 32px;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Download */
.download {
    padding: 120px 24px;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-content > p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 48px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    opacity: 0.8;
}

.info-value {
    font-size: 20px;
    font-weight: 600;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.download-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--darker);
    color: white;
    padding: 64px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 2px 8px rgba(67, 125, 255, 0.4));
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
}

.footer-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-group a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .how-steps {
        flex-direction: column;
    }
    
    .how-arrow {
        transform: rotate(90deg);
    }
    
    .download-info {
        flex-direction: column;
        gap: 24px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 16px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-links {
        gap: 32px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature,
.game-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}
