@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Core Colors - Rankorama Theme */
  --bg-deep: #020617;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --primary: #8b5cf6; /* Vibrant Violet */
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #10b981; /* Emerald */
  --secondary-glow: rgba(16, 185, 129, 0.3);
  --accent: #f43f5e; /* Rose */
  --white: #f8fafc;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-surface: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Fonts */
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  
  /* Spacing & Misc */
  --gap: 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1200px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══ RESET & BASE ═══ */
*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-deep); 
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { 
    font-family: var(--font-display); 
    color: var(--white); 
    font-weight: 700; 
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ═══ COMPONENTS ═══ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px var(--primary-glow);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

@media (max-width: 600px) {
    .glass-card {
        padding: 20px;
        border-radius: var(--radius-sm);
    }
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
}

/* ═══ LAYOUT SECTIONS ═══ */

/* Age Bar */
.age-bar {
    background: #000;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    border-bottom: 1px solid var(--primary);
    line-height: 1.4;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

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

.mobile-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-deep);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .mobile-btn {
        display: block;
        z-index: 1002;
    }
    
    .header-actions .btn-primary {
        display: none; /* Hide top recommended on small screens to save space */
    }
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hero-tag {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px border var(--primary);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 48px;
    justify-content: center;
}

.stat-item {
    flex: 1;
    min-width: 140px;
}

.stat-item h3 { color: var(--secondary); font-size: 1.8rem; }
.stat-item p { font-size: 0.85rem; color: var(--text-dim); }

@media (max-width: 600px) {
    .hero-stats {
        gap: 20px;
    }
    .stat-item {
        min-width: 120px;
    }
}

/* Games Section */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 span { color: var(--primary); }

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

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 100%);
    z-index: 2;
}

.game-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

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

.feature-card {
    padding: 40px;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary);
}

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

.faq-item {
    margin-bottom: 16px;
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .faq-trigger {
        padding: 16px;
        font-size: 1rem;
    }
    .faq-item.open .faq-content {
        padding: 16px;
    }
}

.faq-item.open .faq-content {
    max-height: 500px;
    padding: 24px;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

.footer-h {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Utils */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Responsive animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeInUp 0.8s forwards; }
