:root {
    /* Colors */
    --bg: #050508;
    --surface: #0c0c12;
    --card: #11111a;
    --muted: #b5b5c3;
    --text: #ffffff;
    --accent: #8b5cf6;
    /* purple */
    --accent-2: #a78bfa;
    /* lighter */
    --accent-3: #6d28d9;
    /* darker */
    --border: rgba(255, 255, 255, 0.12);

    /* Layout */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --container: 1200px;

    /* Type */
    --h1: clamp(2.2rem, 5vw, 4.2rem);
    --h2: clamp(1.6rem, 2.8vw, 2.4rem);
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Reddit Sans", sans-serif;
    font-optical-sizing: auto;
    color: var(--text);
    background: var(--bg);
}

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

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

.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: 24px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(5, 5, 8, .5);
    border-bottom: 1px solid var(--border)
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    letter-spacing: .2px
}

.brand__logo {
    height: 22px;
    width: auto;
    display: block;
}

.nav a {
    opacity: .9;
    padding: .5rem .8rem;
    border-radius: 10px
}

.nav a:hover {
    background: rgba(255, 255, 255, .06)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    background: #1a1a27;
    color: var(--text)
}

.btn--primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0e041f;
    border: none;
    font-weight: 700
}

.btn--primary:hover,
.nav .btn--primary:hover {
    background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 10vw, 10rem);
    background: radial-gradient(600px 400px at 50% 20%, rgba(155, 107, 255, .16), rgba(155, 107, 255, 0) 60%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2
}

#stars {
    position: absolute;
    inset: 0;
    display: block
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(460px 360px at 50% 30%, rgba(155, 107, 255, .35), rgba(155, 107, 255, .06) 55%, transparent 70%);
    filter: blur(12px);
    z-index: -1
}

.hero__content {
    display: grid;
    place-items: center;
    text-align: center
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .9rem;
    font-weight: 700;
    color: #12121a;
    background: rgba(255, 255, 255, .1);
}

.badge__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent)
}

.badge--new {
    background: rgba(139, 92, 246, .18);
    color: #e9ddff;
    border: 1px solid rgba(139, 92, 246, .35)
}

.hero h1 {
    font-size: var(--h1);
    line-height: 1.05;
    letter-spacing: .2px;
    margin: .8rem auto .6rem;
    max-width: 16ch
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 60ch;
    margin-inline: auto
}

.hero__ctas {
    display: flex;
    gap: .8rem;
    justify-content: center;
    margin-top: 1.6rem;
    flex-wrap: wrap
}

.btn--ghost {
    background: rgba(255, 255, 255, .06)
}

.pulse-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(460px 360px at 50% 30%,
            rgba(155, 107, 255, 0.35),
            rgba(155, 107, 255, 0.06) 55%,
            transparent 70%);
    filter: blur(12px);
    z-index: -1;
    transform-origin: center;
    animation: pulseScale 6s ease-in-out infinite;
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

#dataStreamCanvas {
    position: absolute;
    /* or relative if you prefer */
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* purely decorative */
    z-index: 0;
}


/* Sections shared */
.section {
    padding-block: clamp(3rem, 6vw, 5rem)
}

.section__title {
    font-size: var(--h2);
    margin: 0 0 .6rem
}

.section__lede {
    color: var(--muted);
    max-width: 70ch
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

/* Feature grid */
.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr)
}

.feature {
    padding: 1rem
}

.feature p {
    color: var(--muted)
}

/* Calculator */
.calc {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch
}

.input {
    background: #151521;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: .7rem .8rem
}

.graph {
    display: grid;
    gap: .6rem
}

.graph__row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: .8rem;
    align-items: center
}

.graph__bar {
    height: 12px;
    background: #19192a;
    border-radius: 999px;
    overflow: hidden
}

.graph__bar>span {
    display: block;
    height: 100%;
    width: var(--w, 50%);
    background: linear-gradient(90deg, var(--accent), var(--accent-2))
}

.graph__value {
    text-align: right;
    font-variant-numeric: tabular-nums
}

/* FAQ */
.faq {
    max-width: 900px;
    margin-inline: auto
}

.faq__item {
    border-bottom: 1px dashed var(--border)
}

.faq__button {
    all: unset;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0
}

.faq__q {
    font-weight: 700
}

.faq__a {
    color: var(--muted);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease
}

.faq__a[aria-hidden="false"] {
    grid-template-rows: 1fr
}

.faq__a-inner {
    overflow: hidden;
    padding-bottom: 1rem
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #0a0a12
}

.site-footer__inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-block: 2rem
}

.legal {
    color: var(--muted);
    font-size: .95rem;
}

/* Responsive */
@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr
    }

    .calc {
        grid-template-columns: 1fr
    }
}

@media (max-width: 640px) {
    :root {
        --h1: 3rem;
    }
    .feature-grid {
        grid-template-columns: 1fr
    }
    .brand__logo {
        height: 18px;
    }
    .hero h1 {
        margin: 2rem auto;
    }
    .hero p {
        font-size: 1.4rem;
    }
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}