:root {
    color-scheme: dark;
    --bg: #020b14;
    --bg-deep: #000509;
    --surface: rgba(7, 24, 39, 0.72);
    --surface-strong: rgba(13, 34, 47, 0.88);
    --border: rgba(132, 255, 170, 0.16);
    --border-soft: rgba(255, 255, 255, 0.1);
    --text: #f5f9f7;
    --muted: #a7b6bd;
    --green: #4de072;
    --green-strong: #26bb62;
    --teal: #57d1d1;
    --blue: #4a7dff;
    --gold: #ffbf5f;
    --red: #ff625c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --shell: min(1160px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 5%, rgba(77, 224, 114, 0.14), transparent 28rem),
        radial-gradient(circle at 88% 20%, rgba(87, 209, 209, 0.11), transparent 26rem),
        linear-gradient(145deg, var(--bg-deep), var(--bg) 42%, #03110d);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    z-index: -1;
    height: 32vh;
    background: linear-gradient(to top, rgba(2, 11, 20, 0.96), transparent);
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

#canvas-container {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #02070c;
}

#canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, black 14%, black 76%, transparent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 0 10px;
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: var(--shell);
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(2, 11, 20, 0.62);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    box-shadow: 0 0 28px rgba(77, 224, 114, 0.34);
}

.brand-wordmark {
    font-size: 1.32rem;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1;
}

.brand-wordmark em {
    color: var(--green);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-links a {
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 720;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
    padding: 0 18px;
    color: #051006;
    background: linear-gradient(135deg, var(--green), #8dff71);
    box-shadow: 0 14px 30px rgba(77, 224, 114, 0.18);
}

.button {
    min-width: 152px;
    padding: 0 20px;
    border: 1px solid transparent;
}

.button.primary {
    color: #061108;
    background: linear-gradient(135deg, var(--green), #b8ff6b);
    box-shadow: 0 18px 44px rgba(77, 224, 114, 0.22);
}

.button.ghost {
    color: var(--text);
    border-color: rgba(245, 249, 247, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.button:hover,
.nav-cta:hover,
.button:focus-visible,
.nav-cta:focus-visible {
    transform: translateY(-2px);
}

main {
    width: var(--shell);
    margin: 0 auto;
}

.hero {
    min-height: min(720px, calc(100svh - 148px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: center;
    gap: clamp(24px, 6vw, 76px);
    padding: clamp(48px, 8vw, 104px) 0 clamp(34px, 5vw, 62px);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(3.1rem, 7vw, 6.7rem);
    line-height: 0.94;
    font-weight: 820;
    letter-spacing: 0;
}

h1 span,
.waitlist-section h2 em {
    color: var(--green);
    font-style: italic;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 30px;
    color: #c0ced0;
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel {
    position: relative;
    align-self: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(150deg, rgba(8, 36, 26, 0.84), rgba(5, 19, 31, 0.84)),
        rgba(5, 18, 28, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(77, 224, 114, 0.45), transparent 36%, rgba(74, 125, 255, 0.28));
    opacity: 0.7;
}

.snapshot-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.84rem;
}

.snapshot-header strong {
    grid-column: 2;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.snapshot-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(77, 224, 114, 0.78);
}

.wealth-curve {
    height: 172px;
    margin: 24px 0 18px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 9px;
    padding: 18px;
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        rgba(255, 255, 255, 0.035);
    background-size: 100% 33.3%, 25% 100%, auto;
}

.wealth-curve span {
    height: var(--h);
    min-height: 24px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(to top, rgba(30, 159, 82, 0.28), var(--green));
    box-shadow: 0 0 22px rgba(77, 224, 114, 0.24);
    transform-origin: bottom;
    animation: rise 2400ms cubic-bezier(.2, .75, .2, 1) both;
}

.wealth-curve span:nth-child(2) { animation-delay: 90ms; }
.wealth-curve span:nth-child(3) { animation-delay: 180ms; }
.wealth-curve span:nth-child(4) { animation-delay: 270ms; }
.wealth-curve span:nth-child(5) { animation-delay: 360ms; }
.wealth-curve span:nth-child(6) { animation-delay: 450ms; }

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

.snapshot-grid div,
.signal-strip article,
.trust-list article {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.snapshot-grid div {
    min-height: 78px;
    padding: 12px;
}

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

.snapshot-grid span {
    color: var(--muted);
    font-size: 0.74rem;
}

.snapshot-grid strong {
    margin-top: 8px;
    font-size: 1.08rem;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px 0 clamp(76px, 10vw, 122px);
}

.signal-strip article {
    min-height: 200px;
    padding: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
    backdrop-filter: blur(14px);
}

.metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    margin-bottom: 24px;
    border-radius: 7px;
    color: #04110a;
    background: var(--green);
    font-weight: 820;
    font-size: 0.86rem;
}

.signal-strip h2,
.trust-list h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
    line-height: 1.15;
}

.signal-strip p,
.section-copy p,
.trust-list p,
.waitlist-form label,
.site-footer p {
    color: var(--muted);
}

.dashboard-section {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    gap: clamp(28px, 7vw, 86px);
    align-items: center;
    padding: 0 0 clamp(92px, 12vw, 150px);
}

.section-copy {
    max-width: 510px;
}

.section-copy h2,
.trust-section h2,
.waitlist-section h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.4vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.preview-stage {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.preview-stage::before {
    content: "";
    position: absolute;
    inset: 9% 2% 6%;
    border: 1px solid rgba(77, 224, 114, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(77, 224, 114, 0.1), transparent 34%, rgba(255, 191, 95, 0.08)),
        rgba(255, 255, 255, 0.03);
    transform: skewY(-3deg);
}

.preview-card {
    position: absolute;
    width: min(42vw, 286px);
    border-radius: 24px;
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.42);
}

.primary-preview {
    left: 8%;
    top: 5%;
    transform: rotate(-7deg);
}

.secondary-preview {
    right: 4%;
    bottom: 2%;
    transform: rotate(7deg);
}

.trust-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(24px, 6vw, 70px);
    align-items: start;
    padding: 0 0 clamp(76px, 10vw, 132px);
}

.trust-list {
    display: grid;
    gap: 12px;
}

.trust-list article {
    padding: 22px;
    background: rgba(255, 255, 255, 0.032);
}

.trust-list article:nth-child(2) {
    border-color: rgba(87, 209, 209, 0.22);
}

.trust-list article:nth-child(3) {
    border-color: rgba(255, 191, 95, 0.2);
}

.waitlist-section {
    margin-bottom: 64px;
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid rgba(77, 224, 114, 0.2);
    border-radius: var(--radius);
    background:
        linear-gradient(140deg, rgba(77, 224, 114, 0.12), rgba(87, 209, 209, 0.06), rgba(255, 191, 95, 0.05)),
        rgba(255, 255, 255, 0.035);
    box-shadow: var(--shadow);
}

.waitlist-section h2 span {
    color: var(--text);
}

.waitlist-form {
    max-width: 680px;
}

.waitlist-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid rgba(245, 249, 247, 0.16);
    border-radius: var(--radius);
    outline: none;
    background: rgba(0, 0, 0, 0.28);
}

input:focus {
    border-color: rgba(77, 224, 114, 0.72);
    box-shadow: 0 0 0 4px rgba(77, 224, 114, 0.12);
}

.site-footer {
    width: var(--shell);
    margin: 0 auto;
    padding: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand.compact .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand.compact .brand-wordmark {
    font-size: 1.02rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.88rem;
}

@keyframes rise {
    from {
        transform: scaleY(0.18);
        opacity: 0.36;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 920px) {
    :root {
        --shell: min(100vw - 28px, 760px);
    }

    .nav-shell {
        height: 58px;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .dashboard-section,
    .trust-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

    .hero-panel {
        max-width: 560px;
        width: 100%;
    }

    .signal-strip {
        grid-template-columns: 1fr;
    }

    .preview-stage {
        min-height: 480px;
    }

    .preview-card {
        width: min(44vw, 250px);
    }
}

@media (max-width: 620px) {
    :root {
        --shell: min(100vw - 22px, 480px);
    }

    .site-header {
        padding-top: 10px;
    }

    .brand-wordmark {
        font-size: 1.08rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .nav-shell {
        padding: 0 10px;
        gap: 10px;
    }

    .nav-cta {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .hero-actions,
    .input-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .preview-stage {
        min-height: 430px;
    }

    .preview-card {
        width: min(68vw, 238px);
    }

    .primary-preview {
        left: 0;
        top: 8%;
    }

    .secondary-preview {
        right: 0;
        bottom: 3%;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
