:root {
    --bg-dark: #030305;
    --text-main: #ffffff;
    --text-muted: #8b8b9e;
    --primary: #00f2ff;
    --secondary: #bd00ff;
    --accent: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* Custom cursor base */
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.8;
    /* More breathable line-height */
    letter-spacing: 0.02em;
    /* Slight letter spacing for readability */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring::before,
.loader-ring::after {
    content: '';
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
}

.loader-ring::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: var(--secondary);
    animation: spin 2s linear infinite;
}

.loader-ring::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--accent);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cinematic Background - Infinite 3D Grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    transform-origin: top center;
    /* Transformation moved to JS for parallax */
    transform: perspective(500px) rotateX(60deg) translateY(-200px) translateZ(-200px);
    pointer-events: none;
    will-change: transform;
    /* Performance optimization */
}

@keyframes gridFlow {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(80px) translateZ(-200px);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 90%);
    z-index: -1;
    pointer-events: none;
}

/* Glitch Effect on Text */
@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
    }

    25% {
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
    }

    50% {
        text-shadow: 2px 0 var(--secondary), -2px 0 var(--primary);
    }

    75% {
        text-shadow: -2px 0 var(--secondary), 2px 0 var(--primary);
    }

    100% {
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
    }
}

/* Navbar - Minimalist Floating */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out);
}

.logo-container {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--primary));
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 3px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.logo:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary);
    transition: 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-glow-small {
    padding: 0.6rem 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary) !important;
    font-size: 0.85rem;
    transition: all 0.3s var(--ease-out);
}

.btn-glow-small:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(85px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 95px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 95px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(85px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 30px, 0);
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.version-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.version-badge,
.android-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.version-badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.android-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    position: relative;
    padding: 1.2rem 3rem;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s var(--ease-out);
    cursor: pointer;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Feature Grid - Minimal Cards */
.features {
    padding: 8rem 10%;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background: var(--primary);
    transition: 0.4s var(--ease-out);
}

.glass:hover {
    transform: translateY(-5px);
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass:hover::before {
    height: 100%;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary));
    opacity: 0.8;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Split Section */
.split-section {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 2rem 0;
}

.visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box-large {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px var(--secondary));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Tech Specs */
.specs-container {
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid var(--glass-border);
    position: relative;
}

.specs-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.spec-item {
    width: 200px;
}

.spec-item span {
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Tech Badges */
.tech-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: 0.3s;
}

.tech-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

/* Download Section - Hero Style */
.download-section {
    text-align: center;
    padding: 8rem 10%;
}

.glass-panel {
    background: transparent;
    border: none;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-panel h2 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.download-options {
    margin: 3rem 0;
}

.btn-mega {
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-mega:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(0, 242, 255, 0.4);
    background: var(--primary);
}

.download-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.download-divider span {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.download-divider span::before,
.download-divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--glass-border);
}

.download-divider span::before {
    right: 100%;
}

.download-divider span::after {
    left: 100%;
}

.store-links-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.store-badge {
    height: 60px;
    transition: 0.3s;
    border-radius: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.store-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.4));
    /* Indus Orange Glow */
}

/* Floating QR Code */
.floating-qr {
    position: absolute;
    right: -140px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center text and image */
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.qr-img {
    width: 100px;
    height: 100px;
}

.qr-label {
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive QR */
@media (max-width: 1100px) {
    .floating-qr {
        position: static;
        transform: none;
        margin: 2rem auto 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        flex-direction: row;
        padding: 0.8rem 1.5rem;
        width: fit-content;
    }

    .qr-label {
        color: white;
    }

    .qr-img {
        width: 60px;
        height: 60px;
        border-radius: 4px;
    }

    .glass-panel {
        position: relative;
        /* Context for absolute positioning */
    }
}

/* Screenshot Gallery */
.screenshot-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: nowrap;
    /* Force single row */
    overflow-x: auto;
    /* Allow scroll if needed on small screens */
    padding-bottom: 2rem;
    /* Space for scrollbar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Gallery */
.screenshot-grid::-webkit-scrollbar {
    height: 8px;
}

.screenshot-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.screenshot-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 250px;
    /* Fixed width for each item on desktop */
    max-width: 250px;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    /* Remove fixed height, let image dictate */
    position: relative;
    transition: 0.4s;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .screenshot-grid {
        justify-content: flex-start;
        /* Align left for scrolling */
        padding: 0 1rem 2rem;
    }

    .screenshot-item {
        flex: 0 0 70%;
        /* Show part of next image to encourage scroll */
        max-width: 300px;
    }
}



.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    border-color: var(--primary);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.placeholder-screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    font-family: var(--font-heading);
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
}

/* Privacy Section */
.glass-panel-wide {
    padding: 2rem;
    /* Reduced padding for mobile */
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.glass-panel-wide h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    /* Fluid size */
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.glass-panel-wide p {
    max-width: 800px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.privacy-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.privacy-item {
    border-radius: 4px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    width: 100%;
    /* Full width on mobile */
}

/* Visual Effects (Cyber Sphere) */
.hero-visual {
    display: none;
    /* Hide complex 3D visual on mobile for performance/space */
}

/* Glass Panel Mini (For floating cards) */
.glass-panel-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: 0.4s;
}

/* Footer Redesign */
footer {
    border-top: 1px solid var(--glass-border);
    background: black;
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 0 5% 4rem;
    /* Adjusted padding */
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}
}

/* Fluid Typography & Global Mobile Enhancements */
@media (max-width: 768px) {
    .glitch {
        font-size: clamp(2.5rem, 10vw, 4rem);
        /* Fluid Font Size */
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero {
        padding: 6rem 5% 0;
        /* Reduced side padding */
        min-height: auto;
        /* Allow content to dictate height */
        padding-bottom: 4rem;
    }

    .features {
        padding: 4rem 5%;
        /* More breathable padding */
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .split-section {
        flex-direction: column;
        gap: 3rem;
    }

    /* WE ENABLED GLASSMORPHISM FOR MOBILE - LOOKS SICK */
    .glass,
    .glass-panel,
    .glass-panel-wide,
    .screenshot-item,
    .store-links-container,
    .feature-card {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        background: rgba(20, 20, 30, 0.6) !important;
        /* Slightly darker for contrast */
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .background-grid {
        opacity: 0.15;
        /* SLightly visible */
    }

    .floating-qr {
        display: none !important;
    }
}