:root {
    --bg-color: #0b0f19;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --primary-color: #00f260;
    --primary-glow: rgba(0, 242, 96, 0.4);
    --secondary-color: #0575e6;
    --card-bg: rgba(17, 25, 40, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color); /* Added explicit background to blend with vanta */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.mt-4 {
    margin-top: 32px;
}

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

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Vanta JS Background Container - Pushed to Left */
#vanta-bg {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: -25vw; /* Moved left */
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(11, 15, 25, 0.6);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    gap: 8px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #10f76e;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-success {
    background-color: #22c55e !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4) !important;
}

.glow-button {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 242, 96, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 242, 96, 0.8); }
    100% { box-shadow: 0 0 10px rgba(0, 242, 96, 0.4); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 242, 96, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 96, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Stats */
.stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Glass Form */
.hero-form-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.glass-form {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-color), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: -1;
    opacity: 0.2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-form h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

/* Intl-tel-input Override */
.iti { width: 100%; display: block; }
.iti__country-list { 
    background-color: var(--bg-color) !important; 
    color: #fff !important; 
    border: 1px solid var(--border-color) !important; 
    border-radius: 8px;
}
.iti__country:hover, .iti__country.iti__highlight { 
    background-color: rgba(255,255,255,0.1) !important; 
}
.iti__dial-code { color: #cbd5e1 !important; }
.iti__country-name { color: #fff !important; }

.input-group input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 242, 96, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Integration Bar */
.integration-bar {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.integration-bar p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.integration-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.int-logo {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.int-logo:hover {
    opacity: 1;
}

/* Sections Global */
.how-it-works, .features, .testimonials, .footer-cta {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* How it Works */
.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-wrapper::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--glass-border);
    z-index: -1;
}

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

.step-num {
    width: 70px;
    height: 70px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.2);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 96, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-green { box-shadow: inset 0 0 20px rgba(0, 242, 96, 0.1); }
.glow-blue { box-shadow: inset 0 0 20px rgba(5, 117, 230, 0.2); }
.glow-purple { box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.2); }
.glow-yellow { box-shadow: inset 0 0 20px rgba(250, 204, 21, 0.2); }
.glow-red { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2); }
.glow-white { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1); }

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.test-card {
    position: relative;
    padding-top: 40px;
}

.stars {
    font-size: 18px;
    margin-bottom: 16px;
}

.test-card p {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 24px;
}

.test-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 96, 0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-cta h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    background: #06090e;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 0.3s ease;
}

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

/* ===============================================
   RESPONSIVE DESIGN IMPROVEMENTS
   =============================================== */

@media (max-width: 992px) {
    #vanta-bg {
        left: 0;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-form-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-wrapper::before {
        display: none;
    }
    
    .steps-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 16px 0;
    }

    .nav-links a:not(.btn) {
        display: none;
    }
    
    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
    }

    .stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-around;
        padding-top: 24px;
    }

    .stat-value {
        font-size: 26px;
    }
    
    .glass-form {
        padding: 24px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glass-panel {
        padding: 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
        letter-spacing: -1px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .integration-logos {
        gap: 20px;
    }
}

/* ===============================================
   MODALS & HAMBURGER MENU
   =============================================== */

/* Modal Overlays */
.modal-overlay, .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active, .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Agreement Modal */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 22px;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    color: var(--text-secondary);
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body strong {
    color: var(--text-primary);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Mobile Menu Modal */
.mobile-menu-content {
    background: #0b0f19;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-item {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.mobile-nav-item:hover {
    color: var(--primary-color);
}

/* Hamburger Icon */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Responsive Overrides for Hamburger */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex;
    }
}
