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

:root {
    --primary: #9D4EDD; /* Bright Purple */
    --primary-hover: #7B2CBF;
    --secondary: #E0AAFF;
    --bg: #2B2544; /* Dark Navy/Purple */
    --surface: #383158;
    --surface-light: #4A4273;
    --text: #F8FAFC;
    --text-muted: #CBD5E1;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Card/Feature Colors */
    --color-yellow: #FBBF24;
    --color-green: #34D399;
    --color-blue: #3B82F6;
    --color-red: #EF4444;
    --color-pink: #EC4899;
    --color-orange: #F97316;
    --color-teal: #14B8A6;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(157, 78, 221, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

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

.btn-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
}

/* Add a subtle background shape for hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157,78,221,0.2) 0%, rgba(43,37,68,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: var(--surface);
    border-radius: 24px;
    border: 2px dashed var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    transform: rotate(2deg);
}

.hero-img-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Content Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    color: #111827;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-card.yellow { background: var(--color-yellow); }
.game-card.green { background: var(--color-green); }
.game-card.blue { background: var(--color-blue); }
.game-card.red { background: var(--color-red); color: white; }

.game-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.game-card-icon {
    width: 250px;
    height: 150px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

.game-card-btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: inherit;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: var(--transition);
}

.game-card-btn:hover {
    border-color: currentColor;
    opacity: 0.8;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blob-icon {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: #111827;
    margin-bottom: 2rem;
    position: relative;
}

.blob-icon.pink {
    background: var(--color-pink);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-icon.orange {
    background: var(--color-orange);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-icon.teal {
    background: var(--color-teal);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Standard Section Layouts (About, How to Play) */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

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

.split-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.split-image {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 3rem;
}

/* Disclaimer Section */
.disclaimer-box {
    background: var(--surface);
    border-left: 4px solid var(--primary);
    padding: 2rem 3rem;
    border-radius: 0 24px 24px 0;
}

.disclaimer-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: #1F1B33; /* Slightly darker than bg */
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-col p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-yellow);
    padding-left: 5px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .split-section, .split-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-muted);
}

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

.testimonial-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-yellow);
}

.stars {
    color: var(--color-yellow);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-yellow);
    margin-top: 1rem;
}

/* Device Compatibility */
.device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.device-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.device-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-blue);
}

.device-icon {
    font-size: 3rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.device-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

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

@media (max-width: 768px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .device-grid {
        grid-template-columns: 1fr;
    }
}
