/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.splash-logo {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.splash-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main Content Animation */
#app-content {
    opacity: 0;
    transition: opacity 1s ease;
}

#app-content.visible {
    opacity: 1;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links a {
    margin: 0 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* UI Mockup (CSS Drawing) */
.ui-mockup {
    background: var(--primary-light);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.ui-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.ui-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.ui-body {
    display: flex;
    gap: 1rem;
    height: 300px;
}

.ui-sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 100%;
}

.ui-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ui-card {
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 100%;
}

.ui-row {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.ui-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.ui-floating-card {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background: white;
    color: black;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    font-weight: 600;
}

.ui-floating-card i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--primary-light);
    position: relative;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.pricing-toggle span.active {
    color: var(--text-color);
    font-weight: 700;
}

.toggle-switch {
    width: 60px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    /* Start from Right (Monthly) */
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.toggle-switch.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
}

.toggle-switch.active::after {
    transform: translateX(-28px);
    /* Move Left (Yearly) */
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.price-card {
    background: var(--primary-light);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-smooth);
}

.price-card.featured {
    background: #1e293b;
    /* Slightly lighter */
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
    z-index: 2;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.price .currency {
    font-size: 1rem;
    vertical-align: top;
    margin-left: 5px;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li i {
    color: var(--accent-color);
}

.features-list li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.features-list li.disabled i {
    color: var(--text-muted);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        /* Dark background */
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
        animation: fadeIn 0.3s ease;
    }

    .nav-links a:not(.btn) {
        font-size: 1.1rem;
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-color);
    }

    .nav-links .mobile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        display: none;
        /* Hide buttons to save space */
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .ui-mockup {
        display: none;
    }

    .features-grid,
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .price-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .nav-actions {
        display: none;
    }
}