/* Hero Section - deep blue gradient "sky" band with a twinkling star field.
   Margin on all sides + rounded corners all around gives it a floating,
   framed card look against the white page background. */
.hero {
    position: relative;
    margin: 14px;
    padding-top: 150px;
    padding-bottom: 60px;
    background: linear-gradient(180deg,
            var(--sky-1) 0%,
            var(--sky-2) 40%,
            var(--sky-3) 75%,
            #ffffff 100%);
    border-radius: 32px;
}

/* Star field container - sits behind the hero copy, above the gradient */
.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation-name: twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes twinkle {

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

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

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 780px;
    color: #ffffff;
}

.hero h1 span {
    color: #ffffff;
}

.hero-description {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    line-height: 1.6;
    text-shadow: 0 2px 16px rgba(15, 23, 42, 0.2);
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.hero-cta-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.hero-mockup-scale {
    /* Anchor shrinking at the top so the phone stays flush under the CTA
       caption; the removed height comes off the bottom instead of leaving
       a dead gap above the phone. */
    transform-origin: top center;
    margin-top: 32px;
}

@media (max-width: 560px) {
    .hero {
        margin: 8px;
        border-radius: 20px;
        padding-top: 120px;
    }

    .hero-mockup-scale {
        transform: scale(0.82);
        margin-bottom: -108px;
    }
}

@media (max-width: 400px) {
    .hero-mockup-scale {
        transform: scale(0.72);
        margin-bottom: -168px;
    }
}