/* RappID App Showcase CSS - Dark Tactical Theme */

:root {
    --primary-neon: #38bdf8;
    --primary-blue: #2563eb;
    --bg-dark: #070a13;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-glow: rgba(56, 189, 248, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

body.rappid-page {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Grid & Gridlines Pattern Background */
.rappid-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

.rappid-mesh-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Navigation Overrides for Dark Page */
nav.dark-nav {
    background: rgba(7, 10, 19, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1) !important;
}
nav.dark-nav .nav-item {
    color: rgba(255, 255, 255, 0.8) !important;
}
nav.dark-nav .nav-item:hover,
nav.dark-nav .nav-item.dropdown:hover > span {
    color: var(--primary-neon) !important;
}
nav.dark-nav .logo span {
    color: #ffffff !important;
}

/* Dark Dropdown Menu */
nav.dark-nav .dropdown-content {
    background-color: #0d111d !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
nav.dark-nav .dropdown-content a {
    color: #94a3b8 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
nav.dark-nav .dropdown-content a:hover {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: var(--primary-neon) !important;
    padding-left: 20px !important;
}

/* Hero Section */
.rappid-hero {
    position: relative;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 90vh;
    z-index: 1;
}

.rappid-hero-content {
    max-width: 620px;
}

.rappid-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 100px;
    color: var(--primary-neon);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rappid-hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rappid-hero-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.rappid-hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-neon:hover {
    background: var(--primary-neon);
    color: #070a13;
    box-shadow: 0 4px 25px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.btn-dark-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-dark-outline:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    background: rgba(56, 189, 248, 0.05);
}

/* Phone Mockup Containers for Dark App Screens */
.tactical-phone {
    position: relative;
    width: 320px;
    height: 660px;
    background: #0d111d;
    border: 10px solid #1e293b;
    border-radius: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 40px var(--border-glow);
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.tactical-phone:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(56, 189, 248, 0.35);
}

/* Speaker Notch */
.tactical-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20;
}

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

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

/* Custom Floating HUD Labels */
.hud-tag {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--primary-neon);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Alternate Rows and Splits */
.rappid-showcase-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.rappid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rappid-split.reverse {
    direction: rtl;
}

.rappid-split.reverse .rappid-showcase-text {
    direction: ltr;
}

.rappid-showcase-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.rappid-showcase-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Features Grid */
.rappid-capabilities {
    padding: 120px 0;
    background: rgba(11, 15, 25, 0.4);
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rappid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.rappid-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rappid-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.05);
}

.rappid-card-icon {
    width: 54px;
    height: 54px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    margin-bottom: 24px;
}

.rappid-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.rappid-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* List details */
.rappid-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rappid-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.rappid-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.rappid-list li span {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rappid-list li span strong {
    color: #ffffff;
}

/* Animations */
.st-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

body.splash-done .st-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.st-delay-1 { animation-delay: 0.15s; }
.st-delay-2 { animation-delay: 0.3s; }
.st-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .rappid-hero-content h1 {
        font-size: 3rem;
    }
    .rappid-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .rappid-split.reverse {
        direction: ltr;
    }
    .rappid-showcase-text {
        text-align: center;
    }
    .rappid-list li {
        text-align: left;
    }
    .tactical-phone {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .rappid-hero-content h1 {
        font-size: 2.25rem;
    }
    .rappid-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- Splash Screen Intro & Video Transition --- */
.rappid-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #070a13;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    overflow: hidden;
}

.splash-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.skip-btn:hover {
    background: #38bdf8;
    color: #070a13;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

body.rappid-splash-active {
    overflow: hidden !important;
}

.rappid-splash-overlay.fade-out {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
    pointer-events: none;
}

/* Initially hide header navigation on load for splash */
nav.dark-nav {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.splash-done nav.dark-nav {
    opacity: 1;
}

/* Sound Toggle Button */
.rappid-splash-overlay .sound-btn {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rappid-splash-overlay .sound-btn:hover {
    background: #38bdf8;
    color: #070a13;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

@media (max-width: 576px) {
    .rappid-splash-overlay .skip-btn {
        bottom: 20px !important;
        right: 20px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
    .rappid-splash-overlay .sound-btn {
        bottom: 20px !important;
        left: 20px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
}
