/* Homepage hero */
.hero {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 5.5rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #050505;
    background-image:
        linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.35) 45%, rgba(5, 5, 5, 0.82) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 42%, rgba(5, 5, 5, 0.15) 72%, rgba(5, 5, 5, 0.05) 100%),
        url('../img/web3-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(5.5rem, 12vh, 7rem);
    padding-bottom: clamp(3.5rem, 8vh, 5rem);
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: clamp(2rem, 3.5vw, 3rem);
    }

    .hero__visual {
        grid-column: 2;
        grid-row: 1;
    }

    .hero__copy {
        grid-column: 1;
        grid-row: 1;
    }
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 36rem;
    text-align: left;
}

.hero__headline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero__lede {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: #0a0a0a;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #a1a1aa;
}

.hero__badge-version {
    display: inline-flex;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #d4d4d8;
}

.hero__badge-meta {
    padding-right: 0.125rem;
    color: #71717a;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f5f5f5;
}

.hero-title__strike {
    text-decoration: line-through;
    color: #6b6b6b;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.375rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #6b6b6b;
}

.hero-lede {
    margin: 0;
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    font-weight: 400;
    line-height: 1.75;
    color: #a1a1aa;
    max-width: 31rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    margin-top: -0.5rem;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero__btn--primary {
    color: #0a0a0a;
    background: #fafafa;
    border: 1px solid #fafafa;
}

.hero__btn--primary:hover {
    background: #e4e4e7;
    border-color: #e4e4e7;
    transform: translateY(-1px);
}

.hero__btn--secondary {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.hero__note {
    margin: 0;
    font-size: 0.8125rem;
    color: #71717a;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.hero-terminal {
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    background: #0a0a0a;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-terminal__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    background: #050505;
    font: 500 0.625rem/1 monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #71717a;
}

.hero-terminal__dots {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    justify-self: start;
}

.hero-terminal__dots span {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.hero-terminal__dots span:nth-child(1) { background: #ef4444; }
.hero-terminal__dots span:nth-child(2) { background: #eab308; }
.hero-terminal__dots span:nth-child(3) { background: #22c55e; }

.hero-terminal__label {
    justify-self: center;
    white-space: nowrap;
}

.hero-terminal__host {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    justify-self: end;
    text-transform: none;
    letter-spacing: 0;
    color: #52525b;
    white-space: nowrap;
}

.hero-terminal__live {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: #22c55e;
}

.hero-terminal__code {
    margin: 0;
    padding: 1.75rem 1.5rem 2rem;
    min-height: 17rem;
    background: #000;
    font: 0.875rem/1.7 monospace;
    color: #e4e4e7;
    white-space: pre;
    overflow-x: auto;
}

.hero-terminal__code .tok-dim { color: #52525b; }
.hero-terminal__code .tok-str { color: #d4a574; }
.hero-terminal__code .tok-num { color: #67e8f9; }

.hero-terminal__code .tok-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
}

.hero-terminal__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.hero-terminal__stats div {
    padding: 0.875rem 1rem;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    background: #0a0a0a;
}

.hero-terminal__stats dt {
    margin: 0 0 0.25rem;
    font: 500 0.625rem/1 monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #52525b;
}

.hero-terminal__stats dd {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f5f5f5;
}

@media (max-width: 540px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__btn {
        width: 100%;
    }

    .hero-terminal__bar {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .hero-terminal__dots {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-terminal__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .hero-terminal__host {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        margin-top: 0.375rem;
    }
}
