@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #5646d9;
    --accent: #18c8df;
    --green: #1da95c;
    --text: #181b2c;
    --muted: #667085;
    --light: #f5f6fb;
    --border: #e5e7ef;
    --hero: linear-gradient(135deg, #6f3fa2, #5144a7, #343c8f, #1f315f, #12233e);
    --shadow: 0 12px 35px rgba(24, 27, 44, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: "DM Sans", sans-serif;
    line-height: 1.15;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.section {
    padding: 80px 0;
}

.soft {
    background: var(--light);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-head span,
.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.section-head h2 {
    margin: 10px 0;
    font-size: clamp(32px, 4vw, 48px);
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
}

/* Header */

.header {
    will-change: background, box-shadow;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    height: 62px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3px;
}

.nav-links a {
    color: white;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.header.scrolled .nav-links a {
    color: #4b5563;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.10);
}

.header.scrolled .nav-links a:hover {
    background: #f0effd;
    color: var(--primary);
}

.btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.light {
    color: var(--primary);
    background: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.primary {
    color: white;
    background: linear-gradient(135deg, #7564e8, #5646d9);
}

.outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
}

.success {
    color: white;
    background: var(--green);
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 28px;
}

.mobile-nav {
    display: none;
    background: white;
    padding: 12px 20px 20px;
}

.mobile-nav a {
    display: block;
    padding: 11px;
    font-weight: 600;
}

/* Hero */

.hero {
    padding: 150px 0 70px;
    overflow: hidden;
    color: white;
    background: var(--hero);
}

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

.hero h1 {
    margin: 15px 0;
    font-size: clamp(43px, 6vw, 72px);
}

.hero h1 span {
    color: var(--accent);
}

.hero-copy > p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.hero-art {
    position: relative;
}

.hero-art > img {
    width: 100%;
    max-width: 570px;
    margin: auto;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.18));
}

.float-card {
    position: absolute;
    padding: 14px 17px;
    border-radius: 15px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.float-card b {
    display: block;
    color: var(--primary);
    font-size: 23px;
}

.float-card small {
    display: block;
    color: var(--muted);
}

.float-card.left {
    left: 0;
    bottom: 15px;
}

.float-card.right {
    right: 0;
    top: 20px;
}

/* Stats */

.stats {
    padding: 10px 0 55px;
    color: white;
    background: var(--hero);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.stats strong {
    display: inline;
    font: 700 34px "DM Sans";
}

.stats span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
}

/* Cards */

.cards,
.loan-grid {
    display: grid;
    gap: 20px;
}

.cards {
    grid-template-columns: repeat(4, 1fr);
}

.loan-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.panel {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 24px rgba(24, 27, 44, 0.06);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #7564e8, #5646d9);
    font-size: 22px;
    font-style: normal;
}

.card p {
    color: var(--muted);
}

.card em {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-style: normal;
}

.card a {
    color: var(--primary);
    font-weight: 700;
}

/* Video */

.video {
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #111;
    box-shadow: var(--shadow);
}

.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-points {
    max-width: 900px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
    color: var(--muted);
}

.video-points b {
    display: block;
    color: var(--primary);
    font-size: 24px;
}

/* Steps */

.steps {
    max-width: 900px;
    margin: auto;
    display: grid;
    gap: 20px;
}

.step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
}

.step > b {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, #7564e8, #5646d9);
    font-size: 27px;
}

.step > div {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 5px 20px rgba(24, 27, 44, 0.05);
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* EMI Calculator */

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.panel label {
    display: block;
    margin-bottom: 18px;
    font-weight: 700;
}

.panel label output {
    float: right;
    color: var(--primary);
}

input[type="range"] {
    width: 100%;
    margin: 5px 0 22px;
    accent-color: var(--primary);
}

.result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    border-radius: 20px;
    color: white;
    background: var(--hero);
}

.result strong {
    margin: 8px 0 22px;
    font: 700 46px "DM Sans";
}

.result > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.result span {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.result b {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

/* Partners */

.partners {
    overflow: hidden;
}

.track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: move 28s linear infinite;
}

.track > div {
    min-width: 155px;
    padding: 16px 30px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.track small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

@keyframes move {
    to {
        transform: translateX(-50%);
    }
}

/* Testimonials */

.testimonials {
    color: white;
    background: var(--hero);
}

.testimonials .section-head span {
    color: var(--accent);
}

.testimonials .section-head p {
    color: rgba(255, 255, 255, 0.72);
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quote {
    padding: 25px;
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
}

.quote strong {
    color: #f4b942;
}

.quote p {
    color: #4b5563;
    font-style: italic;
}

.quote small {
    display: block;
    color: var(--muted);
}

/* Forms */

.form-panel {
    max-width: 900px;
    margin: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid label {
    font-size: 13px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    border: 1px solid #d8dce7;
    border-radius: 10px;
    font: 15px Inter;
}

.full {
    grid-column: 1 / -1;
}

.success {
    display: none;
    margin: 15px 0 0;
    padding: 12px;
    border-radius: 10px;
    color: #176b3b;
    background: #eaf8f0;
}

/* About and Contact */

.about,
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about img {
    max-width: 500px;
    margin: auto;
}

.contact {
    align-items: stretch;
}

/* FAQ */

.faq-list {
    max-width: 850px;
    margin: auto;
}

.faq {
    border-bottom: 1px solid var(--border);
}

.faq button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border: 0;
    background: none;
    text-align: left;
    font: 600 17px "DM Sans";
    cursor: pointer;
}

.faq p {
    display: none;
    margin: 0;
    padding: 0 0 18px;
    color: var(--muted);
}

.faq.open p {
    display: block;
}

/* Footer */

footer {
    color: white;
    background: #141625;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    padding: 55px 0;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.62);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.disclaimer {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.40);
    text-align: center;
    font-size: 13px;
}

/* Animation */

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .nav > .light {
        display: none;
    }

    .menu {
        display: block;
    }

    .mobile-nav.open {
        display: block;
    }

    .hero-grid,
    .calculator,
    .about,
    .contact {
        grid-template-columns: 1fr;
    }

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

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

    .quote-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {

    .container {
        width: calc(100% - 24px);
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 115px;
    }

    .hero h1 {
        font-size: 43px;
    }

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

    .actions {
        justify-content: center;
    }

    .trust {
        justify-content: center;
    }

    .float-card {
        transform: scale(0.82);
    }

    .float-card.left {
        left: -12px;
    }

    .float-card.right {
        right: -12px;
    }

    .cards,
    .loan-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

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

    .step {
        grid-template-columns: 55px 1fr;
        gap: 12px;
    }

    .step > b {
        width: 55px;
        height: 55px;
    }
}
