/* FinCore Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #06b6d4;
    --bg-dark: #0f172a;
    --dark-bg-end: #1e1b4b;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--dark-bg-end) 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.glass-card {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    /* Neon Glow */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Live Ticker */
.ticker-wrap {
    margin-top: 75px;
    width: 100%;
    overflow: hidden;
    height: 50px;
    /* Increased size */
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker background */
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    z-index: 900;
}

.ticker {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 2rem;
    font-size: 1.1rem;
    /* Increased font size */
    font-weight: 500;
}

.up {
    color: #10b981;
}

.down {
    color: #ef4444;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Main Content Wrapper */
.main-content {
    margin-top: 2rem;
    /* Reduced gap */
    padding: 0 5%;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #334155;
    border: 2px solid #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    margin-right: -10px;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.credit-card-placeholder {
    width: 380px;
    height: 240px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.credit-card-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 8px;
}

/* Animations */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float {
    animation: float 6s ease-in-out infinite;
}

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

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Phase 2: Content Expansion */
/* Utilities */
.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.section-padding {
    padding: 4rem 0;
}

/* How It Works (Zig-Zag) */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-content,
.zigzag-visual {
    flex: 1;
}

.zigzag-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.zigzag-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.visual-card {
    padding: 1rem;
}

.visual-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Dashboard Preview */
.dashboard-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-img {
    width: 100%;
    display: block;
}

/* Market Data Widget */
.market-widget {
    margin-top: 4rem;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table th,
.market-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.market-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-table tr:last-child td {
    border-bottom: none;
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.asset-icon {
    width: 30px;
    height: 30px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Final CTA Banner */
.cta-banner {
    padding: 4rem;
    text-align: center;
    margin: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.cta-banner .btn-primary {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
}

/* Footer */
.footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    /* Fix alignment */
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

/* Glow Orbs */
.glow-orb {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Quick Swap Widget */
.quick-swap {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.swap-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.swap-input-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swap-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.swap-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.swap-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-white);
}

.swap-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-gradient {
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    color: #fff;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Partners Strip */
.partners-strip {
    padding: 2rem 0;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    margin-top: -1rem;
    /* Pull up closer to Hero */
    overflow: hidden;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--text-white);
}

/* Map Pulse Animation */
.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.pulse-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(6, 182, 212, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Accordion Active State Override */
.accordion-button:not(.collapsed) {
    color: var(--bg-dark) !important;
    background-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(0);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}

/* Testimonials Polish */
.star-theme {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    font-size: 0.9rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

.carousel-custom-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Design & Mobile Optimization
   ========================================= */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        background: rgba(15, 23, 42, 0.95);
        /* distinct background on mobile */
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        padding-bottom: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .desktop-cta {
        display: none;
        /* Hide desktop CTA in nav */
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 2rem;
    }

    .footer-col {
        text-align: center;
    }

    .ticker-wrap {
        margin-top: 65px;
        /* Adjust for mobile navbar */
    }

    .cta-banner {
        padding: 2rem 1rem;
        margin: 3rem 0;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .cta-banner .btn-primary {
        width: 100%;
        display: block;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {

    /* Global Layout Adjustments */
    .section-padding {
        padding: 3rem 0;
    }

    body {
        overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
        padding: 1rem;
        background: rgba(15, 23, 42, 0.95);
        justify-content: space-between;
        flex-wrap: wrap;
        /* Allow wrapping */
    }

    .mobile-toggle {
        display: block;
        order: 1;
        /* Place after logo */
    }

    .btn-primary {
        order: 2;
        /* Ensure CTA is visible */
        margin-left: auto;
        margin-right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        position: absolute;
        top: 70px;
        /* Below navbar */
        left: 0;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        gap: 2rem;
        order: 3;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        /* More space */
        gap: 4rem;
        /* More gap */
        min-height: auto;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text p {
        margin: 0 auto 2rem auto;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .trust-indicators {
        justify-content: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    /* Zig-Zag Sections */
    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .zigzag-content h2 {
        font-size: 2rem;
    }

    .zigzag-visual {
        width: 100%;
    }

    /* Partners Strip */
    .partners-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .partners-logos i {
        font-size: 2rem;
    }

    /* Dashboard Preview */
    .dashboard-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .dashboard-container {
        border-radius: 10px;
    }

    /* Market Data Widget */
    .market-widget {
        overflow-x: auto;
        border-radius: 15px;
        margin-top: 2rem;
    }

    .market-table {
        min-width: 600px;
        /* Ensure table doesn't squash */
    }

    .market-table th,
    .market-table td {
        padding: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .footer {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 1.2rem;
    }

    .navbar .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-glass {
        width: 100%;
        text-align: center;
    }

    .quick-swap {
        padding: 1rem;
    }

    .swap-amount {
        font-size: 1rem;
    }

    .glow-orb {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .partners-strip {
        margin-top: 2rem !important;
        opacity: 0.8;
    }
}