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

/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --text-primary: #111827;       /* Dark grey for high contrast */
    --text-secondary: #4b5563;     /* Muted body text */
    --text-muted: #9ca3af;
    --color-accent: #f97316;       /* Clean Orange */
    --color-accent-hover: #ea580c; /* Darker orange */
    --border-color: #e5e7eb;       /* Light grey border */
    --border-color-focus: #9ca3af;
    --font-primary: 'Barlow', sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    --max-width: 1100px;
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-condensed);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

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

section {
    padding: 7rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo svg {
    height: 28px;
    width: auto;
    fill: var(--text-primary);
    transition: fill var(--transition-speed);
}

.logo:hover svg {
    fill: var(--color-accent);
}

.logo-text {
    font-family: var(--font-condensed);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-speed);
}

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

/* Burger Menu for Mobile */
.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.game-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.game-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.game-title-img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.google-play-badge {
    display: inline-block;
    transition: transform var(--transition-speed);
}

.google-play-badge:hover {
    transform: scale(1.04);
}

.google-play-badge img {
    height: 52px;
    display: block;
}

/* Device Mockup (Landscape Phone) */
.screenshot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    background-color: #111827;
    border: 8px solid #1f2937;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Speaker & Camera notches for mockup */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 3px;
    height: 40px;
    background-color: #4b5563;
    border-radius: 2px;
    z-index: 10;
}

/* Game Features Section */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: -0.5rem auto 4rem auto;
    font-weight: 300;
}

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

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    background-color: var(--bg-primary);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    gap: 2rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    width: 100px;
    height: auto;
    fill: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.about-logo-wrapper:hover .about-logo {
    fill: var(--color-accent);
    opacity: 0.8;
    transform: scale(1.05);
}

/* Footer Section */
footer {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo svg {
    height: 24px;
    width: auto;
    fill: var(--text-muted);
}

.footer-logo span {
    font-family: var(--font-condensed);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-speed);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.85rem;
}

/* Subpage Styles (Privacy & Terms) */
.subpage {
    padding-top: 140px;
    min-height: 80vh;
}

.subpage-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subpage-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.subpage-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.subpage-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: left;
}

.subpage-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.subpage-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.subpage-content li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-accent);
    font-family: var(--font-condensed);
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color var(--transition-speed);
}

.back-link:hover {
    color: var(--color-accent-hover);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.5s ease;
        border-left: 1px solid var(--border-color);
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    /* Burger animation */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .google-play-badge img {
        width: 100%;
        height: auto;
    }
}
