/* Global & Layout - Single Screen, No Scroll */
:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #38bdf8;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Hide body scrollbar */
}

#splash-screen {
    position: absolute;
    /* Fix to viewport */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 9999;
    transition: opacity 0.6s ease-out;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f172a;
    /* Fill viewport */
    overflow-y: auto;
    /* Enable scroll here */
    overflow-x: hidden;
}

/* Navbar Styles */
.nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Header Spinner Styles */
.nav-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.nav-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #818cf8;
    border-bottom-color: #38bdf8;
    animation: l1 1.5s infinite linear;
    box-sizing: border-box;
    z-index: 1;
    display: none;
    /* Hidden by default, toggled by JS */
}


.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    /* Align button vertically */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links a.active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-blue);
}

/* Header Open Button */
.nav-open-btn {
    background: linear-gradient(135deg, #38bdf8, #818cf8) !important;
    /* Force override generic link styles */
    border: none;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    color: white !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-open-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #38bdf8, #818cf8) !important;
}


/* Ambient Background Blobs */
.hero-blob {
    position: absolute;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

/* Container */
/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
}

/* Header Section Condensed */
.hero-section {
    text-align: center;
    margin-bottom: 2vh;
    /* Use VH for dynamic spacing */
    flex-shrink: 0;
    margin-top: 5px;
    /* Reduced top margin */
}

/* Logo & Loader Wrapper */
.loader-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
}

.logo-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1;
    /* Above loader background if any */
}

/* Spinner Ring around Logo */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #818cf8;
    border-bottom-color: #38bdf8;
    animation: l1 1.5s infinite linear;
    box-sizing: border-box;
}

/* Text Column */
.loader-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 2vh;
}

#loading-progress,
#loading-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

/* Typography */
h1 {
    font-size: 1.4rem;
    /* Adjusted for single line */
    font-weight: 800;
    line-height: 1.1;
    margin: 5px 0 10px 0;
    letter-spacing: -0.02em;
    white-space: nowrap;
    /* Force single line if space permits */
}

/* Responsive Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for mobile */
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for tablets */
    }
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for desktop */
    }
}

/* Enhanced Card Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.span-2 {
    grid-column: 1 / -1;
    /* Always span full width of the current grid */
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    /* Ensure title is left aligned inside card */
}

.card-content {
    font-size: 0.95rem;
    /* Larger, readable text */
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content ul {
    padding-left: 14px;
    margin: 0;
}

.footer-branding {
    margin-top: 2vh;
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

@keyframes l1 {
    100% {
        transform: rotate(1turn)
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Play Button */
#play-btn {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border: none;
    border-radius: 50px;
    padding: 15px 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px 0 20px 0;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

/* Footer */
.footer {
    position: relative;
    z-index: 20;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: auto;
    /* Push to bottom if flex container allows */
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}