:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #3b82f6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --error: #ef4444;
    --font-main: 'Outfit', sans-serif;
    --border-radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* Background Blobs for Visual Interest */
.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 100;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), #34d399);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.trust-indicators {
    display: flex;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.trust-item .icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Glass Panel Form */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Progress Bar */
.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 33.33%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-indicator {
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
}

/* Form Steps */
.step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step.exit-left {
    transform: translateX(-20px);
    opacity: 0;
}

.step h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* Inputs */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-body input[type="text"],
.form-body input[type="email"],
.form-body input[type="tel"],
.form-body select {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.form-body input:focus,
.form-body select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-body input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.input-group.invalid input,
.input-group.invalid select {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.input-group.invalid label {
    color: var(--error);
}

.input-group.invalid select option {
    background-color: rgba(15, 23, 42, 1);
    color: var(--text-main);
}

.error-msg {
    display: none;
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.input-group.invalid input {
    border-color: var(--error);
}

.input-group.invalid .error-msg {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Slider Reset for Safari (removes appearance warning implicitly applied to custom sliders) */
input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-70%) rotate(-45deg);
    pointer-events: none;
}

/* Range Slider */
.split-value {
    margin-bottom: 32px;
}

.value-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}

.range-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    margin-bottom: 12px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    width: 100%;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: white;
}

.btn-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    margin-top: 8px;
}

/* Checkbox Terms */
.terms-group {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Invalid Checkbox States */
.terms-group.invalid .checkmark {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.terms-group.invalid .terms-text {
    color: var(--error);
}

.terms-group.invalid {
    animation: shake 0.4s ease;
}

/* Success Step */
.success-step {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-step p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 5%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .trust-indicators {
        justify-content: center;
    }

    .glass-panel {
        max-width: 600px;
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        text-align: center;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.02);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .glass-panel {
        padding: 24px 20px;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-group {
        grid-template-columns: 1fr;
    }

    .btn-group .btn-outline {
        order: 2;
    }

    .value-display {
        font-size: 28px;
    }
}

/* --- New Sections Below The Fold --- */

.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2) 50%, transparent);
    margin: 0;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 24px;
    transition: var(--transition);
    text-align: left;
}

.glass-panel-light {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.feature-card strong {
    color: var(--text-main);
}

/* Partners Section */
.partners {
    padding: 80px 0 100px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partners-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.partners-content p {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 16px;
}

/* Partner Section Adjusted */
.bank-logos {
    display: none;
    /* Removed as requested */
}

/* Modalities Section */
.modalities {
    padding: 100px 0;
    position: relative;
    z-index: 5;
    background: var(--bg-darker);
}

.modalities-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.modality-item {
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.modality-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.modality-item h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.modality-item p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modality-item strong {
    color: var(--text-main);
}

.rate-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}

/* Social Proof Carousel */
.social-proof {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, var(--bg-darker) 100%);
    position: relative;
    z-index: 5;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
    border-radius: 24px;
    box-sizing: border-box;
    position: relative;
}

.quote-icon {
    font-size: 80px;
    color: rgba(16, 185, 129, 0.2);
    position: absolute;
    top: 10px;
    left: 30px;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.author-info h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer & Compliance */
.footer {
    padding: 60px 0 40px;
    position: relative;
    z-index: 5;
    background: var(--bg-darker);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info .logo {
    margin-bottom: 16px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 80%;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(148, 163, 184, 0.5);
    font-size: 14px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-info p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .modalities-list {
        padding: 0 16px;
    }

    .modality-item {
        padding: 24px;
    }

    .modality-item h3 {
        font-size: 20px;
    }

    .testimonial-card {
        padding: 32px 20px;
    }

    .quote-icon {
        font-size: 50px;
        left: 10px;
        top: 0px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .footer {
        padding: 40px 0 20px;
    }
}