@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --chess-white: #f8f9fa;
    --chess-black: #121212;
    --chess-accent: #00ff00; /* Retro neon green */
    --chess-secondary: #ff003c; /* Retro neon red */
    
    --primary: var(--chess-white); 
    --primary-glow: rgba(248, 249, 250, 0.4);
    --secondary: var(--chess-accent); 
    
    --bg-dark: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.8);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* Chessboard pattern background, subtle */
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 75%, rgba(255,255,255,0.02)), 
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 75%, rgba(255,255,255,0.02));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Neon Text */
.neon-text-white {
    color: var(--chess-white);
    text-shadow: 0 0 5px var(--chess-white), 0 0 15px rgba(255,255,255,0.5);
}
.neon-text-green {
    color: var(--chess-accent);
    text-shadow: 0 0 5px var(--chess-accent), 0 0 15px var(--chess-accent), 0 0 30px var(--chess-accent);
}
.neon-text-red {
    color: var(--chess-secondary);
    text-shadow: 0 0 5px var(--chess-secondary), 0 0 15px var(--chess-secondary), 0 0 30px var(--chess-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--chess-white), var(--chess-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

section {
    padding: 8rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s, border-bottom 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image {
    position: relative;
    z-index: 10;
}

.hero-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), 0 0 60px rgba(0, 255, 0, 0.05);
    animation: float 5s ease-in-out infinite;
    border: 1px solid var(--glass-border);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    color: var(--chess-white);
    border: 2px solid var(--chess-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--chess-white);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0.5;
    transition: opacity 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.feature-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--primary);
}

.feature-card.white::before { background: var(--chess-white); }
.feature-card.white:hover::before { box-shadow: 0 0 15px var(--chess-white); }

.feature-card.green::before { background: var(--chess-accent); }
.feature-card.green:hover::before { box-shadow: 0 0 15px var(--chess-accent); }

.feature-card.red::before { background: var(--chess-secondary); }
.feature-card.red:hover::before { box-shadow: 0 0 15px var(--chess-secondary); }

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #fff;
}

.feature-card.white i { color: var(--chess-white); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.feature-card.green i { color: var(--chess-accent); text-shadow: 0 0 10px var(--chess-accent); }
.feature-card.red i { color: var(--chess-secondary); text-shadow: 0 0 10px var(--chess-secondary); }

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Showcase Section */
.showcase {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid, .showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-image { order: -1; }
    .showcase-image { order: -1; }
}

/* Apple App Store Badge */
.badge-appstore {
    display: inline-block;
    width: 230px;
    height: 71px;
    background-image: url("../images/appstore.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.badge-appstore:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

@media (max-width: 768px) {
    .badge-appstore {
        width: 194px;
        height: 60px;
        margin: 0 auto;
    }
}

/* Google Play Badge */
.badge-googleplay {
    display: inline-block;
    width: 230px;
    height: 71px;
    background-image: url("../images/google-play.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.badge-googleplay:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

@media (max-width: 768px) {
    .badge-googleplay {
        width: 194px;
        height: 60px;
        margin: 0 auto;
    }
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(0,0,0,0.5);
}

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

/* Live HUD Element Showcase */
.retro-hud {
    background: #000;
    border: 2px solid var(--chess-white);
    padding: 1.5rem;
    border-radius: 1rem;
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--chess-white);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.1), inset 0 0 15px rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Legal Pages */
.legal-page h1 { font-size: 3rem; }
.eula-box { background: var(--bg-card); border: 1px solid var(--chess-white); padding: 2rem; border-radius: 1rem; margin: 3rem 0; text-align: center; box-shadow: 0 0 15px rgba(255,255,255,0.1); }
