:root {
    --hero-bg: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 60%, #15335a 100%);
}

.home-page .header-empty-space {
    height: clamp(60px, 8vw, 90px);
}


/* #hero-main {
   
} */

.hero-slider {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: clamp(320px, 52vh, 500px);
    background: #f5f5f7;
    color: #0f0f0f;
    isolation: isolate;
    --hero-dot-color: rgba(15, 15, 15, 0.32);
    --hero-dot-active: #0f0f0f;
    padding-top: 50px;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: clamp(1.1rem, 2.5vw, 3rem);
    padding: clamp(1.75rem, 4vw, 3.2rem) clamp(1.2rem, 4vw, 3.2rem);
    background: inherit;
    color: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(6%);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-slide--light {
    background: #f5f5f7;
    color: #0f0f0f;
}

.hero-slide--dark {
    /* background: #050505; */
    background: var(--hero-bg) !important;
    color: #f5f5f5;
}

.hero-slide--reverse .hero-content {
    order: 2;
    align-items: flex-end;
    text-align: right;
}

.hero-slide--reverse .hero-media {
    order: 1;
}

.hero-slide--vertical {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    justify-items: center;
    text-align: center;
    gap: clamp(1.3rem, 3vw, 2.8rem);
}

.hero-slide--vertical .hero-content {
    align-items: center;
    text-align: center;
    max-width: min(42rem, 90%);
}

.hero-slide--vertical .hero-media {
    width: min(65vw, 560px);
}

.hero-slide--vertical .hero-media img {
    width: min(62vw, 520px);
}

.hero-slide--vertical .hero-actions {
    justify-content: center;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero-cta .hero-subtitle {
    margin: 0;
}

.hero-slide--vertical .hero-cta {
    width: min(32rem, 90%);
    margin: 0 auto;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1.6rem);
    max-width: clamp(24rem, 28vw, 30rem);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.95rem, 1vw + 0.7rem, 1.1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-logo {
    width: clamp(28px, 3vw, 36px);
    height: auto;
}

.hero-title {
    font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem);
    line-height: 1.05;
    font-weight: 700;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
    line-height: 1.5;
    margin: 0;
    color: inherit;
}

.hero-subtitle .highlight {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05em;
}

.highlight--onyx {
    color: #111111;
}

.highlight--aqua {
    color: #4cc7ff;
}

.highlight--copper {
    color: #ff8f3d;
}

.hero-slide--dark .hero-logo {
    filter: brightness(0) invert(1);
}

.hero-slide--dark .hero-btn--solid {
    background: #f5f5f5;
    color: #050505;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.hero-slide--dark .hero-btn--solid:hover {
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.hero-slide--dark .hero-btn--outline {
    color: #f5f5f5;
    border-color: rgba(245, 245, 245, 0.45);
}

.hero-slide--dark .hero-btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.hero-slide--dark .highlight--onyx {
    color: #f5f5f5;
}

.hero-slide--dark .hero-subtitle .highlight:not(.highlight--onyx) {
    text-shadow: 0 8px 22px rgba(88, 210, 255, 0.35);
}

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

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}

.hero-btn--solid {
    background: #1d1d1f;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.hero-btn--solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.hero-btn--outline {
    border-color: #1d1d1f;
    color: #1d1d1f;
    background: transparent;
}

.hero-btn--outline:hover {
    background: rgba(29, 29, 31, 0.08);
    transform: translateY(-2px);
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: clamp(220px, 48vh, 360px);
}

.hero-media img {
    /* width: min(100%, 480px); */
    max-height: 100%;
    object-fit: contain;
}

.gradient-text {
    background: linear-gradient( 90deg, #ff3b3b 0%, /* red */
    #ff9f0a 20%, /* orange */
    #ffd60a 40%, /* yellow */
    #34c759 60%, /* green */
    #0a84ff 80%, /* blue */
    #bf5af2 100%/* purple */
    );
    -webkit-background-clip: text;
    color: transparent;
}

.hero-slider[data-theme="dark"] {
    --hero-dot-color: rgba(255, 255, 255, 0.42);
    --hero-dot-active: rgba(255, 255, 255, 0.95);
}

.hero-dots {
    position: absolute;
    bottom: clamp(1rem, 2.5vw, 1.8rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 10;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--hero-dot-color);
    border: none;
    padding: 0;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.hero-dot.is-active {
    opacity: 1;
    background: var(--hero-dot-active);
    transform: scale(1.2);
}

.hero-dot:focus-visible {
    outline: 2px solid var(--hero-dot-active);
    outline-offset: 3px;
}

.macbook-cta {
    position: relative;
    padding: clamp(4rem, 12vw, 7rem) clamp(1.5rem, 6vw, 3rem);
    background: radial-gradient(circle at 50% 0%, rgba(80, 106, 255, 0.18) 0%, rgba(0, 0, 0, 0) 50%) #050505;
    color: #f5f5f5;
    text-align: center;
    overflow: hidden;
}

.macbook-cta__halo {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(80, 106, 255, 0.25) 0%, rgba(9, 9, 9, 0) 45%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

.macbook-cta__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
}

.macbook-cta__title {
    font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
    font-weight: 700;
    margin: 0;
}

.macbook-cta__subtitle {
    font-size: clamp(1.1rem, 2vw + 0.6rem, 1.4rem);
    color: rgba(245, 245, 245, 0.78);
    margin: 0;
}

.macbook-cta__buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.macbook-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
}

.macbook-cta__btn--primary {
    background: #4dbaeb;
    /* background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); */
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.macbook-cta__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.45);
}

.macbook-cta__btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #f5f5f5;
}

.macbook-cta__btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.macbook-cta__media {
    position: relative;
    width: min(80vw, 470px);
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
}

.macbook-cta__media img {
    width: 100%;
    display: block;
}

[data-animate] {
    opacity: 0;
    transform: translateY(26px);
}

.animate-in {
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: var(--hero-delay, 0s);
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        max-width: 28rem;
    }
}

@media (max-width: 991px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        gap: 2.5rem;
    }
    .hero-content,
    .hero-slide--reverse .hero-content {
        align-items: center;
        text-align: center;
        order: 1;
    }
    .hero-media,
    .hero-slide--reverse .hero-media {
        order: 2;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-media img {
        /* width: min(75%, 400px); */
    }
}

@media (max-width: 767px) {
    .hero-slider {
        min-height: clamp(340px, 72vh, 460px);
    }
    .hero-slide {
        padding: clamp(2rem, 6vw, 3rem) clamp(1.1rem, 6vw, 2rem);
        gap: 1.6rem;
    }
    .hero-media img {
        width: min(80%, 340px);
    }
    .hero-slide--vertical .hero-media {
        width: 100%;
    }
    .hero-slide--vertical .hero-media img {
        width: min(86%, 340px);
    }
    .hero-slide--vertical .hero-cta {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero-slider {
        min-height: clamp(320px, 78vh, 420px);
    }
    .hero-slide {
        padding: clamp(1.8rem, 7vw, 2.6rem) clamp(1rem, 6vw, 1.6rem);
        gap: 1.3rem;
    }
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
    }
    .hero-kicker {
        font-size: 0.85rem;
        letter-spacing: 0.18em;
    }
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 2.8rem);
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-dots {
        bottom: 1rem;
    }
    .hero-media img {
        /* width: min(88%, 300px); */
        width: 150px;
    }
    .hero-slide--vertical .hero-media img {
        width: min(90%, 300px);
    }
    .hero-slide--vertical .hero-cta {
        gap: 1rem;
    }
    .macbook-cta__buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    .macbook-cta__btn {
        width: 100%;
    }
}