/* Real Racing 3 Mod APK - Modern Design System */
:root {
    /* Base Colors - Deep Dark */
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #737373;

    /* Neon Accents */
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-pink: #ff0055;
    --neon-yellow: #fcee0a;
    --neon-green: #00ff9d;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --grad-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    --grad-text: linear-gradient(to right, #ffffff, var(--neon-cyan));

    /* Borders & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-purple: 0 0 20px rgba(157, 0, 255, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
}

/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

h2 {
    font-size: 2.5rem;
    margin-top: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

h3 {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-top: 1.5rem;
}

p,
ul,
ol {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* 2. Layout Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    padding: 2rem 0;
}

/* 3. Navigation - Glassmorphism */
header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: var(--neon-yellow);
    text-shadow: 0 0 15px rgba(252, 238, 10, 0.4);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 2rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--neon-cyan);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--neon-cyan);
    }
}

/* 4. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 1.5rem 60px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05), transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--neon-purple);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

/* Animations included here for cleaner HTML */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero-stats,
.btn-download {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero p {
    animation-delay: 0.2s;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-stats {
    animation-delay: 0.3s;
}

.btn-download {
    animation-delay: 0.4s;
}

/* 5. Components */

/* Trust Badges - Row */
.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.trust-badge .icon {
    font-size: 1.1rem;
}

/* Download Button - Primary CTA */
.btn-download {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--grad-primary);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    margin-top: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(157, 0, 255, 0.4);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Bullet Highlights in Hero */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
}

.stat-item:hover {
    border-color: var(--neon-green);
    color: #fff;
}

.stat-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* Tech Specs Grid - Modern Card */
.tech-specs-container {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: -60px;
    /* Overlap hero slightly or just connect */
    position: relative;
    z-index: 10;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.tech-spec-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-spec-item:last-child {
    border-right: none;
}

.tech-spec-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.tech-spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* Content Cards (Feature Grid, Pros/Cons) */
.info-box,
.feature-card,
.sys-req-box,
.pros-box,
.cons-box {
    background: var(--bg-glass);
    border: var(--border-glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover,
.sys-req-box:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-grid,
.pros-cons-grid,
.sys-req-container {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sys-req-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pros-cons-grid {
    grid-template-columns: 1fr 1fr;
}

/* Comparison Table - Matrix Style */
.comparison-table-container {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--bg-card);
    border: var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table .feature-col {
    text-align: left;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.01);
}

.yes-icon {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.no-icon {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* FAQ Accordion Look (static for now but styled) */
.faq-item {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--neon-purple);
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about h4 {
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    transition: padding-left 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}

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

/* Utility for Lists */
ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tech-specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-spec-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .tech-spec-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .pros-cons-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding-top: 100px;
    }
}