/* landing.css - Premium Modern Interactive Design for FinbridgeUSA */
:root {
    --brand-primary: #0077C5; /* QBO Blue */
    --brand-secondary: #2CA01C; /* QBO Green */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-primary: rgba(0, 119, 197, 0.4);
    --glow-secondary: rgba(44, 160, 28, 0.4);
}

body.landing-page {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS (JS Triggered)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================
   DYNAMIC MESH BACKGROUND
   ========================================= */
.bg-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-darker);
}

.bg-gradient-mesh::before, .bg-gradient-mesh::after, .bg-gradient-mesh-core {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 25s infinite alternate ease-in-out;
}

.bg-gradient-mesh::before {
    width: 60vw; height: 60vw;
    background: var(--brand-primary);
    top: -20vw; left: -10vw;
}

.bg-gradient-mesh::after {
    width: 50vw; height: 50vw;
    background: var(--brand-secondary);
    bottom: -10vw; right: -10vw;
    animation-delay: -12s;
    animation-duration: 30s;
}

.bg-gradient-mesh-core {
    width: 40vw; height: 40vw;
    background: #6366f1; /* Purple accent */
    top: 30vh; left: 30vw;
    animation-delay: -5s;
    opacity: 0.1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5%, 10%) scale(1.1) rotate(5deg); }
    66% { transform: translate(-5%, 5%) scale(0.9) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* =========================================
   NAVIGATION
   ========================================= */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(2, 6, 23, 0.8);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.landing-nav .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav .brand img { height: 32px; }

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

.landing-nav .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.landing-nav .nav-link:hover { color: var(--text-light); }
.landing-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--brand-secondary);
    transition: width 0.3s ease;
}
.landing-nav .nav-link:hover::after { width: 100%; }

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--glow-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-secondary);
}

.btn-outline-premium {
    background: rgba(255,255,255,0.03);
    color: var(--text-light) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline-premium:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 10rem 5% 6rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(44, 160, 28, 0.1);
    color: #4ade80;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(44, 160, 28, 0.3);
    animation: fadeInDown 1s ease-out;
}
.hero-pill .pulse-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite, fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 6rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Interactive Hero Mockup */
.hero-mockup-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1500px;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.mockup-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 119, 197, 0.2);
    border: 1px solid rgba(255,255,255,0.15);
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: bottom center;
}

.hero-mockup-wrapper:hover .mockup-container {
    transform: rotateX(0deg) scale(1);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 119, 197, 0.3);
}

.mockup-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }

.mockup-image {
    width: 100%;
    display: block;
}

/* Floating UI Cards */
.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
    transition: transform 0.3s ease;
    animation: floatElement 6s infinite alternate ease-in-out;
}

.floating-card-1 {
    top: 15%; left: -5%;
    animation-delay: 0s;
}
.floating-card-2 {
    bottom: 25%; right: -5%;
    animation-delay: -3s;
}

.floating-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

/* =========================================
   INFINITE MARQUEE (TRUST SECTION)
   ========================================= */
.marquee-section {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.5);
    overflow: hidden;
    position: relative;
}

.marquee-section::before, .marquee-section::after {
    content: '';
    position: absolute;
    top: 0; width: 150px; height: 100%;
    z-index: 2;
}
.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}
.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: fit-content;
    animation: scrollMarquee 30s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }

.marquee-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
.marquee-item:hover { opacity: 1; color: var(--text-light); }

/* =========================================
   INTERACTIVE FEATURES TABS
   ========================================= */
.interactive-features {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.feature-tabs-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.feature-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    padding: 1.5rem;
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover { background: rgba(255,255,255,0.03); }

.tab-btn.active {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tab-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.75rem;
}

.tab-btn.active .tab-title {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tab-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.tab-btn.active .tab-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
}

.tab-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.tab-btn.active .tab-icon {
    background: rgba(0, 119, 197, 0.2);
    color: var(--brand-primary);
}

.feature-visuals {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.visual-item {
    position: absolute;
    width: 90%;
    height: 90%;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    text-align: center;
}

.visual-item.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* =========================================
   QBO PIPELINE ANIMATION
   ========================================= */
.integration-section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.data-pipeline {
    position: relative;
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.pipeline-node {
    width: 120px;
    text-align: center;
    z-index: 2;
}

.pipeline-icon-box {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.pipeline-track {
    position: absolute;
    top: 50%; left: 120px; right: 120px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%);
}

.data-packet {
    position: absolute;
    top: 50%; left: 0;
    width: 40px; height: 30px;
    background: var(--brand-secondary);
    border-radius: 8px;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: bold; color: white;
    box-shadow: 0 0 15px var(--brand-secondary);
    animation: flowData 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.data-packet:nth-child(2) { animation-delay: 1.5s; background: var(--brand-primary); box-shadow: 0 0 15px var(--brand-primary); }

/* =========================================
   KEYFRAMES
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes gradientText { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes floatElement { 0% { transform: translateY(0px); } 100% { transform: translateY(-15px); } }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes flowData { 0% { left: 0; opacity: 0; transform: translateY(-50%) scale(0.5); } 20% { opacity: 1; transform: translateY(-50%) scale(1); } 80% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { left: 100%; opacity: 0; transform: translateY(-50%) scale(0.5); } }

/* =========================================
   FOOTER CTA
   ========================================= */
.footer-cta {
    margin: 6rem 5% 4rem;
    max-width: 1000px;
    margin-left: auto; margin-right: auto;
    background: linear-gradient(135deg, rgba(0,119,197,0.15), rgba(44,160,28,0.15));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-cta::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.footer-cta h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; z-index: 2; }
.footer-cta p { color: var(--text-muted); margin-bottom: 2.5rem; position: relative; z-index: 2; }

/* Responsive */
@media (max-width: 992px) {
    .feature-tabs-container, .integration-section { grid-template-columns: 1fr; gap: 3rem; }
    .feature-visuals { height: 350px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .landing-nav .nav-links { display: none; }
    .floating-card { display: none; }
}
