/* CSS Variables for Premium Fintech Theme */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --navy-950: #020617;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --slate-400: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max: 1200px;
}

/* Reset & Base Styles */
.page-root {
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Force no horizontal scroll */
    width: 100%;
}

.page-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--navy-950);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Force no horizontal scroll */
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.global-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--navy-900);
}

/* Typography Custom Styling */
/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.logo-mark::before {
    content: '';
    width: 14px;
    height: 14px;
    border-top: 2.5px solid var(--white);
    border-right: 2.5px solid var(--white);
    transform: rotate(-15deg) translateY(1px);
}

.logo-mark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    bottom: 8px;
    left: 8px;
    opacity: 0.8;
}

.logo-type {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--white);
    display: flex;
    align-items: baseline;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    /* Added per user request */
}

.logo-bold {
    font-weight: 700;
}

.logo-light {
    font-weight: 300;
    color: var(--slate-400);
    /* Dual tone for premium feel */
}

.logo-dot {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.85);
    }
}

/* Mobile Adjustment for Logo */
@media (max-width: 768px) {
    .logo-mark {
        width: 28px;
        height: 28px;
    }

    .logo-type {
        font-size: 1.35rem;
    }
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-950);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-visual {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--slate-400);
    letter-spacing: 0.05em;
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ad Bar */
.ad-top-bar {
    background: var(--navy-800);
    color: var(--slate-400);
    padding: 8px;
    text-align: center;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-400);
}

.nav-link:hover {
    color: var(--white);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--glass);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--slate-400);
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: auto;
    filter: brightness(0.8);
}

.hero-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section Components */
.section-badge {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.centered {
    text-align: center;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.rounded-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--navy-900);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.author-name {
    display: block;
    font-weight: 700;
}

.author-pos {
    font-size: 0.9rem;
    color: var(--slate-400);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--navy-900);
    border: none;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--navy-900);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-title {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--slate-400);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-ad-disclosure {
    font-size: 0.8rem;
    color: var(--slate-400);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.footer-copyright {
    color: var(--slate-400);
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--navy-900);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 3000;
    display: none;
}

.cookie-inner {
    background: var(--navy-800);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-btns {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .cookie-btns {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Styles */
/* Responsive Styles */
@media (max-width: 991px) {
    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
        /* Changed from 100vw to 100% to avoid scrollbar overflow */
        box-sizing: border-box;
    }

    .section {
        padding: 40px 0;
        overflow-x: hidden;
        /* Prevent internal section overflow */
    }

    .hero {
        padding: 80px 0 40px;
        overflow-x: hidden;
    }

    .hero-grid,
    .section-grid,
    .footer-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
        text-align: center;
        padding: 0 0.5rem;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        /* Clip images */
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Full Screen Mobile Menu - FIXED with TRANSFORM */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
        z-index: 5000;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s ease-in-out, visibility 0s;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 6000;
        padding: 0.5rem;
    }

    .menu-toggle .bar {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--white);
        margin: 6px 0;
        transition: 0.3s;
        border-radius: 4px;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {

    /* STRICT Mobile "Fit" Rules */
    .container {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Safer alternative to universal selector for mobile layout */
    div,
    section,
    article,
    header,
    footer,
    main,
    aside,
    nav,
    ul,
    ol,
    li,
    form,
    table {
        max-width: 100%;
        box-sizing: border-box;
    }

    .header,
    .section,
    .footer,
    .hero {
        width: 100%;
        overflow-x: hidden;
    }

    /* Ensure all images and internal elements don't overflow */
    .content-img,
    video,
    iframe,
    .rounded-img {
        max-width: 100% !important;
        height: auto;
    }

    .header {
        height: 60px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .section {
        padding: 30px 0;
    }

    .hero {
        padding: 70px 0 20px;
    }

    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        /* Prevent long word overflow */
    }

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.8rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .section-badge {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    .hero-overlay-card {
        display: none;
    }

    .ad-top-bar {
        font-size: 0.6rem;
        padding: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100vw;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .cookie-popup {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        box-sizing: border-box;
    }

    .cookie-inner {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        width: 100%;
        box-sizing: border-box;
    }

    .cookie-btns {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-btns .btn {
        width: 100%;
        padding: 0.7rem;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    /* Reduced movement */
    transition: all 0.6s ease-out;
    /* Faster transition */
}

.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}