:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(13, 27, 30, .08);
    background: rgba(247, 248, 243, .88);
    padding: .95rem max(1rem, calc((100vw - 80rem) / 2));
    backdrop-filter: blur(18px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-weight: 950;
}

.brand-mark span {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 1rem;
    background: #0b6b4f;
    color: white;
    box-shadow: 0 14px 32px rgba(11, 107, 79, .24);
}

.brand-mark img {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .8rem;
    object-fit: cover;
    background: white;
}

.brand-mark small {
    display: block;
    margin-top: .05rem;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .65;
}

.site-footer { background: #0d1b1e; color: white; }
.site-footer h3 { margin-bottom: 1rem; font-weight: 950; }
.site-footer a:not(.brand-mark) { display: block; margin: .7rem 0; color: rgba(255,255,255,.62); font-size: .9rem; font-weight: 700; }
.site-footer a:not(.brand-mark):hover { color: #dff7ec; }
.install-app-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 1rem; background: #dff7ec; color: #0b6b4f; padding: .85rem 1rem; font-size: .88rem; font-weight: 950; }

.site-link,
.site-cta,
.hero-primary,
.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 1rem;
    font-weight: 950;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-link {
    padding: .75rem 1rem;
    color: #0b6b4f;
}

.site-cta {
    background: #0d1b1e;
    color: white;
    padding: .8rem 1.05rem;
}

.site-link:hover,
.site-cta:hover,
.hero-primary:hover,
.hero-secondary:hover {
    transform: translateY(-1px);
}

.mobile-public-link {
    border-radius: 1rem;
    background: rgb(248 250 252);
    padding: .95rem 1rem;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 27, 30, .98), rgba(13, 27, 30, .88) 45%, rgba(13, 27, 30, .66)),
        radial-gradient(circle at 82% 18%, rgba(216, 168, 78, .55), transparent 28%),
        linear-gradient(135deg, #0d1b1e, #0b6b4f 58%, #0e7490);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 86%, transparent);
}

.landing-hero::after {
    content: "";
    position: absolute;
    right: -12vw;
    top: 9vh;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: conic-gradient(from 110deg, rgba(223,247,236,.25), rgba(216,168,78,.22), rgba(14,116,144,.18), rgba(223,247,236,.25));
    filter: blur(.2px);
    opacity: .75;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-primary {
    justify-content: center;
    background: #dff7ec;
    color: #0b6b4f;
    padding: 1rem 1.2rem;
    box-shadow: 0 18px 42px rgba(223, 247, 236, .18);
}

.hero-secondary {
    justify-content: center;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.1);
    color: white;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(16px);
}

.hero-stat {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.08);
    padding: 1rem;
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    font-size: 1.1rem;
    font-weight: 950;
}

.hero-stat span {
    margin-top: .25rem;
    color: rgba(255,255,255,.62);
    font-size: .8rem;
    font-weight: 750;
}

.hero-product {
    position: relative;
    min-height: 520px;
}

.phone-shell {
    position: absolute;
    right: 8%;
    top: 3%;
    width: min(78vw, 340px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 2.65rem;
    background: rgba(255,255,255,.22);
    padding: .75rem;
    box-shadow: 0 34px 110px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
}

.phone-top {
    position: absolute;
    left: 50%;
    top: 1.1rem;
    z-index: 2;
    width: 34%;
    height: .45rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(13, 27, 30, .22);
}

.allocation-board {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: min(72vw, 285px);
    border: 1px solid rgba(13, 27, 30, .08);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.92);
    padding: 1.2rem;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.section-band {
    padding: 5rem 0;
}

.section-title h2 {
    margin-top: .65rem;
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 950;
    line-height: 1;
}

.section-title p:not(.eyebrow) {
    margin-top: 1rem;
    max-width: 620px;
    color: rgb(71 85 105);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
}

.landing-card,
.investment-tile,
.package-mini {
    border: 1px solid rgba(13, 27, 30, .1);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.84);
    padding: 1.25rem;
    box-shadow: 0 18px 42px rgba(13, 27, 30, .06);
}

.landing-card h3,
.investment-tile h3,
.package-mini h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 950;
}

.landing-card p,
.investment-tile p,
.package-mini span {
    display: block;
    margin-top: .65rem;
    color: rgb(71 85 105);
    font-size: .93rem;
    font-weight: 650;
    line-height: 1.6;
}

.step-number,
.investment-tile span:first-child {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: .95rem;
    background: #dff7ec;
    color: #0b6b4f;
    font-weight: 950;
}

.investment-tile:nth-child(3n+2) span:first-child {
    background: #f8e7bd;
    color: #8a5a10;
}

.investment-tile:nth-child(3n) span:first-child {
    background: #dff3f8;
    color: #0e7490;
}

.package-mini {
    min-height: 210px;
}

.package-mini strong {
    display: block;
    margin-top: .75rem;
    font-size: 1.45rem;
    font-weight: 950;
}

.distribution-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.distribution-grid div {
    min-height: 180px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.08);
    padding: 1rem;
}

.distribution-grid strong,
.distribution-grid span,
.distribution-grid small {
    display: block;
}

.distribution-grid strong {
    font-size: clamp(1.7rem, 4vw, 3.5rem);
    font-weight: 950;
    color: #dff7ec;
}

.distribution-grid span {
    margin-top: 1.7rem;
    font-weight: 950;
}

.distribution-grid small {
    margin-top: .35rem;
    color: rgba(255,255,255,.58);
    font-weight: 700;
}

.trust-panel {
    display: grid;
    gap: 2rem;
    border-radius: 1.75rem;
    background: #dff7ec;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.trust-panel h2 {
    margin-top: .55rem;
    max-width: 820px;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 950;
    line-height: 1;
}

.trust-item,
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.72);
    padding: .9rem 1rem;
    font-weight: 950;
    color: #0b6b4f;
}

.auth-page {
    min-height: calc(100vh - 76px);
    padding: clamp(1rem, 4vw, 2rem);
    background:
        linear-gradient(135deg, rgba(13,27,30,.96), rgba(11,107,79,.9)),
        radial-gradient(circle at 88% 12%, rgba(216,168,78,.36), transparent 32%);
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 140px);
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 2rem;
    background: rgba(255,255,255,.08);
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}

.auth-story {
    display: none;
    align-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    color: white;
    background:
        linear-gradient(rgba(13,27,30,.22), rgba(13,27,30,.74)),
        linear-gradient(135deg, rgba(223,247,236,.14), rgba(216,168,78,.14));
}

.auth-story h1 {
    margin-top: 1rem;
    max-width: 520px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 950;
    line-height: .98;
}

.auth-story p:not(.eyebrow) {
    margin-top: 1.2rem;
    max-width: 510px;
    color: rgba(255,255,255,.7);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.7;
}

.auth-preview {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-preview div {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.1);
    padding: 1rem;
}

.auth-preview span,
.auth-preview strong {
    display: block;
}

.auth-preview span {
    color: rgba(255,255,255,.58);
    font-size: .75rem;
    font-weight: 850;
}

.auth-preview strong {
    margin-top: .35rem;
    font-weight: 950;
}

.auth-card {
    background: #f7f8f3;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-field {
    position: relative;
    display: block;
}

.auth-field span {
    display: block;
    margin-bottom: .45rem;
    color: rgb(71 85 105);
    font-size: .8rem;
    font-weight: 950;
}

.auth-field input,
.auth-field select {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid rgba(13, 27, 30, .12);
    border-radius: 1rem;
    background: white;
    padding: .8rem 1rem;
    font-weight: 800;
    outline: none;
}

.auth-field button {
    position: absolute;
    right: .55rem;
    bottom: .45rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .8rem;
    color: rgb(71 85 105);
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #0b6b4f;
    box-shadow: 0 0 0 4px rgba(11, 107, 79, .12);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border-radius: 1rem;
    background: #0b6b4f;
    padding: 1rem;
    color: white;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(11, 107, 79, .2);
}

.nav-link,
.admin-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: 1rem;
    padding: .78rem .9rem;
    font-size: .92rem;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link {
    color: rgb(51 65 85);
}

.nav-link:hover {
    background: rgb(241 245 249);
    color: #0b6b4f;
}

.nav-link-active {
    background: #dff7ec;
    color: #0b6b4f;
}

.admin-nav {
    color: rgba(255, 255, 255, .68);
}

.admin-nav:hover,
.admin-nav-active {
    background: rgba(255, 255, 255, .12);
    color: white;
}

.panel,
.package-card {
    border: 1px solid rgba(13, 27, 30, .1);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .88);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(13, 27, 30, .05);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-head h2 {
    font-size: 1.15rem;
    font-weight: 900;
}

.panel-head a,
.panel-head span {
    font-size: .82rem;
    font-weight: 800;
    color: #0b6b4f;
}

.metric-on-dark {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .1);
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.metric-on-dark span {
    display: block;
    font-size: .75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .6);
}

.metric-on-dark strong {
    display: block;
    margin-top: .35rem;
    font-size: 1.1rem;
    font-weight: 950;
}

.dual-money {
    display: inline-grid;
    gap: .1rem;
    line-height: 1.05;
}

.dual-money-primary {
    display: block;
}

.dual-money small {
    display: block;
    font-size: .72rem;
    font-weight: 850;
    color: currentColor;
    opacity: .58;
}

.currency-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    border-radius: 1rem;
    background: rgb(241 245 249);
    padding: .25rem;
}

.currency-switch button {
    border-radius: .8rem;
    padding: .65rem 1rem;
    font-size: .85rem;
    font-weight: 950;
    color: rgb(71 85 105);
}

.currency-switch button.active {
    background: #0d1b1e;
    color: white;
    box-shadow: 0 10px 24px rgba(13, 27, 30, .12);
}

.market-card {
    border: 1px solid rgba(13, 27, 30, .1);
    border-radius: 1.35rem;
    background: rgba(255,255,255,.9);
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(13, 27, 30, .05);
}

.market-card p {
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.market-card strong {
    display: block;
    margin-top: .35rem;
    font-size: 1.45rem;
    font-weight: 950;
}

.market-card span {
    border-radius: 999px;
    padding: .3rem .55rem;
    font-size: .72rem;
    font-weight: 950;
}

.sparkline {
    display: flex;
    align-items: end;
    gap: .35rem;
    height: 54px;
    margin-top: 1rem;
}

.sparkline i {
    flex: 1;
    min-width: .4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #0b6b4f, #d8a84e);
}

.ref-stat {
    border-radius: 1rem;
    background: rgb(248 250 252);
    padding: 1rem;
}

.ref-stat strong,
.ref-stat span {
    display: block;
}

.ref-stat strong {
    font-size: 1.2rem;
    font-weight: 950;
}

.ref-stat span {
    margin-top: .25rem;
    color: rgb(100 116 139);
    font-size: .75rem;
    font-weight: 850;
}

.ai-response {
    border-radius: 1.25rem;
    background: #eefaf3;
    padding: 1.1rem;
    color: #0d1b1e;
    font-weight: 650;
    line-height: 1.7;
}

.progress-ring {
    --size: min(66vw, 240px);
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    margin: 1.25rem auto 0;
    border-radius: 999px;
    background: conic-gradient(#dff7ec calc(var(--progress) * 1%), rgba(255,255,255,.14) 0);
}

.progress-ring span {
    display: grid;
    place-items: center;
    width: calc(var(--size) - 56px);
    height: calc(var(--size) - 56px);
    border-radius: 999px;
    background: #0d1b1e;
    font-size: 2.15rem;
    font-weight: 950;
}

.progress-ring small {
    display: block;
    margin-top: -.25rem;
    font-size: .75rem;
    font-weight: 800;
    color: rgba(255,255,255,.58);
}

.row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.field {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(13, 27, 30, .12);
    background: white;
    padding: .9rem 1rem;
    font-weight: 700;
    outline: none;
}

.field:focus {
    border-color: #0b6b4f;
    box-shadow: 0 0 0 4px rgba(11, 107, 79, .12);
}

.action-btn,
.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #0b6b4f;
    color: white;
    font-weight: 900;
}

.action-btn {
    width: 100%;
    padding: .9rem 1rem;
}

.mini-btn {
    padding: .6rem .9rem;
    font-size: .85rem;
}

.eyebrow {
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #0b6b4f;
}

.data-table {
    min-width: 760px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .55rem;
}

.data-table th {
    padding: .75rem 1rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.data-table td {
    background: rgb(248 250 252);
    padding: 1rem;
    font-weight: 800;
}

.data-table td:first-child {
    border-radius: 1rem 0 0 1rem;
}

.data-table td:last-child {
    border-radius: 0 1rem 1rem 0;
    text-align: right;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: .75rem;
    height: 320px;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(223,247,236,.8), rgba(255,255,255,.2));
    padding: 1rem;
}

.chart-bars span {
    flex: 1;
    min-width: 12px;
    border-radius: 999px 999px .4rem .4rem;
    background: linear-gradient(180deg, #0b6b4f, #d8a84e);
}

@media (max-width: 640px) {
    .site-header {
        padding: .75rem 1rem;
    }

    .landing-hero::after {
        right: -42vw;
        top: 46vh;
        width: 120vw;
        opacity: .4;
    }

    .hero-product {
        min-height: 560px;
    }

    .phone-shell {
        left: 50%;
        right: auto;
        top: 0;
        width: min(92vw, 360px);
        transform: translateX(-50%);
    }

    .allocation-board {
        left: 50%;
        bottom: 0;
        width: min(88vw, 320px);
        transform: translateX(-50%);
    }

    .section-band {
        padding: 3.5rem 0;
    }

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

    .distribution-grid div {
        min-height: 0;
    }

    .auth-page {
        padding: 1rem;
    }

    .auth-shell {
        min-height: auto;
        border-radius: 1.35rem;
    }

    .panel,
    .package-card {
        border-radius: 1.1rem;
        padding: 1rem;
    }

    .row-item {
        align-items: flex-start;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-product {
        min-height: 640px;
    }

    .phone-shell {
        right: 6%;
    }

    .allocation-board {
        left: 8%;
    }

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

@media (min-width: 1024px) {
    .auth-shell {
        grid-template-columns: .9fr 1.1fr;
    }

    .auth-story {
        display: grid;
    }
}
