/* Core Custom Properties - Inspired by Official Pokémon GO Branding */
:root {
    --brand-blue-dark: #0a1128;
    --brand-blue-deep: #001f54;
    --brand-cyan: #00b4d8;
    --brand-teal: #00f5d4;
    --brand-accent-orange: #ff6b00;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    /* Layout Variables */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius-pill: 50px;
    --border-radius-box: 16px;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--brand-blue-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base Layout Constraints */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Revamped Navigation Bar - Bold Blue to Teal Gradient accents */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 180, 216, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-white);
    letter-spacing: -1px;
}

.logo .accent {
    color: var(--brand-cyan);
    background: linear-gradient(to right, var(--brand-cyan), var(--brand-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-bounce);
    position: relative;
    padding: 8px 0;
}

/* Interactive custom underline effect on hover */
.nav-links::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-teal);
    transition: var(--transition-bounce);
}

.nav-links:hover::after, .nav-links.active::after {
    width: 100%;
}

.nav-links:hover, .nav-links.active {
    color: var(--brand-teal);
}

/* Distinctive Pill Button for Web Store */
.btn-nav {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
    color: var(--brand-blue-dark) !important;
    padding: 12px 26px;
    border-radius: var(--border-radius-pill);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
}

.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
}

.btn-nav::after {
    display: none;
}

/* Mobile Layout Menu Trigger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 6px;
    padding: 10px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Immersive Hero Header Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
    background: radial-gradient(circle at 80% 30%, rgba(0, 180, 216, 0.25), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0, 245, 212, 0.15), transparent 50%),
                linear-gradient(180deg, #060b18 0%, var(--brand-blue-dark) 100%);
}

.hero-content {
    max-width: 680px;
    margin-left: max(0px, calc((100vw - 1200px) / 2));
    padding-left: 24px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 600px;
}

/* Bold UI Buttons Configuration */
.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 36px;
    border-radius: var(--border-radius-pill);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-bounce);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-accent-orange), #ff8800);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: translateY(-3px);
}

/* News Section Cards Grid Layout */
.news-preview {
    padding: 120px 0;
    background-color: #060b18;
    border-top: 2px solid rgba(0, 180, 216, 0.1);
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-cyan);
    border-radius: 2px;
}

.card {
    background: var(--brand-blue-deep);
    border: 1px solid rgba(0, 180, 216, 0.15);
    padding: 40px 32px;
    border-radius: var(--border-radius-box);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--brand-teal);
    box-shadow: 0 12px 30px rgba(0, 245, 212, 0.15);
}

.card-tag {
    align-self: flex-start;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-blue-dark);
    background: var(--brand-cyan);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.card-link {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.card-link:hover {
    text-decoration: underline;
}

/* Features Template Layout Elements */
.features-page {
    padding: 40px 0 120px;
    margin-top: 130px;
}

.feature-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 90px;
}

.page-title {
    font-size: 46px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 19px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--brand-cyan);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 17px;
}

.feature-visual {
    flex: 1;
}

/* Visual Placeholders built to look like vibrant app UI modules */
.visual-box {
    background: linear-gradient(135deg, #0d1b3e 0%, #050a18 100%);
    border: 2px solid rgba(0, 180, 216, 0.3);
    height: 340px;
    border-radius: var(--border-radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 40px rgba(0, 180, 216, 0.1);
}

/* Brand Footer Section */
.footer {
    text-align: center;
    padding: 50px 24px;
    background-color: #04070f;
    border-top: 2px solid rgba(0, 180, 216, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.footer-logo {
    display: block;
    width: min(180px, 60vw);
    height: auto;
    margin: 0 auto 18px;
}

/* Responsive Fluid Breakpoint Core Engine */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    /* Interactive Slide Down Menu Overlay */
    .nav-menu {
        position: absolute;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background: rgba(6, 11, 24, 0.98);
        width: 100%;
        height: calc(100vh - 90px);
        gap: 0;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        border-bottom: 2px solid rgba(0, 180, 216, 0.3);
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        display: block;
        padding: 30px 0;
        width: 100%;
        font-size: 20px;
    }
    
    .nav-links::after {
        display: none;
    }

    .btn-nav {
        margin: 24px auto;
        width: 70%;
    }

    /* Mobile hamburger button dynamic transformation states */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--brand-teal);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--brand-teal);
    }

    .hero {
        justify-content: center;
        text-align: center;
        padding-top: 160px;
    }

    .hero-content {
        margin-left: 0;
        padding-left: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }
    
    .visual-box {
        height: 280px;
    }
}

/* ==========================================================================
   UPDATED: Responsive Media & Visual Grid Engine
   ========================================================================== */

/* Universal Media Safety Handle */
img, video, canvas, svg, .visual-box {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures media fills the frame without stretching */
    object-position: center;
}

/* Fluid Responsive Grid Engine */
.grid-3 {
    display: grid;
    /* Uses auto-fit with minmax to dynamically calculate card sizing based on screen real estate */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
    width: 100%;
}

/* Fixed Card Proportion Sizing */
.card {
    background: var(--brand-blue-deep);
    border: 1px solid rgba(0, 180, 216, 0.15);
    padding: clamp(24px, 4vw, 40px); /* Fluid padding scaling from mobile to desktop */
    border-radius: var(--border-radius-box);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%; /* Ensures all cards in a row match height perfectly */
}

/* Updated Fluid Feature Rows */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 6vw, 80px); /* Dynamic spacing that shrinks gracefully */
    margin-bottom: clamp(60px, 10vw, 120px);
    width: 100%;
}

.feature-text {
    flex: 1;
    min-width: min(100%, 300px); /* Prevents textual squeezing */
}

/* Advanced Fluid Visual/Image Container */
.feature-visual {
    flex: 1;
    width: 100%;
    min-width: min(100%, 320px);
}

/* Revamped UI Visual Box / Image Frame */
.visual-box {
    background: linear-gradient(135deg, #0d1b3e 0%, #050a18 100%);
    border: 2px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--border-radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 40px rgba(0, 180, 216, 0.1);
    
    /* ASPECT RATIO FIX: Keeps the element perfectly scaled relative to its dynamic width */
    width: 100%;
    aspect-ratio: 16 / 10; 
    height: auto; /* Overrides previous absolute 340px block height */
}

/* ==========================================================================
   Adaptive Breakpoints Layout Engine Adjustments
   ========================================================================== */
@media (max-width: 968px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 60px;
        text-align: center;
    }

    .feature-text, .feature-visual {
        width: 100%; /* Forces elements to utilize maximum safe viewport container space */
    }

    .visual-box {
        /* Adjusts aspect ratio slightly for standard mobile viewports */
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   REVAMPED: Full-Background Hero Layout Engine
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 80px;
    
    /* Image Background Integration with Legibility Overlay */
    background: linear-gradient(180deg, 
                    rgba(10, 17, 40, 0.85) 0%, 
                    rgba(6, 11, 24, 0.75) 50%, 
                    rgba(4, 7, 15, 0.95) 100%),
                url('https://lh3.googleusercontent.com/lWZ2c25o8y_4pkaAwmlZbEhl1YHHGQOa7dEFpmozOnqmCcb-4zDMb4sIoHM0I6oJi7jqswaCflZjkDgbWoYbLmA3oBamglTiaI-uGui2ww=s0-e365');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Keeps it fluid on mobile devices */
    width: 100%;
}

/* Container limits structural width while text overlaps graphic background */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    z-index: 2; /* Ensures content stays safely in front of the graphic elements */
}

.hero-text {
    max-width: 680px;
    width: 100%;
}

/* Custom UI Badge */
.hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: var(--brand-teal);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.85); /* Slightly brighter for dark image backdrops */
    margin-bottom: 44px;
    max-width: 620px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Minor drop shadow to pull text away from background elements */
}

/* Bold Interactive Controls */
.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Mobile UI Positioning Update
   ========================================================================== */
@media (max-width: 968px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding-top: 160px;
    }

    .hero-container {
        justify-content: center;
    }

    .hero-text {
        max-width: 540px;
        padding: 0 12px;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* ==========================================================================
   UPDATED: Gaming Typography & Core Theme Configurations
   ========================================================================== */
:root {
    --brand-blue-dark: #0a1128;
    --brand-blue-deep: #001f54;
    --brand-cyan: #00b4d8;
    --brand-teal: #00f5d4;
    --brand-accent-orange: #ff6b00;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    /* Gaming Typography Stacks */
    --font-gaming-heading: 'Press Start 2P', 'Courier New', monospace;
    --font-modern-ui: 'Outfit', system-ui, -apple-system, sans-serif;
    
    --border-radius-pill: 50px;
    --border-radius-box: 16px;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Body Application */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: var(--font-modern-ui); /* Main fallback for clean readability */
    background-color: var(--brand-blue-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography Overrides for Gaming Aesthetic
   ========================================================================== */

.logo {
    font-family: var(--font-gaming-heading);
    font-size: 16px; /* Reduced pixel-size slightly to fit the layout bounds elegantly */
    letter-spacing: -0.5px;
}

.nav-links {
    font-family: var(--font-modern-ui);
    font-weight: 800;
    text-transform: uppercase;
}

.hero-badge {
    font-family: var(--font-modern-ui);
    font-weight: 900;
}

.hero-title {
    font-family: var(--font-gaming-heading);
    font-size: clamp(28px, 5vw, 48px); /* Calibrated specifically for broader pixel lettering */
    line-height: 1.3;
    letter-spacing: -1px;
}

.btn {
    font-family: var(--font-modern-ui);
    font-weight: 900;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-gaming-heading);
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.4;
}

.card h3 {
    font-family: var(--font-modern-ui);
    font-weight: 900;
}

.card-tag {
    font-family: var(--font-gaming-heading);
    font-size: 9px;
    border-radius: 4px;
}

.page-title {
    font-family: var(--font-gaming-heading);
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.4;
}

.feature-text h2 {
    font-family: var(--font-modern-ui);
    font-weight: 900;
}

.visual-box {
    font-family: var(--font-gaming-heading);
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
    padding: 0 16px;
}
