.hero {
    padding: 118px 0 96px;
    overflow: clip;
}

.hero-inner {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: heroEnter 0.8s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.86rem;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.15);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.3);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(2.35rem, 3vw + 1rem, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 17ch;
    text-wrap: balance;
}

.hero h1::after {
    content: '';
    display: block;
    width: 74px;
    height: 3px;
    margin-top: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.hero p {
    margin: 0 0 1.6rem;
    font-size: 1.05rem;
    max-width: 57ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-terminal {
    align-self: center;
    padding: 0;
    overflow: hidden;
    border-color: rgba(34, 211, 238, 0.34);
    animation: heroEnter 0.9s ease 0.12s both;
}

.terminal-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(10, 18, 33, 0.86);
    padding: 0.8rem 1rem;
}

.terminal-head span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.terminal-head span:nth-child(1) {
    background: #fb7185;
}

.terminal-head span:nth-child(2) {
    background: #facc15;
}

.terminal-head span:nth-child(3) {
    background: #4ade80;
}

.terminal-head p {
    margin: 0 0 0 0.5rem;
    color: #9db5d3;
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1rem;
    display: grid;
    gap: 0.58rem;
    background:
        linear-gradient(180deg, rgba(7, 15, 27, 0.95), rgba(8, 17, 32, 0.95)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 22px);
}

.terminal-body p {
    margin: 0;
    color: #c7d7ea;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.95rem;
}

.terminal-label {
    color: var(--primary);
    margin-right: 0.45rem;
}

.hero-grid-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(34, 211, 238, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 85%);
    opacity: 0.45;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .hero {
        padding: 106px 0 78px;
    }

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

    .hero h1 {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-terminal {
        animation: none;
    }
}
