/* =========================
   BRAINLET — styles.css
   white bg / black text
   bubble font meme vibes
   ========================= */

:root {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --fg: #000000;
    --fg-dim: #3a3a3a;
    --fg-mute: #7a7a7a;
    --fg-faint: #cfcfcf;
    --stroke: #000000;
    --stroke-soft: rgba(0, 0, 0, 0.12);
    --stroke-med: rgba(0, 0, 0, 0.25);
    --card: #ffffff;
    --card-hi: #fafafa;
    --maxw: 1240px;
    --radius: 22px;
    --radius-lg: 32px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-pop: 6px 6px 0 0 #000;
    --shadow-pop-lg: 10px 10px 0 0 #000;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

::selection {
    background: #000;
    color: #fff;
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid var(--stroke);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--fg);
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    animation: bob 3.2s ease-in-out infinite;
    transition: transform 0.3s var(--ease);
}

.logo:hover .logo-img {
    transform: rotate(-8deg) scale(1.05);
}

.logo-text {
    font-family: "Lilita One", "Fredoka", sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.nav-links a {
    position: relative;
    padding: 6px 2px;
    transition: color 0.3s var(--ease);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--fg);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--stroke);
    border-radius: 999px;
    background: var(--fg);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 4px 4px 0 0 var(--stroke);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--stroke);
}

.nav-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--stroke);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 24px 80px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.hero-inner {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin: 0 0 26px;
    font-family: "Lilita One", "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 0.9;
    font-size: clamp(88px, 18vw, 260px);
    letter-spacing: -0.015em;
    color: var(--fg);
}

.hero-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    padding: 0 0.04em;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: word-rise 1.1s var(--ease) forwards;
    will-change: transform;
}

@keyframes word-rise {
    to {
        transform: translateY(0);
    }
}

.hero-title .word {
    animation-delay: 0.1s;
    animation-name: word-rise-wobble;
}

@keyframes word-rise-wobble {
    0% {
        transform: translateY(110%) rotate(-6deg);
    }
    70% {
        transform: translateY(-4%) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

.hero-sub {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-mute);
    margin: 0 auto 34px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* buttons */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 22px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background 0.3s var(--ease), color 0.3s var(--ease);
    border: 2.5px solid var(--stroke);
    letter-spacing: 0.01em;
    box-shadow: 5px 5px 0 0 var(--stroke);
}

.btn-primary {
    background: var(--fg);
    color: #fff;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 0 var(--stroke);
}

.btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 0 var(--stroke);
}

.btn-primary .btn-arrow {
    display: inline-flex;
    transition: transform 0.35s var(--ease);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    background: #fff;
    color: var(--fg);
}

.btn-ghost:hover {
    background: var(--fg);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 0 var(--stroke);
}

.btn-ghost:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 0 var(--stroke);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
}

/* CA button */
.btn-ca {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 10px 10px 10px 16px;
    border: 2.5px solid var(--stroke);
    border-radius: 999px;
    background: #fff;
    color: var(--fg);
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    box-shadow: 5px 5px 0 0 var(--stroke);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background 0.25s var(--ease), color 0.25s var(--ease);
    margin-bottom: 56px;
}

.btn-ca:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 0 var(--stroke);
}

.btn-ca:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--stroke);
}

.ca-tag {
    font-family: "Lilita One", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    background: var(--fg);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.ca-addr {
    font-family: "Fredoka", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.ca-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: var(--fg);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
    position: relative;
    min-width: 78px;
}

.ca-default,
.ca-copied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.ca-copied {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(6px);
    justify-content: center;
}

.btn-ca.copied .ca-default {
    opacity: 0;
    transform: translateY(-6px);
}

.btn-ca.copied .ca-copied {
    opacity: 1;
    transform: translateY(0);
}

.btn-ca.copied {
    background: var(--fg);
    color: #fff;
}

.btn-ca.copied .ca-addr {
    color: #fff;
}

.btn-ca.copied .ca-tag {
    background: #fff;
    color: var(--fg);
}

.btn-ca.copied .ca-action {
    background: #fff;
    color: var(--fg);
}

/* CA button — inverse (on dark final-cta bg) */
.btn-ca-inverse {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: 5px 5px 0 0 rgba(255, 255, 255, 0.25);
    margin-top: 26px;
    margin-bottom: 0;
}

.btn-ca-inverse .ca-addr {
    color: #fff;
}

.btn-ca-inverse .ca-tag {
    background: #fff;
    color: var(--fg);
}

.btn-ca-inverse .ca-action {
    background: #fff;
    color: var(--fg);
}

.btn-ca-inverse:hover {
    box-shadow: 7px 7px 0 0 rgba(255, 255, 255, 0.35);
}

.btn-ca-inverse.copied {
    background: #fff;
    color: var(--fg);
}

.btn-ca-inverse.copied .ca-addr {
    color: var(--fg);
}

.btn-ca-inverse.copied .ca-tag {
    background: var(--fg);
    color: #fff;
}

.btn-ca-inverse.copied .ca-action {
    background: var(--fg);
    color: #fff;
}

@media (max-width: 640px) {
    .btn-ca {
        padding: 8px 8px 8px 12px;
        gap: 8px;
    }

    .ca-addr {
        font-size: 11px;
    }

    .ca-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .ca-action {
        padding: 6px 10px;
        font-size: 11.5px;
        min-width: 62px;
    }
}

/* hero artwork */
.hero-art {
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    animation: bob 5.5s ease-in-out infinite;
    filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.12));
}

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

@keyframes bob {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    display: inline-flex;
    animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ========== MARQUEE ========== */
.marquee {
    border-top: 2px solid var(--stroke);
    border-bottom: 2px solid var(--stroke);
    overflow: hidden;
    padding: 24px 0;
    background: var(--fg);
}

.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-family: "Lilita One", sans-serif;
    font-size: clamp(52px, 8vw, 120px);
    letter-spacing: 0.01em;
    line-height: 1;
    align-items: center;
}

.marquee-track span {
    color: #fff;
}

.marquee-track span.ghost {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.marquee-track .sep {
    color: #fff;
    font-size: 0.5em;
    transform: translateY(-0.15em);
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ========== SECTIONS ========== */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 130px 24px;
    position: relative;
}

.section-alt {
    background: var(--bg-2);
    max-width: none;
    margin: 0;
    padding-left: calc(50% - var(--maxw) / 2 + 24px);
    padding-right: calc(50% - var(--maxw) / 2 + 24px);
    border-top: 2px solid var(--stroke);
    border-bottom: 2px solid var(--stroke);
}

.section-head {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-num {
    font-family: "Lilita One", sans-serif;
    font-size: 22px;
    color: var(--fg);
    background: #fff;
    border: 2.5px solid var(--stroke);
    border-radius: 999px;
    padding: 4px 16px;
    letter-spacing: 0.04em;
    box-shadow: 3px 3px 0 0 var(--stroke);
}

.section-title {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 6.5vw, 84px);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1;
    color: var(--fg);
}

.section-line {
    height: 3px;
    background: var(--fg);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease);
}

.reveal.visible .section-line {
    transform: scaleX(1);
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-copy .lead {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.25;
    color: var(--fg);
    margin: 0 0 20px;
    letter-spacing: -0.005em;
}

.about-copy .lead strong {
    background: var(--fg);
    color: #fff;
    padding: 0 10px;
    border-radius: 10px;
    font-weight: 400;
    display: inline-block;
    transform: rotate(-1.5deg);
}

.about-copy p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg-dim);
    font-weight: 500;
}

.about-cards {
    display: grid;
    gap: 18px;
}

.feature-card {
    padding: 26px 28px;
    border: 2.5px solid var(--stroke);
    border-radius: var(--radius);
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 0 0 var(--stroke);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-card:hover {
    transform: translate(-3px, -3px) rotate(-0.6deg);
    box-shadow: 9px 9px 0 0 var(--stroke);
}

.feature-card:nth-child(2):hover {
    transform: translate(-3px, -3px) rotate(0.6deg);
}

.feature-num {
    font-family: "Lilita One", sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--fg-mute);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-card h3 {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -0.005em;
}

.feature-card p {
    margin: 0;
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding-left: 46px;
}

.timeline-line {
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--fg);
    border-radius: 999px;
}

.tl-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 34px;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--fg);
    border-radius: 50%;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.tl-item:hover::before {
    background: var(--fg);
    transform: scale(1.25);
}

.tl-date {
    font-family: "Lilita One", sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--fg);
    margin-bottom: 10px;
    display: inline-block;
    background: var(--fg);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
}

.tl-card {
    padding: 22px 26px;
    border: 2.5px solid var(--stroke);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 5px 5px 0 0 var(--stroke);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tl-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 var(--stroke);
}

.tl-card h3 {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.005em;
}

.tl-card p {
    margin: 0;
    color: var(--fg-dim);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 500;
}

.tl-card em {
    color: var(--fg);
    font-style: normal;
    background: #fff24d;
    padding: 1px 6px;
    border-radius: 6px;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* CHART */
.chart-wrap {
    border: 2.5px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-pop-lg);
}

.chart-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 520px;
    background: #fff;
}

.chart-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.chart-footer {
    padding: 14px 22px;
    border-top: 2.5px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-dim);
    background: #fff;
}

.chart-footer a {
    font-weight: 700;
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: opacity 0.25s var(--ease);
}

.chart-footer a:hover {
    opacity: 0.6;
}

@media (max-width: 600px) {
    .chart-embed {
        min-height: 420px;
    }
}

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 80px;
}

.step {
    padding: 28px;
    border: 2.5px solid var(--stroke);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 5px 5px 0 0 var(--stroke);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.step:nth-child(odd):hover {
    transform: translate(-3px, -3px) rotate(-0.8deg);
    box-shadow: 9px 9px 0 0 var(--stroke);
}

.step:nth-child(even):hover {
    transform: translate(-3px, -3px) rotate(0.8deg);
    box-shadow: 9px 9px 0 0 var(--stroke);
}

.step-num {
    display: inline-block;
    font-family: "Lilita One", sans-serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 16px;
    background: var(--fg);
    padding: 4px 14px;
    border-radius: 999px;
}

.step h3 {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.005em;
}

.step p {
    margin: 0;
    color: var(--fg-dim);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 500;
}

.final-cta {
    text-align: center;
    padding: 70px 20px;
    border: 2.5px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: var(--fg);
    color: #fff;
    box-shadow: var(--shadow-pop-lg);
}

.final-cta h3 {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 60px);
    margin: 0 0 30px;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.05;
}

.final-cta .hero-ctas {
    justify-content: center;
    margin-bottom: 0;
}

.final-cta .btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 5px 5px 0 0 rgba(255, 255, 255, 0.25);
}

.final-cta .btn-primary:hover {
    box-shadow: 7px 7px 0 0 rgba(255, 255, 255, 0.35);
}

.final-cta .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: 5px 5px 0 0 rgba(255, 255, 255, 0.25);
}

.final-cta .btn-ghost:hover {
    background: #fff;
    color: #000;
    box-shadow: 7px 7px 0 0 rgba(255, 255, 255, 0.35);
}

/* FOOTER */
.footer {
    border-top: 2px solid var(--stroke);
    padding: 60px 24px 40px;
    background: #fff;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: "Lilita One", sans-serif;
    font-size: 36px;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    color: var(--fg);
}

.footer-copy {
    font-size: 13px;
    color: var(--fg-mute);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
    .nav-inner {
        grid-template-columns: auto 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 110px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .section-alt {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-wojak {
        max-width: 380px;
    }
}

@media (max-width: 600px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 90px 20px;
    }

    .section-head {
        grid-template-columns: auto 1fr;
        gap: 14px;
    }

    .section-line {
        grid-column: span 2;
    }

    .chart-meta {
        padding: 18px;
    }

    .chart-price {
        font-size: 28px;
    }

    .nav-cta {
        display: none;
    }

    .nav-inner {
        grid-template-columns: auto 1fr;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
