/* ═══════════════════════════════════════════════
   WealthWise — Premium UI  |  wealthwise.css
   Fonts: Sora (display) + Nunito (body) + JetBrains Mono
   Palette: Deep Forest Green + Amber-Gold + Warm Neutrals
═══════════════════════════════════════════════ */

:root {
    --bg: #fafaf8;
    --bg2: #f2f0eb;
    --bg3: #e8e5de;
    --surface: #ffffff;
    --surface2: #f7f5f0;
    --glass: rgba(255, 255, 255, .78);
    --border: rgba(0, 0, 0, .07);
    --border2: rgba(0, 0, 0, .13);
    --text: #0d1117;
    --text2: #3d4451;
    --text3: #8a8f9e;
    --accent: #0f6644;
    --accent2: #0a4a2f;
    --accent3: #12805a;
    --accent-glow: rgba(15, 102, 68, .22);
    --accent-tint: rgba(15, 102, 68, .07);
    --gold: #c49a2a;
    --gold2: #e8b840;
    --gold-tint: rgba(196, 154, 42, .1);
    --red: #d93025;
    --blue: #1a6fcc;
    --sh1: 0 1px 2px rgba(0, 0, 0, .05);
    --sh2: 0 2px 8px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
    --sh3: 0 6px 24px rgba(0, 0, 0, .09), 0 2px 6px rgba(0, 0, 0, .05);
    --sh4: 0 16px 48px rgba(0, 0, 0, .11), 0 4px 12px rgba(0, 0, 0, .06);
    --sh5: 0 28px 80px rgba(0, 0, 0, .13), 0 8px 24px rgba(0, 0, 0, .07);
    --nav-h: 64px;
    --r1: 8px;
    --r2: 12px;
    --r3: 18px;
    --r4: 24px;
    --rf: 999px;
}

[data-theme="dark"] {
    --bg: #090c0a;
    --bg2: #101410;
    --bg3: #181d18;
    --surface: #141914;
    --surface2: #1a201a;
    --glass: rgba(16, 20, 16, .85);
    --border: rgba(255, 255, 255, .07);
    --border2: rgba(255, 255, 255, .13);
    --text: #eef0ec;
    --text2: #9ba89a;
    --text3: #576056;
    --accent: #1a8f5e;
    --accent2: #0f6644;
    --accent3: #22b077;
    --accent-glow: rgba(26, 143, 94, .28);
    --accent-tint: rgba(26, 143, 94, .1);
    --gold: #d4aa3a;
    --gold2: #f0c84a;
    --gold-tint: rgba(212, 170, 58, .12);
    --sh1: 0 1px 3px rgba(0, 0, 0, .35);
    --sh2: 0 2px 10px rgba(0, 0, 0, .45);
    --sh3: 0 6px 28px rgba(0, 0, 0, .55);
    --sh4: 0 16px 52px rgba(0, 0, 0, .65);
    --sh5: 0 28px 80px rgba(0, 0, 0, .75);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .35s, color .35s;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit
}

img {
    max-width: 100%;
    display: block
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--rf)
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: var(--nav-h)
}

.page.active {
    display: block
}

/* ───────────────────────────────────────
   PAGE LOADER
─────────────────────────────────────── */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity .55s ease, visibility .55s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.loader-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -.04em;
    animation: ldFade .5s .1s ease both;
}

.loader-logo svg {
    width: 40px;
    height: 40px;
    animation: ldPop .6s .05s cubic-bezier(.34, 1.56, .64, 1) both
}

.loader-subtitle {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: -.8rem;
    animation: ldFade .5s .3s ease both;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: var(--rf);
    overflow: hidden;
    animation: ldFade .5s .4s ease both;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold2), var(--accent3));
    border-radius: var(--rf);
    animation: ldFill 1.8s .5s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Animated bg bars */
.loader-bg-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 5%;
    opacity: .03;
    pointer-events: none;
    overflow: hidden;
}

.loader-bg-bars span {
    flex: 1;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    animation: ldBar 1.6s ease-in-out infinite alternate;
}

.loader-bg-bars span:nth-child(1) {
    animation-delay: 0s;
    height: 40%
}

.loader-bg-bars span:nth-child(2) {
    animation-delay: .1s;
    height: 65%
}

.loader-bg-bars span:nth-child(3) {
    animation-delay: .2s;
    height: 45%
}

.loader-bg-bars span:nth-child(4) {
    animation-delay: .3s;
    height: 80%
}

.loader-bg-bars span:nth-child(5) {
    animation-delay: .4s;
    height: 55%
}

.loader-bg-bars span:nth-child(6) {
    animation-delay: .5s;
    height: 70%
}

.loader-bg-bars span:nth-child(7) {
    animation-delay: .6s;
    height: 35%
}

.loader-bg-bars span:nth-child(8) {
    animation-delay: .7s;
    height: 90%
}

.loader-bg-bars span:nth-child(9) {
    animation-delay: .8s;
    height: 60%
}

.loader-bg-bars span:nth-child(10) {
    animation-delay: .9s;
    height: 50%
}

.loader-bg-bars span:nth-child(11) {
    animation-delay: .15s;
    height: 75%
}

.loader-bg-bars span:nth-child(12) {
    animation-delay: .25s;
    height: 42%
}

.loader-bg-bars span:nth-child(13) {
    animation-delay: .35s;
    height: 88%
}

.loader-bg-bars span:nth-child(14) {
    animation-delay: .45s;
    height: 58%
}

.loader-bg-bars span:nth-child(15) {
    animation-delay: .55s;
    height: 67%
}

@keyframes ldFill {
    0% {
        width: 0
    }

    55% {
        width: 72%
    }

    85% {
        width: 91%
    }

    100% {
        width: 100%
    }
}

@keyframes ldFade {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes ldPop {
    from {
        transform: scale(0) rotate(-20deg)
    }

    to {
        transform: scale(1) rotate(0)
    }
}

@keyframes ldBar {
    0% {
        transform: scaleY(.4)
    }

    100% {
        transform: scaleY(1)
    }
}

/* ───────────────────────────────────────
   NAVBAR
─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 5%;
    gap: .8rem;
    transition: background .3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Sora', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    letter-spacing: -.04em;
    transition: opacity .2s;
}

.nav-logo:hover {
    opacity: .8
}

.nav-logo svg {
    width: 30px;
    height: 30px
}

.nav-links {
    display: flex;
    gap: .1rem;
    list-style: none;
    margin-left: auto;
    align-items: center
}

.nav-links li a {
    padding: .4rem .82rem;
    border-radius: var(--r1);
    font-size: .84rem;
    font-weight: 700;
    color: var(--text3);
    transition: all .18s;
    display: block;
}

.nav-links li a:hover {
    color: var(--text);
    background: var(--accent-tint)
}

.nav-links li a.active {
    color: var(--accent)
}

.nav-invest-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--rf) !important;
    padding: .4rem 1.1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 12px var(--accent-glow);
    transition: all .2s !important;
}

.nav-invest-btn:hover {
    background: var(--accent2) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 20px var(--accent-glow) !important
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: .6rem
}

.theme-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--r1);
    border: 1px solid var(--border);
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: .85rem;
    cursor: pointer;
    transition: .18s;
}

.theme-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.theme-menu {
    position: absolute;
    top: calc(var(--nav-h)+6px);
    right: 5%;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: .4rem;
    min-width: 148px;
    box-shadow: var(--sh4);
    display: none;
    animation: menuFade .18s ease both;
}

.theme-menu.open {
    display: block
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.theme-opt {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .8rem;
    border-radius: var(--r1);
    font-size: .83rem;
    color: var(--text2);
    width: 100%;
    cursor: pointer;
    transition: .15s;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.theme-opt:hover {
    background: var(--accent-tint);
    color: var(--accent)
}

.theme-opt.active {
    color: var(--accent);
    font-weight: 800
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s
}

.mob-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    z-index: 999;
}

.mob-nav.open {
    display: block
}

.mob-nav a {
    display: block;
    padding: .65rem 0;
    color: var(--text2);
    font-weight: 700;
    font-size: .9rem;
    border-bottom: 1px solid var(--border)
}

.mob-nav a:last-child {
    border: none
}

/* ───────────────────────────────────────
   HERO
─────────────────────────────────────── */
.hero-section {
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(15, 102, 68, .055) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(196, 154, 42, .045) 0%, transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero {
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
    padding: 5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--accent-tint);
    border: 1px solid rgba(15, 102, 68, .2);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .32rem .88rem;
    border-radius: var(--rf);
    margin-bottom: 1.3rem;
    animation: heroIn .6s .3s ease both;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.2rem;
    letter-spacing: -.04em;
    animation: heroIn .7s .45s ease both;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 30%, var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text2);
    font-size: 1.01rem;
    max-width: 470px;
    margin-bottom: 1.9rem;
    line-height: 1.76;
    animation: heroIn .7s .6s ease both
}

.hero-ctas {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: heroIn .7s .7s ease both
}

.hero-stats {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    animation: heroIn .7s .8s ease both
}

.stat-val {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em
}

.stat-lab {
    font-size: .7rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 2px;
    font-weight: 700
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: var(--r1);
    font-weight: 800;
    font-size: .88rem;
    font-family: 'Nunito', sans-serif;
    transition: all .22s;
    box-shadow: 0 4px 18px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow)
}

.btn-primary:active {
    transform: translateY(0)
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1.5px solid var(--border2);
    color: var(--text2);
    padding: .75rem 1.5rem;
    border-radius: var(--r1);
    font-weight: 700;
    font-size: .88rem;
    transition: all .2s;
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-tint);
    transform: translateY(-1px)
}

/* Hero Card */
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r4);
    padding: 1.75rem;
    box-shadow: var(--sh5);
    animation: heroIn .8s .5s ease both;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem
}

.hc-title {
    font-size: .9rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif
}

.hc-badge {
    background: var(--accent-tint);
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    padding: .24rem .65rem;
    border-radius: var(--rf)
}

.hc-amount {
    font-family: 'Sora', sans-serif;
    font-size: 2.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .2rem;
    letter-spacing: -.03em;
}

.hc-sub {
    color: var(--text3);
    font-size: .76rem;
    margin-bottom: 1rem;
    font-weight: 600
}

.hc-tabs {
    display: flex;
    gap: .3rem;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.hc-tab {
    padding: .28rem .65rem;
    border-radius: var(--r1);
    font-size: .72rem;
    font-weight: 800;
    border: 1.5px solid var(--border);
    color: var(--text3);
    cursor: pointer;
    transition: .18s;
}

.hc-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow)
}

.hc-tab:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent)
}

.slider-row {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--text3);
    margin-bottom: .35rem;
    font-weight: 700
}

.slider-row b {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace
}

input[type=range] {
    width: 100%;
    margin-bottom: .85rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: var(--bg3);
    border-radius: var(--rf);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform .15s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.18)
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: none
}

.hc-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    border-top: 1px solid var(--border);
    padding-top: .95rem;
    margin-top: .5rem
}

.hc-item-lab {
    font-size: .66rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .18rem;
    font-weight: 800
}

.hc-item-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text)
}

.hc-item-val.green {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700
}

/* ───────────────────────────────────────
   SECTIONS
─────────────────────────────────────── */
.section {
    padding: 5rem 5%;
    max-width: 1300px;
    margin: 0 auto
}

.sl {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: .55rem;
    display: block
}

.st {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .75rem;
    letter-spacing: -.03em
}

.ss {
    color: var(--text2);
    font-size: .97rem;
    max-width: 520px;
    line-height: 1.72;
    font-weight: 600
}

.sh {
    margin-bottom: 3rem
}

/* X Band */
.x-band {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r3);
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto 2.5rem;
    box-shadow: var(--sh2);
}

.x-band-left {
    display: flex;
    align-items: center;
    gap: 1rem
}

.x-icon-box {
    width: 42px;
    height: 42px;
    background: #000;
    border-radius: var(--r1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25)
}

.x-band-text h4 {
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: .1rem;
    font-family: 'Sora', sans-serif
}

.x-band-text p {
    font-size: .78rem;
    color: var(--text3);
    font-weight: 600
}

.btn-x {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #000;
    color: #fff;
    padding: .58rem 1.2rem;
    border-radius: var(--r1);
    font-weight: 800;
    font-size: .83rem;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
    font-family: 'Nunito', sans-serif
}

.btn-x:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35)
}

/* Features */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.3rem
}

.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.8rem;
    transition: all .28s;
    position: relative;
    overflow: hidden;
}

.feat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold2));
    transform: scaleX(0);
    transform-origin: left;
    transition: .3s
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh3);
    border-color: rgba(15, 102, 68, .2)
}

.feat-card:hover::after {
    transform: scaleX(1)
}

.feat-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-tint), var(--gold-tint));
    border-radius: var(--r2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border)
}

.feat-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .45rem;
    font-family: 'Sora', sans-serif
}

.feat-text {
    color: var(--text2);
    font-size: .83rem;
    line-height: 1.62;
    font-weight: 600
}

/* Graphs section */
.graphs-section {
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.graphs-inner {
    max-width: 1300px;
    margin: 0 auto
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.8rem
}

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.5rem;
    box-shadow: var(--sh2);
    transition: box-shadow .25s
}

.chart-card:hover {
    box-shadow: var(--sh3)
}

.chart-card h3 {
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: .22rem;
    font-family: 'Sora', sans-serif
}

.chart-card p {
    font-size: .74rem;
    color: var(--text3);
    margin-bottom: 1rem;
    font-weight: 600
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 220px
}

/* Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem
}

.testi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.5rem;
    transition: all .25s;
    position: relative
}

.testi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh3);
    border-color: rgba(15, 102, 68, .16)
}

.testi-quote {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.5rem;
    color: var(--accent-tint);
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 900
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    margin-bottom: .9rem;
    box-shadow: 0 3px 10px var(--accent-glow);
    font-family: 'Sora', sans-serif
}

.testi-name {
    font-weight: 800;
    font-size: .9rem;
    font-family: 'Sora', sans-serif
}

.testi-role {
    font-size: .72rem;
    color: var(--text3);
    margin-bottom: .75rem;
    font-weight: 700
}

.testi-text {
    color: var(--text2);
    font-size: .83rem;
    line-height: 1.62;
    font-style: italic;
    font-weight: 600
}

.stars {
    color: var(--gold);
    font-size: .78rem;
    margin-bottom: .45rem;
    letter-spacing: .04em
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 50%, var(--accent3) 100%);
    border-radius: var(--r4);
    padding: 3.5rem;
    text-align: center;
    color: #fff;
    max-width: 1300px;
    margin: 0 auto 5rem;
    box-shadow: 0 24px 72px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    pointer-events: none
}

.cta-band h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .7rem;
    letter-spacing: -.03em
}

.cta-band p {
    opacity: .88;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 700
}

.cta-btns {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap
}

.btn-white {
    background: #fff;
    color: var(--accent2);
    padding: .75rem 1.5rem;
    border-radius: var(--r1);
    font-weight: 800;
    font-size: .88rem;
    transition: all .22s;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15)
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2)
}

.btn-ghost {
    border: 2px solid rgba(255, 255, 255, .42);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: var(--r1);
    font-weight: 700;
    font-size: .88rem;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
    backdrop-filter: blur(8px)
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .65)
}

/* X Posts */
.x-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.1rem;
    max-width: 1000px;
    margin: 0 auto 2rem
}

.x-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.2rem;
    transition: all .22s
}

.x-post:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, .14)
}

.x-post-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem
}

.xpa {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif
}

.x-post-name {
    font-weight: 800;
    font-size: .83rem;
    font-family: 'Sora', sans-serif
}

.x-post-handle {
    font-size: .72rem;
    color: var(--text3);
    font-weight: 600
}

.x-post-text {
    font-size: .83rem;
    color: var(--text2);
    line-height: 1.56;
    font-weight: 600
}

.x-post-date {
    font-size: .7rem;
    color: var(--text3);
    margin-top: .75rem;
    font-weight: 700
}

/* Footer */
footer {
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid var(--border);
    padding: 2rem 6%
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border)
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent);
    letter-spacing: -.03em
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap
}

.footer-links a {
    font-size: .83rem;
    color: var(--text3);
    font-weight: 700;
    transition: .18s
}

.footer-links a:hover {
    color: var(--accent)
}

.footer-copy {
    font-size: .76rem;
    color: var(--text3);
    font-weight: 600
}

.footer-disclaimer {
    font-size: .7rem;
    color: var(--text3);
    margin-top: .3rem;
    font-weight: 600
}

/* ───────────────────────────────────────
   TOOLS PAGE
─────────────────────────────────────── */
.page-hero {
    padding: 3.5rem 5% 2rem;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center
}

.page-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: .6rem;
    letter-spacing: -.03em
}

.page-hero p {
    color: var(--text2);
    max-width: 520px;
    margin: 0 auto;
    font-size: .92rem;
    font-weight: 600
}

.tools-section {
    padding: 1.5rem 5% 5rem;
    max-width: 1300px;
    margin: 0 auto
}

.tools-cat {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--text3);
    margin: 2.2rem 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .7rem
}

.tools-cat::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.1rem
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--gold2));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: .3s
}

.tool-card:hover {
    border-color: rgba(15, 102, 68, .3);
    box-shadow: var(--sh3);
    transform: translateY(-3px)
}

.tool-card:hover::before {
    transform: scaleY(1)
}

.tool-icon {
    font-size: 1.55rem
}

.tool-card h3 {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.3;
    font-family: 'Sora', sans-serif
}

.tool-card p {
    color: var(--text2);
    font-size: .8rem;
    line-height: 1.55;
    flex: 1;
    font-weight: 600
}

.tool-explore {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    color: var(--accent);
    font-size: .79rem;
    font-weight: 800;
    transition: .2s;
    margin-top: .3rem
}

.tool-explore:hover {
    gap: .55rem
}

/* Tool sub-page */
#tool-subpage {
    display: none
}

#tool-subpage.active {
    display: block
}

.tool-sub-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.2rem 5%
}

.tool-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text3);
    font-size: .84rem;
    cursor: pointer;
    margin-bottom: 1.8rem;
    transition: .2s;
    font-weight: 700
}

.tool-back:hover {
    color: var(--accent)
}

.tool-sub-header {
    margin-bottom: 2rem
}

.tool-sub-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: .4rem;
    letter-spacing: -.03em
}

.tool-sub-header p {
    color: var(--text3);
    font-size: .88rem;
    font-weight: 600
}

.tool-type-tabs {
    display: flex;
    gap: .35rem;
    margin-bottom: 2rem;
    background: var(--bg2);
    padding: .3rem;
    border-radius: var(--r2);
    width: fit-content
}

.tool-tab {
    padding: .42rem .95rem;
    border-radius: var(--r1);
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--text3);
    transition: .2s;
    font-family: 'Nunito', sans-serif
}

.tool-tab.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--sh2)
}

.tool-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start
}

.tool-inputs {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.7rem;
    box-shadow: var(--sh2)
}

.tool-inputs h3 {
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: 1.4rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em
}

.field {
    margin-bottom: 1.2rem
}

.field label {
    display: block;
    font-size: .79rem;
    font-weight: 800;
    color: var(--text2);
    margin-bottom: .42rem
}

.field input,
.field select {
    width: 100%;
    padding: .62rem .9rem;
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: var(--r1);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: .88rem;
    outline: none;
    transition: .2s
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-tint)
}

.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    padding: .78rem;
    border-radius: var(--r1);
    font-weight: 800;
    font-size: .9rem;
    font-family: 'Nunito', sans-serif;
    transition: all .22s;
    margin-top: .5rem;
    box-shadow: 0 3px 12px var(--accent-glow)
}

.calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow)
}

.tool-results {
    display: flex;
    flex-direction: column;
    gap: 1.2rem
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.45rem;
    box-shadow: var(--sh2)
}

.result-card h3 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border)
}

.result-row:last-child {
    border: none;
    font-weight: 800
}

.result-label {
    font-size: .82rem;
    color: var(--text2);
    font-weight: 600
}

.result-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text)
}

.result-val.g {
    color: var(--accent)
}

.result-val.r {
    color: var(--red)
}

.result-highlight {
    background: linear-gradient(135deg, var(--accent-tint), var(--gold-tint));
    border: 1.5px solid rgba(15, 102, 68, .18);
    border-radius: var(--r3);
    padding: 1.3rem;
    text-align: center
}

.result-highlight .label {
    font-size: .73rem;
    color: var(--text3);
    margin-bottom: .35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em
}

.result-highlight .value {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.result-highlight .sub {
    font-size: .74rem;
    color: var(--text3);
    margin-top: .25rem;
    font-weight: 600
}

.chart-result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 1.45rem
}

.chart-result h3 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem
}

.tip-box {
    background: linear-gradient(135deg, var(--accent-tint), var(--gold-tint));
    border-radius: var(--r2);
    padding: 1.1rem;
    font-size: .8rem;
    color: var(--text2);
    line-height: 1.58;
    border-left: 3px solid var(--accent);
    font-weight: 600
}

.tip-box b {
    color: var(--accent);
    font-weight: 800
}

/* ADDED FURTHER TO TOOLS */
#tools-list-view {
    display: block
}

/* ── Tool card ripple ── */
.tool-card {
    position: relative;
    overflow: hidden
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 102, 68, .18);
    transform: scale(0);
    animation: rippleOut .55s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleOut {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── Page-level slide transitions ── */
@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(-52px)
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(52px)
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.anim-out-left {
    animation: slideOutLeft .27s cubic-bezier(.4, 0, .6, 1) both
}

.anim-in-right {
    animation: slideInRight .32s cubic-bezier(.2, 0, .2, 1) both
}

.anim-out-right {
    animation: slideOutRight .27s cubic-bezier(.4, 0, .6, 1) both
}

.anim-in-left {
    animation: slideInLeft .32s cubic-bezier(.2, 0, .2, 1) both
}

/* ── Sub-page header & back button drop-in ── */
@keyframes hdrDrop {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hdr-anim {
    animation: hdrDrop .38s .12s cubic-bezier(.4, 0, .2, 1) both
}

.bk-anim {
    animation: hdrDrop .3s .04s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Inputs & Results panels stagger up ── */
@keyframes panelUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.tool-inputs {
    animation: panelUp .4s .20s cubic-bezier(.4, 0, .2, 1) both
}

.tool-results {
    animation: panelUp .4s .32s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Tab-switch flash ── */
@keyframes tabFlash {
    from {
        opacity: .25;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.tab-switch {
    animation: tabFlash .24s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Result rows stagger in from left ── */
@keyframes rowSlide {
    from {
        opacity: 0;
        transform: translateX(-16px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.row-anim {
    animation: rowSlide .28s ease both
}

/* ── Result highlight pop + glow ── */
@keyframes hlPop {
    0% {
        transform: scale(.88);
        opacity: 0
    }

    65% {
        transform: scale(1.05)
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.hl-pop {
    animation: hlPop .5s cubic-bezier(.34, 1.56, .64, 1) both
}

@keyframes valGlow {

    0%,
    100% {
        color: var(--accent)
    }

    40% {
        color: var(--accent3);
        text-shadow: 0 0 18px var(--accent-glow)
    }
}

.val-glow {
    animation: valGlow .7s ease both
}

/* ── Chart result fade-scale in ── */
@keyframes chartIn {
    from {
        opacity: 0;
        transform: scaleY(.82);
        transform-origin: bottom
    }

    to {
        opacity: 1;
        transform: scaleY(1)
    }
}

.chart-anim {
    animation: chartIn .5s .38s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Tip box bounce in ── */
@keyframes tipBounce {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.tip-anim {
    animation: tipBounce .42s .52s cubic-bezier(.34, 1.4, .64, 1) both
}

/* ── Back button hover ── */
.tool-back {
    transition: all .2s;
    padding: .4rem .85rem;
    border-radius: var(--r1, 8px);
    margin-left: -.85rem
}

.tool-back:hover {
    background: var(--accent-tint, rgba(15, 102, 68, .07));
    transform: translateX(-4px)
}

/* ── Active tab underline sweep ── */
@keyframes tabLine {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

.tool-tab.active {
    position: relative
}

.tool-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--accent, #0f6644);
    border-radius: 2px;
    animation: tabLine .22s ease both;
}

/* ───────────────────────────────────────
   BLOGS
─────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
    padding: 1.5rem 5% 5rem;
    max-width: 1300px;
    margin: 0 auto
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh4);
    border-color: rgba(15, 102, 68, .2)
}

.blog-img {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--accent-tint), var(--gold-tint))
}

.blog-body {
    padding: 1.3rem
}

.blog-tag {
    font-size: .68rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .45rem
}

.blog-title {
    font-size: .98rem;
    font-weight: 800;
    margin-bottom: .45rem;
    line-height: 1.35;
    font-family: 'Sora', sans-serif
}

.blog-excerpt {
    color: var(--text2);
    font-size: .81rem;
    line-height: 1.55;
    margin-bottom: .95rem;
    font-weight: 600
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--text3);
    font-weight: 700
}

.blog-rm {
    color: var(--accent);
    font-weight: 800;
    font-size: .78rem
}

#blog-single {
    display: none
}

#blog-single.active {
    display: block
}

.blog-single-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 5%
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text3);
    font-size: .85rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: .2s;
    font-weight: 700
}

.blog-back:hover {
    color: var(--accent)
}

.blog-single-tag {
    font-size: .7rem;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .55rem
}

.blog-single-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .95rem;
    letter-spacing: -.03em
}

.blog-single-meta {
    display: flex;
    gap: 1.4rem;
    font-size: .78rem;
    color: var(--text3);
    margin-bottom: 1.9rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.4rem;
    font-weight: 700
}

.blog-hero-img {
    height: 270px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border-radius: var(--r3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 2rem
}

.blog-single-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 2rem 0 .7rem;
    letter-spacing: -.02em
}

.blog-single-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 1.5rem 0 .55rem;
    font-family: 'Sora', sans-serif
}

.blog-single-body p {
    color: var(--text2);
    line-height: 1.82;
    margin-bottom: 1.15rem;
    font-size: .94rem;
    font-weight: 600
}

.blog-single-body ul {
    margin: 0 0 1.15rem 1.5rem;
    color: var(--text2);
    line-height: 1.8;
    font-size: .94rem;
    font-weight: 600
}

.blog-single-body blockquote {
    border-left: 3px solid var(--accent);
    padding: .85rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-tint), var(--gold-tint));
    border-radius: 0 var(--r2) var(--r2) 0;
    margin: 1.5rem 0;
    color: var(--text2);
    font-style: italic;
    font-size: .94rem;
    font-weight: 600
}

/* ADDED FURTHER TO BLOGS */
/* ── Blog card ripple ── */
.blog-card {
    position: relative;
    overflow: hidden
}

.blog-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 102, 68, .14);
    transform: scale(0);
    animation: blogRipple .55s ease-out forwards;
    pointer-events: none;
}

@keyframes blogRipple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── Page slide transitions ── */
@keyframes bSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(-52px)
    }
}

@keyframes bSlideInRight {
    from {
        opacity: 0;
        transform: translateX(60px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes bSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(52px)
    }
}

@keyframes bSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.b-out-left {
    animation: bSlideOutLeft .27s cubic-bezier(.4, 0, .6, 1) both
}

.b-in-right {
    animation: bSlideInRight .34s cubic-bezier(.2, 0, .2, 1) both
}

.b-out-right {
    animation: bSlideOutRight .27s cubic-bezier(.4, 0, .6, 1) both
}

.b-in-left {
    animation: bSlideInLeft .34s cubic-bezier(.2, 0, .2, 1) both
}

/* ── Single blog content stagger ── */
@keyframes bBackDrop {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bTagDrop {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bTitleIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bMetaIn {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bImgScale {
    from {
        opacity: 0;
        transform: scale(.96)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes bBodyIn {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bs-back-anim {
    animation: bBackDrop .3s .04s cubic-bezier(.4, 0, .2, 1) both
}

.bs-tag-anim {
    animation: bTagDrop .3s .12s cubic-bezier(.4, 0, .2, 1) both
}

.bs-title-anim {
    animation: bTitleIn .4s .20s cubic-bezier(.4, 0, .2, 1) both
}

.bs-meta-anim {
    animation: bMetaIn .35s .30s cubic-bezier(.4, 0, .2, 1) both
}

.bs-img-anim {
    animation: bImgScale .45s .38s cubic-bezier(.4, 0, .2, 1) both
}

.bs-body-anim {
    animation: bBodyIn .45s .46s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Back button hover ── */
.blog-back {
    transition: all .2s;
    padding: .4rem .85rem;
    border-radius: 8px;
    margin-left: -.85rem
}

.blog-back:hover {
    background: var(--accent-tint, rgba(15, 102, 68, .07));
    transform: translateX(-4px)
}

/* ── Blog body headings & paragraphs animate on scroll ── */
@keyframes bodyElemIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.blog-single-body h2,
.blog-single-body h3,
.blog-single-body p,
.blog-single-body ul,
.blog-single-body blockquote {
    opacity: 0;
    animation: bodyElemIn .5s ease both;
}

/* ───────────────────────────────────────
   INVEST
─────────────────────────────────────── */
.invest-wrap {
    max-width: 660px;
    margin: 0 auto;
    padding: 2.8rem 5%
}

.prog-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: .7rem
}

.pdot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: var(--text3);
    transition: .35s;
    font-family: 'Sora', sans-serif
}

.pdot.done {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow)
}

.pdot.active {
    border-color: var(--accent);
    color: var(--accent)
}

.prog-bar {
    display: flex;
    gap: .4rem;
    margin-bottom: 2.8rem
}

.pbar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: var(--rf);
    transition: .45s
}

.pbar.done {
    background: var(--accent)
}

.pbar.active {
    background: linear-gradient(90deg, var(--accent), var(--gold2))
}

.inv-q {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .4rem;
    letter-spacing: -.03em
}

.inv-sub {
    color: var(--text3);
    font-size: .87rem;
    margin-bottom: 1.9rem;
    font-weight: 600
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: .85rem;
    margin-bottom: 1.9rem
}

.goal-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r3);
    padding: 1.3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .22s
}

.goal-card:hover {
    border-color: var(--accent);
    box-shadow: var(--sh2)
}

.goal-card.selected {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: 0 0 0 3px var(--accent-tint)
}

.gi {
    font-size: 1.7rem;
    margin-bottom: .45rem
}

.gl {
    font-weight: 800;
    font-size: .85rem;
    margin-bottom: .18rem;
    font-family: 'Sora', sans-serif
}

.gd {
    font-size: .7rem;
    color: var(--text3);
    font-weight: 600
}

.inv-continue {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    padding: .82rem;
    border-radius: var(--r2);
    font-weight: 800;
    font-size: .92rem;
    font-family: 'Nunito', sans-serif;
    transition: all .22s;
    box-shadow: 0 4px 16px var(--accent-glow)
}

.inv-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow)
}

.inv-continue:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.risk-cards {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 1.9rem
}

.risk-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--r3);
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    transition: all .22s;
    display: flex;
    align-items: center;
    gap: 1rem
}

.risk-card:hover {
    border-color: var(--accent);
    box-shadow: var(--sh2)
}

.risk-card.selected {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: 0 0 0 3px var(--accent-tint)
}

.ri {
    font-size: 1.45rem
}

.rn {
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: .18rem;
    font-family: 'Sora', sans-serif
}

.rd {
    font-size: .76rem;
    color: var(--text3);
    font-weight: 600
}

.inv-back {
    display: block;
    text-align: center;
    color: var(--text3);
    font-size: .83rem;
    cursor: pointer;
    margin-top: .95rem;
    font-weight: 700
}

.inv-back:hover {
    color: var(--accent)
}

.invest-final {
    text-align: center;
    padding: 2.5rem 0
}

.invest-final .big-icon {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    animation: bounceIn .6s ease both
}

@keyframes bounceIn {
    0% {
        transform: scale(0)
    }

    70% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.invest-final h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .55rem;
    letter-spacing: -.03em
}

.invest-final p {
    color: var(--text2);
    margin-bottom: 2rem;
    font-size: .92rem;
    line-height: 1.7;
    font-weight: 600
}

/* ADDED FURTHER TO INVEST */
/* ── Page entrance ── */
@keyframes invPageIn {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.invest-wrap {
    animation: invPageIn .5s .1s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Header drop-in ── */
@keyframes invHeadIn {
    from {
        opacity: 0;
        transform: translateY(-18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.inv-page-header {
    animation: invHeadIn .45s .15s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Progress bar fills animated ── */
.pbar {
    transition: background .5s cubic-bezier(.4, 0, .2, 1), width .5s
}

.pdot {
    transition: background .35s, border-color .35s, box-shadow .35s, transform .35s
}

.pdot.done,
.pdot.active {
    transform: scale(1.12)
}

/* ── Step transition slide ── */
@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes stepSlideOut {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(-40px)
    }
}

@keyframes stepBackIn {
    from {
        opacity: 0;
        transform: translateX(-40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes stepBackOut {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(40px)
    }
}

.step-in {
    animation: stepSlideIn .32s cubic-bezier(.4, 0, .2, 1) both
}

.step-out {
    animation: stepSlideOut .22s cubic-bezier(.4, 0, .6, 1) both
}

.step-back-in {
    animation: stepBackIn .32s cubic-bezier(.4, 0, .2, 1) both
}

.step-back-out {
    animation: stepBackOut .22s cubic-bezier(.4, 0, .6, 1) both
}

/* ── Question & subtitle slide up ── */
@keyframes qSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.inv-q {
    animation: qSlideUp .35s .08s cubic-bezier(.4, 0, .2, 1) both
}

.inv-sub {
    animation: qSlideUp .35s .16s cubic-bezier(.4, 0, .2, 1) both
}

/* ── Goal cards stagger in ── */
@keyframes cardPop {
    from {
        opacity: 0;
        transform: scale(.88) translateY(12px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.goal-card {
    animation: cardPop .35s cubic-bezier(.34, 1.4, .64, 1) both
}

/* ── Goal card selection pulse ── */
.goal-card {
    transition: border-color .2s, background .2s, transform .18s, box-shadow .2s
}

.goal-card.selected {
    transform: scale(1.04)
}

.goal-card:active {
    transform: scale(.96)
}

/* ── Risk cards stagger in ── */
@keyframes riskSlide {
    from {
        opacity: 0;
        transform: translateX(-20px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.risk-card {
    animation: riskSlide .35s cubic-bezier(.4, 0, .2, 1) both
}

.risk-card {
    transition: border-color .2s, background .2s, transform .18s, box-shadow .2s
}

.risk-card.selected {
    transform: translateX(6px)
}

.risk-card:active {
    transform: scale(.98)
}

/* ── Continue button pulse when enabled ── */
@keyframes btnReady {

    0%,
    100% {
        box-shadow: 0 4px 16px var(--accent-glow, rgba(15, 102, 68, .22))
    }

    50% {
        box-shadow: 0 6px 28px var(--accent-glow, rgba(15, 102, 68, .38))
    }
}

.inv-continue:not(:disabled) {
    animation: btnReady 2s 0.4s ease-in-out infinite
}

.inv-continue {
    transition: opacity .3s, transform .2s, box-shadow .2s
}

/* ── Step 3 celebration ── */
@keyframes confettiBounce {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0
    }

    60% {
        transform: scale(1.25) rotate(8deg)
    }

    80% {
        transform: scale(.92) rotate(-3deg)
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1
    }
}

.invest-final .big-icon {
    animation: confettiBounce .7s .1s cubic-bezier(.34, 1.56, .64, 1) both
}

@keyframes finalTitleIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.invest-final h2 {
    animation: finalTitleIn .45s .5s ease both
}

.invest-final p {
    animation: finalTitleIn .45s .62s ease both
}

@keyframes finalBtnIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.invest-final .btn-primary {
    animation: finalBtnIn .5s .78s cubic-bezier(.34, 1.3, .64, 1) both
}

.invest-final .inv-back {
    animation: finalBtnIn .4s .92s ease both
}

/* ── Ripple on goal cards ── */
.goal-card {
    position: relative;
    overflow: hidden
}

.inv-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 102, 68, .15);
    transform: scale(0);
    animation: invRipple .5s ease-out forwards;
    pointer-events: none
}

@keyframes invRipple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── Checkmark on selected goal ── */
.goal-card.selected .gi::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent, #0f6644);
    color: #fff;
    border-radius: 50%;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    animation: checkIn .25s cubic-bezier(.34, 1.56, .64, 1) both
}

.goal-card .gi {
    position: relative;
    display: inline-block
}

@keyframes checkIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* ── Progress dot connector line ── */
.prog-dots {
    position: relative
}

.prog-dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(14px + 10%);
    right: calc(14px + 10%);
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 1px
}

.pdot {
    position: relative;
    z-index: 1;
    background: var(--surface)
}

/* ───────────────────────────────────────
   CHATBOT
─────────────────────────────────────── */
.chatbot-window {
    position: fixed;
    bottom: 5.2rem;
    right: 1.5rem;
    z-index: 899;
    width: 338px;
    max-height: 500px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r4);
    box-shadow: var(--sh5);
    display: none;
    flex-direction: column;
    overflow: hidden
}

.chatbot-window.open {
    display: flex;
    animation: chatIn .3s ease both
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.chatbot-head {
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    color: #fff;
    padding: .95rem 1.15rem;
    display: flex;
    align-items: center;
    gap: .75rem
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    border: 1.5px solid rgba(255, 255, 255, .25)
}

.chatbot-head-info h4 {
    font-weight: 800;
    font-size: .86rem;
    font-family: 'Sora', sans-serif
}

.chatbot-head-info p {
    font-size: .7rem;
    opacity: .78;
    font-weight: 600
}

.chatbot-close {
    margin-left: auto;
    opacity: .78;
    cursor: pointer;
    font-size: 1rem;
    transition: .15s
}

.chatbot-close:hover {
    opacity: 1
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: .95rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 320px
}

.chat-msg {
    max-width: 84%;
    padding: .6rem .88rem;
    border-radius: var(--r2);
    font-size: .82rem;
    line-height: 1.52;
    font-weight: 600
}

.chat-msg.bot {
    background: var(--bg2);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 3px
}

.chat-msg.user {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px
}

.chat-msg.typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: .7rem .88rem
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text3);
    animation: dotBounce 1.2s infinite
}

.dot:nth-child(2) {
    animation-delay: .2s
}

.dot:nth-child(3) {
    animation-delay: .4s
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-6px)
    }
}

.chatbot-input-wrap {
    border-top: 1px solid var(--border);
    padding: .75rem;
    display: flex;
    gap: .5rem
}

.chatbot-input {
    flex: 1;
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: var(--r1);
    padding: .52rem .78rem;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: .82rem;
    outline: none;
    resize: none;
    font-weight: 600;
    transition: .18s
}

.chatbot-input:focus {
    border-color: var(--accent);
    background: var(--surface)
}

.chatbot-send {
    width: 34px;
    height: 34px;
    border-radius: var(--r1);
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s;
    box-shadow: 0 2px 8px var(--accent-glow)
}

.chatbot-send:hover {
    transform: scale(1.08)
}

.chat-qr {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem
}

.qr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rf);
    padding: .28rem .65rem;
    font-size: .71rem;
    color: var(--accent);
    cursor: pointer;
    transition: .2s;
    font-family: 'Nunito', sans-serif;
    font-weight: 800
}

.qr:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.chatbot-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #fff;
    box-shadow: 0 6px 24px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all .25s
}

.chatbot-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 36px var(--accent-glow)
}

.wa-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #25d366;
    color: #fff;
    padding: 1.1rem 1.1rem;
    border-radius: var(--rf);
    font-size: .8rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 6px 22px rgba(37, 211, 102, .4);
    transition: all .25s
}

.wa-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, .52);
    background: #1ebe5d
}

/* ───────────────────────────────────────
   SCROLL REVEAL
─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-d1 {
    transition-delay: .1s
}

.reveal-d2 {
    transition-delay: .2s
}

.reveal-d3 {
    transition-delay: .3s
}

.reveal-d4 {
    transition-delay: .4s
}

/* ───────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────── */
@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.2rem
    }

    .hero-card {
        order: -1
    }

    .tool-main-layout {
        grid-template-columns: 1fr
    }

    .charts-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .nav-links {
        display: none
    }

    .hamburger {
        display: flex
    }

    .hero {
        padding: 2.2rem 5%
    }

    .cta-band {
        padding: 2.2rem 1.5rem
    }

    .goal-grid {
        grid-template-columns: 1fr 1fr
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        right: 1rem
    }

    .wa-fab .wa-label {
        display: none
    }

    .wa-fab {
        border-radius: 50%;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center
    }
}

/* Tool subpage hidden by default on tools.html */
#tool-subpage {
    display: none;
}