/* =========================
   GLOBAL
========================= */

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--dark);

    line-height: 1.6;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

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

.header-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--primary);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 6px 15px
        rgba(37, 99, 235, 0.25);
}

.brand-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 800;
}

.brand-text small {
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    position: relative;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.desktop-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;

    background: var(--primary);

    border-radius: 5px;
}

.header-button,
.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 19px;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.header-button:hover,
.primary-button:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.25);
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    background: transparent;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;

    background: var(--dark);

    border-radius: 5px;
}

.mobile-nav {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    overflow: hidden;

    padding:
        110px 0
        100px;

    background:
        linear-gradient(
            135deg,
            #EFF6FF 0%,
            #FFFFFF 52%,
            #ECFDF5 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    top: -220px;
    right: -150px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.08);

    filter: blur(2px);
}

.hero-container {
    position: relative;

    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    align-items: center;

    gap: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 7px 12px;

    border:
        1px solid
        rgba(37, 99, 235, .15);

    border-radius: 100px;

    background:
        rgba(37, 99, 235, .07);

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.hero h1 {
    max-width: 700px;

    margin-bottom: 22px;

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2.5px;

    font-weight: 850;
}

.hero h1 span {
    display: block;

    color: var(--primary);
}

.hero-content > p {
    max-width: 600px;

    margin-bottom: 30px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 40px;
}

.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color: var(--dark);

    font-size: 14px;
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.secondary-button:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-sm);
}

.hero-trust {
    display: flex;
    gap: 30px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 14px;
}

.hero-trust span {
    color: var(--muted);

    font-size: 11px;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;

    min-height: 440px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.money-card {
    width: 390px;

    padding: 28px;

    border:
        1px solid
        rgba(255,255,255,.7);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #172554,
            #1E40AF
        );

    color: white;

    box-shadow:
        0 30px 60px
        rgba(30, 64, 175, .28);

    transform: rotate(2deg);
}

.money-card-header {
    display: flex;

    justify-content: space-between;

    color:
        rgba(255,255,255,.75);

    font-size: 13px;
}

.growth {
    color: #86EFAC;

    font-size: 22px;
}

.chart {
    position: relative;

    height: 170px;

    margin:
        25px 0
        10px;

    overflow: hidden;
}

.chart::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 41px,
            rgba(255,255,255,.08) 42px
        );
}

.chart-line {
    position: absolute;

    left: 0;
    right: 0;

    top: 50%;

    height: 110px;

    border-top:
        3px solid
        #34D399;

    transform:
        skewY(-18deg)
        rotate(-8deg);

    filter:
        drop-shadow(
            0 4px 10px
            rgba(52,211,153,.4)
        );
}

.chart-dot {
    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #6EE7B7;

    border: 2px solid #064E3B;
}

.dot-1 {
    left: 12%;
    top: 73%;
}

.dot-2 {
    left: 32%;
    top: 59%;
}

.dot-3 {
    left: 52%;
    top: 66%;
}

.dot-4 {
    left: 72%;
    top: 40%;
}

.dot-5 {
    right: 8%;
    top: 22%;
}

.money-value {
    display: flex;
    flex-direction: column;
}

.money-value small {
    color:
        rgba(255,255,255,.65);

    font-size: 12px;
}

.money-value strong {
    margin-top: 3px;

    font-size: 30px;
}

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 17px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background:
        rgba(255,255,255,.96);

    box-shadow: var(--shadow-md);
}

.floating-card > span {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        #ECFDF5;

    color: var(--secondary);

    font-weight: 800;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}

.floating-one {
    top: 35px;
    right: -5px;
}

.floating-two {
    bottom: 40px;
    left: 0;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 38px;
}

.section-heading h2 {
    font-size:
        clamp(28px, 3vw, 40px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.section-heading > a {
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    background: white;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.category-card {
    position: relative;

    padding: 26px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);

    background: white;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(37,99,235,.25);

    box-shadow: var(--shadow-md);
}

.category-icon {
    display: block;

    margin-bottom: 18px;

    font-size: 30px;
}

.category-card h3 {
    margin-bottom: 8px;

    font-size: 17px;
}

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

    font-size: 13px;

    line-height: 1.6;
}

.card-arrow {
    display: block;

    margin-top: 20px;

    color: var(--primary);

    font-weight: 700;
}


/* =========================
   ARTICLES
========================= */

.featured {
    background: var(--background);
}

.article-grid {
    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr;

    gap: 20px;
}

.article-card {
    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);

    background: white;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.article-image {
    height: 190px;

    display: flex;

    align-items: end;

    padding: 20px;

    color: white;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.article-card.large .article-image {
    height: 220px;
}

.investment-image {
    background:
        linear-gradient(
            135deg,
            #1E3A8A,
            #2563EB
        );
}

.sip-image {
    background:
        linear-gradient(
            135deg,
            #047857,
            #10B981
        );
}

.budget-image {
    background:
        linear-gradient(
            135deg,
            #92400E,
            #F59E0B
        );
}

.article-content {
    padding: 23px;
}

.article-category {
    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.article-content h3 {
    margin:
        9px 0
        10px;

    font-size: 19px;

    line-height: 1.3;
}

.article-content p {
    color: var(--muted);

    font-size: 13px;
}

.article-meta {
    display: flex;

    justify-content: space-between;

    margin-top: 22px;

    padding-top: 15px;

    border-top:
        1px solid
        var(--border);

    color: var(--muted);

    font-size: 11px;
}

.article-meta span:last-child {
    color: var(--primary);

    font-weight: 700;
}


/* =========================
   CALCULATORS
========================= */

.calculator-banner {
    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 50px;

    padding: 60px;

    border-radius: 28px;

    background:
        var(--dark);

    color: white;

    overflow: hidden;
}

.calculator-intro h2 {
    max-width: 400px;

    margin-bottom: 15px;

    font-size: 40px;

    line-height: 1.1;

    letter-spacing: -1px;
}

.calculator-intro p {
    max-width: 410px;

    margin-bottom: 25px;

    color:
        rgba(255,255,255,.65);
}

.calculator-intro .section-label {
    color: #60A5FA;
}

.calculator-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.calculator-card {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 24px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 15px;

    background:
        rgba(255,255,255,.05);

    transition:
        background var(--transition),
        transform var(--transition);
}

.calculator-card:hover {
    background:
        rgba(255,255,255,.1);

    transform: translateY(-3px);
}

.calculator-card > span {
    font-size: 25px;
}

.calculator-card strong {
    font-size: 15px;
}

.calculator-card small {
    color:
        rgba(255,255,255,.55);

    font-size: 11px;
}


/* =========================
   NEWSLETTER
========================= */

.newsletter {
    background: white;
}

.newsletter-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 55px;

    border:
        1px solid
        var(--border);

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #EFF6FF,
            #ECFDF5
        );
}

.newsletter-box h2 {
    margin-bottom: 10px;

    font-size: 34px;

    line-height: 1.15;
}

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

.newsletter-form {
    min-width: 390px;

    display: flex;

    padding: 5px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background: white;
}

.newsletter-form input {
    min-width: 0;

    flex: 1;

    padding: 12px;

    border: 0;

    outline: 0;

    background: transparent;

    font-size: 13px;
}

.newsletter-form button {
    padding: 11px 17px;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 12px;
    font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    padding:
        60px 0
        25px;

    background:
        #0B1120;

    color: white;
}

.footer-main {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 45px;

    border-bottom:
        1px solid
        rgba(255,255,255,.1);
}

.footer-brand p {
    max-width: 270px;

    margin-top: 17px;

    color:
        rgba(255,255,255,.5);

    font-size: 13px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-column h4 {
    margin-bottom: 8px;

    font-size: 13px;
}

.footer-column a {
    color:
        rgba(255,255,255,.55);

    font-size: 12px;

    transition:
        color var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    color:
        rgba(255,255,255,.4);

    font-size: 10px;
}
.mobile-nav.open {
    display: flex;

    flex-direction: column;

    padding: 15px 20px 20px;

    border-top:
        1px solid
        var(--border);

    background: white;
}

.mobile-nav.open a {
    padding: 12px 0;

    border-bottom:
        1px solid
        var(--border);

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;
}