:root {
    --primary-color: #00D09C; /* Fintech Green */
    --primary-dark: #00A87E;
    --secondary-color: #0F172A; /* Dark Blue */
    --accent-color: #38BDF8; /* Light Blue */
    --text-color: #334155;
    --light-bg: #F8FAFC;
    --dark-bg: #1E293B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748B;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    background-color: var(--light-bg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #E0F2FE;
    color: #0369A1;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.text-light-muted {
    color: #94A3B8 !important;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 8px;
    margin-right: 10px;
    font-size: 1.25rem;
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: #475569;
}

.desktop-nav a:hover {
    color: var(--secondary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-btn {
    text-align: center;
    margin-top: 10px;
    border: none !important;
}

@media (max-width: 768px) {
    .desktop-nav, .nav-actions .btn {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, #F0F9FF, #F8FAFC 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-indicators {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.trust-indicators span {
    display: block;
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 12px;
}

.trust-indicators .logos {
    display: flex;
    gap: 24px;
}

.dummy-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #94A3B8;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.card-visual {
    position: relative;
}

.transfer-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 380px;
    border: 1px solid #E2E8F0;
    z-index: 10;
    position: relative;
}

.transfer-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: #DEF7EC;
    color: #03543F;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}

.status-success {
    display: inline-block;
    color: #046C4E;
    font-size: 0.875rem;
    font-weight: 600;
}

.transfer-card .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.transfer-card .exchange-rate {
    padding: 12px;
    background-color: #F1F5F9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 24px;
    font-weight: 500;
}

.recipient {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.recipient small {
    display: block;
    color: #64748B;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    white-space: nowrap;
}

.floating-badge i {
    color: var(--primary-color);
}

.badge-1 {
    top: 40px;
    right: -40px;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    bottom: -20px;
    left: -30px;
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    text-align: center;
    max-width: 250px;
    padding: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0 auto 20px;
}

.step-icon.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.step-card h3 {
    margin-bottom: 10px;
}

.connector-line {
    color: #CBD5E1;
    font-size: 1.5rem;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.country-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.country-header h3 {
    font-size: 1.25rem;
}

.payout-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
}

.payout-methods i {
    color: var(--primary-color);
    width: 20px;
}

.more-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--light-bg);
}

.text-link {
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #94A3B8;
}

/* Compliance Section */
.compliance-section {
    background-color: var(--white);
    padding: 100px 0;
}

.compliance-wrapper {
    background: linear-gradient(to right, #0F172A, #1E293B);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    gap: 60px;
}

.compliance-text {
    flex: 1;
}

.compliance-text h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.compliance-text p {
    color: #94A3B8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.compliance-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compliance-list i {
    color: var(--primary-color);
}

.compliance-badges {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cert-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.cert-badge i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
}

.cert-badge span {
    font-weight: 600;
}

/* Payout Methods */
.payout-methods-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.method-card {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: #F0F9FF;
    color: #0369A1;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

/* Timeline Section */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-step {
    margin-top: 10px;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
    background-color: var(--primary-color);
    color: var(--white);
}

.timeline-step.success .step-number {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.timeline-line {
    flex: 1;
    height: 2px;
    background-color: #CBD5E1;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.timeline-step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    
}

.timeline-step p {
    font-size: 0.9rem;
    color: #64748B;
}

/* Developer Section */
.developer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dev-list {
    margin: 32px 0;
}

.dev-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.dev-list i {
    color: var(--primary-color);
}

.code-preview {
    background: #1E293B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: #0F172A;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.window-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    margin-right: 6px;
}

.filename {
    color: #94A3B8;
    font-family: monospace;
    font-size: 0.9rem;
}

pre {
    padding: 20px;
    overflow-x: auto;
    color: #E2E8F0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: #64748B;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.use-case-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
}

.uc-image {
    height: 200px;
    background-color: #CBD5E1;
    background-size: cover;
    background-position: center;
}

.remittance-img { background-image: linear-gradient(45deg, #3B82F6, #1D4ED8); }
.payroll-img { background-image: linear-gradient(45deg, #10B981, #059669); }
.marketplace-img { background-image: linear-gradient(45deg, #F59E0B, #D97706); }

.uc-content {
    padding: 24px;
}

.uc-content h3 {
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: var(--light-bg);
}

.contact-wrapper {
    max-width: 500px;
    margin: 40px auto 0;
    position: relative;
    min-height: 150px; /* Prevent layout jump */
}

.contact-form {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    transform: translateY(-20px);
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.form-hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #64748B;
}

.direct-contact {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.direct-contact a {
    color: var(--primary-dark);
    font-weight: 600;
}

.direct-contact a:hover {
    text-decoration: underline;
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid #dcfce7;
    animation: fadeIn 0.5s ease-out;
}

.success-message.visible {
    display: flex;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #166534;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #475569;
    margin-bottom: 20px;
}

#user-email {
    font-weight: 600;
    color: var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #94A3B8;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
    display: flex;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.footer-email i {
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    font-size: 1.2rem;
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .compliance-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 30px; /* Reduced padding on mobile */
    }

    .compliance-list li {
        justify-content: center;
    }

    .hero-container,
    .developer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }
    
    /* Fix Hero Overflow */
    .hero-visual {
        overflow-x: hidden;
        padding: 20px 0;
    }

    .badge-1 {
        right: 0;
    }
    
    .badge-2 {
        left: 0;
    }

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

    .payout-methods-container,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px; /* Smaller buttons on mobile */
    }
    
    .btn-lg {
        font-size: 1rem;
    }

    .payout-methods-container,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        flex-direction: column;
        align-items: flex-start; /* Align left */
        gap: 20px;
        padding-left: 0; /* Remove left padding */
    }

    .timeline-line {
        display: none;
    }
    
    .timeline-step {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content of step */
        text-align: center;
        gap: 15px;
        padding: 0;
    }

    .step-number {
        margin: 0 auto; /* Center circle */
        min-width: 50px;
        height: 50px;
        width: 50px;
        font-size: 1rem;
    }

    .form-group {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
    
    .footer-email {
        justify-content: center; /* Center email link */
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }