/* Landing Page Specific Styles */

/* Navigation Bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(120deg, rgba(5, 6, 61, 0.96) 0%, rgba(17, 20, 90, 0.96) 45%, rgba(50, 0, 79, 0.96) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.75);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 32px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.nav-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: transform 0.3s;
}

.nav-link.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 96px;
    overflow-x: hidden; /* prevent right gap from positioned backgrounds */
    color: #f9fafb;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.10) 0%, transparent 55%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.28) 0%, transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    overflow: visible; /* avoid nested scroll */
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.25);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.cta-button.secondary {
    background: #1f2937;
    color: #f9fafb;
    border: none;
}

.cta-button.secondary:hover {
    background: #374151;
    color: #ffffff;
    transform: translateY(-3px);
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
	background: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible; /* avoid nested scroll */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
	color: #f9fafb;
    margin-bottom: 1.5rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
	color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.feature-card {
	background: #111827;
    padding: 2rem;
    border-radius: 15px;
	box-shadow: 0 12px 35px rgba(15, 23, 42, 0.8);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
	color: #f9fafb;
    margin-bottom: 0.5rem;
}

.feature-card p {
	color: #9ca3af;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
	background: transparent;
    overflow-x: hidden;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
	background: #7c3aed;
	color: #ffffff;
	border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
	color: #ffffff;
    margin-bottom: 0.5rem;
}

.step p {
	color: #a0aec0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
	background: transparent;
    text-align: center;
    color: white;
    overflow-x: hidden;
}

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

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA gradient card inside dark section, similar to React redesign */
.cta-section .container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1b214f 0%, #2b1b63 45%, #3a0b73 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

/* Footer */
.footer {
	background: #020617;
    color: white;
    padding: 3rem 2rem 1rem;
    overflow-x: hidden;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.7);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-col a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

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

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: linear-gradient(120deg, rgba(5, 6, 61, 0.98) 0%, rgba(17, 20, 90, 0.98) 45%, rgba(50, 0, 79, 0.98) 100%);
        padding: 0.6rem 0.75rem 0.75rem;
        border-radius: 0 0 16px 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }

    /* Hide Home text in collapsed state; show only when menu is open */
    .nav-link.nav-home {
        display: none;
    }

    .nav-link.nav-btn {
        padding: 0.45rem 1.1rem;
        border-radius: 999px;
    }

    /* Mobile dropdown menu rows */
    .nav-links .nav-link {
        display: block;
        width: 100%;
        padding: 0.6rem 0.9rem;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.96);
        color: #e5e7eb;
    }

    .nav-links .nav-link + .nav-link {
        margin-top: 0.3rem;
    }

    .nav-links .nav-link.nav-signin {
        background: rgba(15, 23, 42, 0.92);
    }

    .nav-links .nav-link.nav-cta {
        background: rgba(15, 23, 42, 0.96);
        color: #e5e7eb;
    }

    .main-nav.is-open .nav-link.nav-home {
        display: block;
    }

    .main-nav.is-open .nav-links {
        display: flex;
    }
    
    .hero-content {
        padding: 0 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 320px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
}

/* Minimal overrides for smoother visuals */
.cosmic-background .gradient-orb { opacity: 0.08; filter: blur(60px); }
.cosmic-background .stars { opacity: 0.06; }

/* Minimal stat cards (ensure subtle, consistent look) */
.stats-container { gap: 2rem; justify-content: center; flex-wrap: wrap; }
.stat-card { background: rgba(15, 23, 42, 0.94); border: 1px solid rgba(55, 65, 81, 0.9); border-radius: 18px; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9); padding: 1.75rem 2.25rem; backdrop-filter: blur(10px); }
.stat-number { color: #a855f7; font-weight: 800; }
.stat-label { color: #9ca3af; font-weight: 500; }

/* Prevent any nested vertical scrollbar on landing page */
body > nav.main-nav,
body > section,
body > footer {
  overflow-y: visible !important;
  max-height: none !important;
}

/* Remove any inner horizontal scrollbar on landing page */
body > * { overflow-x: clip !important; }
