/* Navigation - Mobbin Inspired (Thicker, Cleaner, Narrower) */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 850px;
    z-index: 100;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

/* Fix for animation overriding the centering transform */
.navbar.reveal {
    transform: translate(-50%, 30px);
}
.navbar.reveal.active {
    transform: translate(-50%, 0);
}

.nav-logo {
    flex: 1;
    padding-left: 0.5rem;
    font-weight: 700;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.nav-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Header Button - Finex Secondary Style */
.nav-btn-flux {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.4rem;
    text-decoration: none;
}

.nav-btn-flux:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    transform: scale(1.02);
}

.nav-btn-flux svg {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.nav-btn-flux:hover svg {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 80px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-size: 0.65rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: static-blink 3s infinite;
}

@keyframes static-blink {
    0%, 40%, 60%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent-primary); }
    50% { transform: scale(0.8); opacity: 0; box-shadow: none; }
}

/* Finex DS Primary Button (Start Free) */
.btn-finex-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: transparent;
    text-decoration: none;
}

.btn-finex-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px -10px var(--accent-primary-glow);
}

.btn-finex-primary .beam-border {
    position: absolute;
    inset: 0;
    z-index: -20;
    border-radius: 9999px;
    overflow: hidden;
    padding: 1px;
}

.btn-finex-primary .beam-gradient {
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent 0 300deg, var(--accent-primary) 360deg);
    animation: beam-spin 3s linear infinite;
}

.btn-finex-primary .beam-inner-mask {
    position: absolute;
    inset: 1px;
    border-radius: 9999px;
    background: #050505;
}

.btn-finex-primary .btn-content {
    position: absolute;
    top: 2px; right: 2px; bottom: 2px; left: 2px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: -10;
}

.btn-finex-primary .bg-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 240, 255, 0.15), transparent);
}

.btn-finex-primary .lines {
    display: none;
}

.btn-finex-primary .bottom-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 66%;
    height: 50%;
    background: rgba(0, 240, 255, 0.2);
    filter: blur(24px);
    border-radius: 9999px;
    pointer-events: none;
    transition: background-color 0.5s ease;
}

.btn-finex-primary:hover .bottom-glow {
    background: rgba(0, 240, 255, 0.4);
}

.btn-finex-primary span {
    position: relative;
    z-index: 10;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.btn-finex-primary:hover span {
    color: white;
}

.btn-finex-primary svg {
    position: relative;
    z-index: 10;
    margin-left: 0.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.btn-finex-primary:hover svg {
    transform: translateX(4px);
}

/* Finex DS Secondary Button (Watch Demo) */
.btn-finex-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2rem;
    border-radius: 9999px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-finex-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.2);
    transform: scale(1.02);
}

.btn-finex-secondary svg {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.btn-finex-secondary:hover svg {
    color: white;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@keyframes beam-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lines-slide {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}



.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    text-align: left;
    margin-bottom: 2rem;
    font-weight: var(--font-weight-heading);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.hero-description {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 500px;
    font-weight: var(--font-weight-body);
    opacity: 0.7;
    line-height: 1.6;
}

/* Hero Visual Refinements */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    animation: float-visual 8s ease-in-out infinite;
}

@keyframes float-visual {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover img {
    transform: scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 0 100px var(--accent-primary-glow);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: -25px;
    border: 1px solid var(--accent-primary);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
    animation: spin-slow 30s linear infinite;
    transition: all 0.6s ease;
}

.hero-visual:hover::after {
    inset: -35px;
    opacity: 0.2;
    border-width: 2px;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-line-flow 2.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
    transform-origin: top;
}

@keyframes scroll-line-flow {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* Mobile Responsiveness for Nav and Hero */
@media (max-width: 900px) {
    .navbar {
        width: 90%;
        padding: 0.6rem 1rem;
    }
    .nav-links {
        display: none; /* Hide nav links on small screens to prioritize CTA */
    }
    .nav-logo {
        flex: 1;
    }
    .nav-cta {
        flex: none;
    }
    .nav-btn-flux {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero {
        padding: 120px 5% 60px;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        text-align: center;
    }
    .hero-description {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        max-width: 300px;
        margin-top: 1rem;
    }
    .scroll-indicator {
        display: none; /* Hide scroll indicator to save vertical space on mobile */
    }
}
