.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 80px;
    transition: padding .3s ease
}

.hero-section-with-banner {
    padding-top: 224px
}

.hero-content {
    gap: 24px;
    width: min(920px, 90vw);
    text-align: center;
    z-index: 1
}

.hero-content,
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center
}

.hero-title {
    font-size: 72px;
    line-height: 100%;
    letter-spacing: -.02em;
    color: #fbfbfd;
    margin: 0;
    gap: 0
}

.hero-title-thin {
    font-family: var(--font-geist-mono), "Geist Mono", monospace;
    font-weight: 400;
    line-height: .9;
    display: block
}

.hero-title-middle {
    font-size: 32px;
    font-weight: 400;
    line-height: .8;
    margin: 0 0 -8px;
    opacity: .6
}

.hero-title-bold,
.hero-title-middle {
    font-family: var(--font-geist), "Geist", sans-serif;
    display: block
}

.hero-title-bold {
    font-weight: 700;
    line-height: 1
}

.hero-description {
    font-family: var(--font-geist), "Geist", sans-serif;
    font-size: 18px;
    line-height: 150%;
    color: rgba(251, 251, 253, .7);
    width: 720px;
    margin: 0
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px
}

.enterprise-install-btn,
.hero-enterprise-btn,
.hero-install-btn {
    background-color: #fff;
    border: 2px solid #7147ab;
    border-radius: 10px;
    box-shadow: inset 0 -4px 0 0 #f2ccd7;
    padding: 14px 18px 16px;
    color: #7147ab;
    font-family: var(--font-geist-mono), "Geist Mono", monospace;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 176px;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap
}

.hero-enterprise-btn {
    background-color: rgba(158, 76, 22, .1);
    color: #fff;
    border-color: hsla(0, 0%, 100%, .3);
    box-shadow: none
}

.enterprise-install-btn:hover,
.hero-enterprise-btn:hover,
.hero-install-btn:hover {
    box-shadow: inset 0 -2px 0 0 #f2ccd7;
    transform: translateY(-2px)
}

.hero-enterprise-btn:hover {
    background-color: hsla(0, 0%, 100%, .1);
    border-color: hsla(0, 0%, 100%, .5);
    box-shadow: none
}

.hero-stats {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px
}

.hero-stat,
.hero-stats {
    display: flex;
    align-items: center
}

.hero-stat {
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(35, 22, 75, .5);
    border-radius: 24px;
    background-color: rgba(35, 22, 75, .6);
    cursor: default;
    user-select: none
}

.hero-stat-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease
}

.hero-stat-clickable:hover {
    background-color: rgba(35, 22, 75, .8);
    border-color: rgba(35, 22, 75, .7);
    transform: translateY(-1px)
}

.hero-stat-clickable:hover .hero-stat-icon,
.hero-stat-clickable:hover .hero-stat-text {
    color: hsla(0, 0%, 100%, .9)
}

.hero-stat:has(.hero-stat-flip-wrapper) {
    min-width: 460px
}

.hero-stat-flip-wrapper {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 26px;
    display: flex;
    align-items: center
}

.hero-stat-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    -webkit-transform: translateZ(0)
}

.hero-stat-flip-wrapper.flipped .hero-stat-flip-inner {
    transform: rotateY(180deg)
}

.hero-stat-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.hero-stat-front {
    z-index: 2
}

.hero-stat-back {
    transform: rotateY(180deg)
}

.hero-stat-back-content {
    display: flex;
    align-items: center;
    gap: 8px
}

.hero-stat-platforms {
    display: flex;
    align-items: center;
    gap: 10px
}

.hero-stat-platforms-label {
    font-family: var(--font-geist-mono), "Geist Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    color: hsla(0, 0%, 100%, .7);
    white-space: nowrap
}

.hero-stat-platform-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .8;
    transition: opacity .2s ease
}

.hero-stat-platform-icon:hover {
    opacity: 1
}

.hero-stat-platform-icon-windsurf {
    width: 24px;
    height: 24px;
    margin-bottom: -1px
}

.hero-stat-platform-icon-cursor {
    padding-left: 2px
}

.hero-stat-icon {
    width: 16px;
    height: 16px;
    color: hsla(0, 0%, 100%, .7)
}

.hero-stat-text {
    font-family: var(--font-geist-mono), "Geist Mono", monospace;
    font-size: 16px;
    font-weight: 500;
    color: hsla(0, 0%, 100%, .7);
    white-space: nowrap
}

.hero-loopkit-character {
    position: absolute;
    bottom: -10px;
    left: 5%;
    width: clamp(200px, 22vw, 300px);
    height: auto;
    max-width: 300px;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
    transform: translateY(0);
    will-change: transform;
    animation: loopkit-character-animate 4s infinite;
}

/* Full-bleed, 100px ground strip snug to next section */
.video-showcase-section {
    position: relative;
    padding-bottom: 100px;
    /* space for ground strip height */
}

.video-showcase-container {
    position: relative;
}

.video-blue-container {
    position: relative;
    z-index: 20;
    /* video above back layers, below front layer */
}

.ground-strip {
    position: absolute;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 100px;
    /* max 100px */
    bottom: 0;
    pointer-events: none;
}

.ground-strip.ground-behind {
    z-index: 10;
}

.ground-strip.ground-front {
    z-index: 999;
}

.ground-strip .ground-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}


.hero-ground {
    position: absolute;
    width: 100vw;
    left: 0;
    bottom: -70%;

}

.hero-ground-behind {
    z-index: 0;
    transform: translateY(-300px);
}

.hero-ground-front {
    z-index: 25;
    transform: translateY(260px);
}

.hero-ground img {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    min-width: 100%;
    pointer-events: none;
}

@media (max-width: 500px) {
    .hero-ground {
        transform: translateY(-400px);
    }

    .hero-ground-front {
        transform: translateY(-300px);
    }
}

@media (min-width: 2000px) {
    .hero-ground {
        transform: translateY(100px);
    }

    .hero-ground-front {
        transform: translateY(700px);
    }
}

@media (min-width: 2800px) {
    .hero-ground {
        transform: translateY(600px);
    }

    .hero-ground-front {
        transform: translateY(950px);
    }
}

@media (min-width: 3000px) {
    .hero-ground {
        transform: translateY(950px);
    }

    .hero-ground-front {
        transform: translateY(1200px);
    }
}


/* back-to-front stacking: 5 (back) -> 1 (front) */
.hero-ground .hero-ground-layer-5 {
    z-index: 1;
}

.hero-ground .hero-ground-layer-4 {
    z-index: 2;
}

.hero-ground .hero-ground-layer-3 {
    z-index: 3;
}

.hero-ground .hero-ground-layer-2 {
    z-index: 4;
}

.hero-ground .hero-ground-layer-1 {
    z-index: 5;
}

/* animate loopkit character */
@keyframes loopkit-character-animate {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width:1024px) {
    .hero-section {
        padding: 140px 20px 60px
    }

    .hero-section-with-banner {
        padding-top: 204px
    }

    .hero-description {
        width: min(720px, 90vw)
    }

    .hero-loopkit-character {
        right: 5%;
        bottom: 0;
        width: clamp(180px, 20vw, 300px);
        display: none;
    }
}

@media (max-width:768px) {
    .hero-section {
        padding: 120px 20px 40px
    }

    .hero-section-with-banner {
        padding-top: 184px
    }

    .hero-content {
        gap: 16px
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px)
    }

    .hero-title-middle {
        font-size: clamp(16px, 4vw, 20px);
        margin: -2px 0
    }

    .hero-description {
        font-size: 16px;
        line-height: 140%;
        width: min(500px, 90vw)
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px
    }

    .hero-stat {
        padding: 6px 12px
    }

    .hero-stat:has(.hero-stat-flip-wrapper) {
        min-width: 340px
    }

    .hero-stat-flip-wrapper {
        height: 21px
    }

    .hero-stat-back-content,
    .hero-stat-platforms {
        gap: 6px
    }

    .hero-stat-platform-icon {
        width: 16px;
        height: 16px
    }

    .hero-stat-platform-icon-windsurf {
        width: 20px;
        height: 20px
    }

    .hero-stat-platforms-label {
        font-size: 11px
    }

    .hero-stat-icon {
        width: 14px;
        height: 14px
    }

    .hero-stat-text {
        font-size: 12px
    }

    .hero-loopkit-character {
        right: 2%;
        bottom: -30px;
        width: clamp(140px, 25vw, 180px);
        margin-bottom: -30px
    }
}

@media (max-width:430px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%
    }

    .enterprise-install-btn,
    .hero-enterprise-btn,
    .hero-install-btn {
        width: 100%;
        max-width: 300px
    }

    .hero-loopkit-character {
        bottom: -40px
    }
}

@media (max-width:360px) {
    .hero-section {
        padding: 100px 20px 30px
    }

    .hero-section-with-banner {
        padding-top: 164px
    }

    .hero-title {
        font-size: 28px
    }

    .hero-title-middle {
        font-size: 14px
    }

    .hero-description {
        font-size: 14px;
        line-height: 130%
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%
    }

    .hero-enterprise-btn,
    .hero-install-btn {
        font-size: 16px;
        padding: 10px 14px 12px;
        min-width: 140px;
        width: 100%;
        max-width: 300px
    }

    .hero-stats {
        gap: 8px
    }

    .hero-stat {
        padding: 4px 10px
    }

    .hero-stat-text {
        font-size: 11px
    }

    .hero-loopkit-character {
        width: clamp(80px, 25vw, 100px);
        right: 1%;
        bottom: -50px;
    }
}