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

:root {
    --bg-color: #080b11;
    --card-bg: rgba(13, 18, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-cyan: #00f2fe;
    --accent-purple: #9b51e0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --glow-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    --glow-shadow-hover: 0 0 30px rgba(0, 242, 254, 0.35);
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow blobs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

body::before {
    top: -200px;
    left: -200px;
    background: var(--accent-cyan);
}

body::after {
    bottom: -200px;
    right: -200px;
    background: var(--accent-purple);
}

/* Header / Navbar */
header {
    width: 100%;
    padding: 24px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color var(--transition-speed);
}

nav a:hover, nav a.active {
    color: var(--accent-cyan);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 60px auto;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Games Grid */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

/* Game Card */
.game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    backdrop-filter: blur(16px);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: var(--glow-shadow-hover);
}

.game-banner {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-icon-overlay {
    position: absolute;
    bottom: -24px;
    left: 24px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background-size: cover;
}

.game-info {
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.game-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    margin-top: 8px;
}

.game-genre {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-card {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.btn-card svg {
    transition: transform var(--transition-speed);
}

.game-card:hover .btn-card svg {
    transform: translateX(4px);
}

/* Legal / Doc Layout */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-sidebar {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(12px);
}

.legal-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.legal-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-speed);
}

.legal-menu a:hover, .legal-menu a.active {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 48px;
    backdrop-filter: blur(16px);
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-date {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

/* 30 Minute Defense Landing Page */
.game-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.game-hero-graphics {
    position: relative;
    width: 100%;
}

.game-hero-banner {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--glow-shadow);
}

.game-hero-icon {
    position: absolute;
    bottom: -32px;
    left: 32px;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 3px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.game-hero-info h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.game-hero-info .tagline {
    font-size: 20px;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    font-weight: 600;
}

.game-hero-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-gradient);
    color: #05050a;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.store-btn.alt {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.store-btn.alt:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.feature-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    width: 100%;
    padding: 48px 6%;
    background-color: #04060b;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .legal-sidebar {
        position: static;
    }
    .game-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .game-hero-icon {
        position: static;
        margin: 20px auto 0;
    }
    .store-buttons {
        justify-content: center;
    }
}
