/* ==========================================================================
   Premium SaaS Hero — full rebuild
   ========================================================================== */

.hero-saas {
    --hero-heading-accent: #b8864c;
    --hero-heading-gradient: linear-gradient(90deg, #000000 0%, #8b5e2a 45%, #ff8528 100%);
    --hero-description-color: #707070;

    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* ---- Background layers ---- */
.hero-saas__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-saas__bg-base {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 90% 70% at 50% -10%,
            rgba(247, 147, 29, 0.08),
            transparent 55%
        ),
        radial-gradient(
            ellipse 60% 50% at 100% 30%,
            rgba(247, 147, 29, 0.06),
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 40% at 0% 80%,
            rgba(247, 147, 29, 0.05),
            transparent 55%
        ),
        linear-gradient(180deg, #ffffff 0%, #fcfcfc 40%, #ffffff 100%);
}

.hero-saas__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(
        ellipse 90% 80% at 50% 30%,
        black 15%,
        transparent 72%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 90% 80% at 50% 30%,
        black 15%,
        transparent 72%
    );
    opacity: 0.6;
}

.hero-saas__bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-saas__bg-glow--1 {
    width: 560px;
    height: 560px;
    top: -12%;
    right: -8%;
    background: rgba(247, 147, 29, 0.14);
}

.hero-saas__bg-glow--2 {
    width: 400px;
    height: 400px;
    bottom: -5%;
    left: -10%;
    background: rgba(247, 147, 29, 0.1);
}

.hero-saas__bg-glow--3 {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 35%;
    background: rgba(247, 147, 29, 0.06);
}

.hero-saas__bg-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(247, 147, 29, 0.08);
    opacity: 0.5;
}

.hero-saas__bg-shape--1 {
    width: 120px;
    height: 120px;
    top: 18%;
    right: 22%;
    animation: heroShapeDrift 12s ease-in-out infinite;
}

.hero-saas__bg-shape--2 {
    width: 80px;
    height: 80px;
    bottom: 22%;
    left: 18%;
    animation: heroShapeDrift 9s ease-in-out infinite reverse;
}

/* ---- Layout ---- */
.hero-saas__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-saas__grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 4rem;
    align-items: center;
}

/* ---- Content column ---- */
.hero-saas__content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 134, 76, 0.1);
    color: var(--hero-heading-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.125rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 134, 76, 0.22);
    margin-bottom: 0.5rem;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-saas__heading {
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #000000;
    margin: 0 0 1.75rem;
    max-width: 90%;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-saas__heading .hero-text {
    color: #000000;
}

.hero-saas__heading .hero-gradient {
    background: var(--hero-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-saas__heading .hero-accent {
    background: var(--hero-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: inherit;
}

.hero-saas__description {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
    color: var(--hero-description-color);
    max-width: 520px;
    margin: 0 0 2.5rem;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

/* ---- CTAs ---- */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 52px;
    padding: 0 1.75rem;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
    border: 1px solid transparent;
}

.hero-cta__btn--primary {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero-cta__btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}

.hero-cta__btn--secondary {
    background: #fff;
    color: #18181b;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-cta__btn--secondary:hover {
    color: #18181b;
    border-color: rgba(0, 0, 0, 0.16);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
}

/* ---- Trust row ---- */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
    letter-spacing: -0.01em;
}

.hero-trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(247, 147, 29, 0.12);
    color: var(--accent, #f7931d);
    font-size: 0.5625rem;
    flex-shrink: 0;
}

/* ---- Phone showcase ---- */
.hero-saas__showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    max-width: 100%;
    margin-top: -30px;
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-showcase {
    position: relative;
    width: 100%;
    max-width: min(480px, 100%);
    overflow: hidden;
}

.hero-showcase__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(247, 147, 29, 0.18) 0%,
        transparent 70%
    );
    filter: blur(40px);
    pointer-events: none;
}

.hero-phone-stage {
    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-float {
    position: relative;
    z-index: 2;
    animation: heroPhoneFloat 6s ease-in-out infinite;
}

/* ---- iPhone frame ---- */
.hero-phone {
    position: relative;
    width: min(240px, 78vw);
}

.hero-phone__frame {
    position: relative;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 40%, #000000 100%);
    border-radius: 52px;
    padding: 11px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 50px 100px -24px rgba(0, 0, 0, 0.45),
        0 20px 40px -16px rgba(0, 0, 0, 0.25);
}

.hero-phone__island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.hero-phone__btn {
    position: absolute;
    background: #2c2c2e;
    border-radius: 2px;
    z-index: 1;
}

.hero-phone__btn--silent {
    top: 108px;
    left: -3px;
    width: 3px;
    height: 28px;
}
.hero-phone__btn--vol-up {
    top: 148px;
    left: -3px;
    width: 3px;
    height: 44px;
}
.hero-phone__btn--vol-down {
    top: 202px;
    left: -3px;
    width: 3px;
    height: 44px;
}
.hero-phone__btn--power {
    top: 168px;
    right: -3px;
    width: 3px;
    height: 64px;
}

.hero-phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 42px;
    overflow: hidden;
    background: #fff;
}

/* ---- Slider inside phone ---- */
.hero-phone-slider {
    position: absolute;
    inset: 0;
}

.hero-phone-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-phone-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: #fff;
}

.hero-phone-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-phone-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero-phone-slider__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-phone-slider__placeholder i {
    font-size: 2rem;
    opacity: 0.4;
}

/* ---- Showcase nav (outside phone) ---- */
.hero-showcase__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.hero-showcase__nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.18);
}

.hero-showcase__nav--prev {
    left: -8px;
}
.hero-showcase__nav--next {
    right: -8px;
}

.hero-showcase__dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-showcase__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        width 0.25s ease;
}

.hero-showcase__dot.is-active {
    background: var(--accent, #f7931d);
    transform: scale(1.2);
}

/* ---- Floating cards ---- */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.14);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.01em;
    white-space: nowrap;
    z-index: 5;
}

.floating-card--1 {
    top: 6%;
    left: -2%;
    animation: heroCardFloat1 5s ease-in-out infinite;
}

.floating-card--2 {
    top: 20%;
    right: -4%;
    animation: heroCardFloat2 4.2s ease-in-out infinite;
}

.floating-card--3 {
    top: 52%;
    right: -8%;
    animation: heroCardFloat3 5.8s ease-in-out infinite;
}

.floating-card--4 {
    bottom: 22%;
    left: -6%;
    animation: heroCardFloat4 4.6s ease-in-out infinite;
}

.floating-card--5 {
    bottom: 6%;
    right: 2%;
    animation: heroCardFloat5 5.2s ease-in-out infinite;
}

.floating-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.floating-card__icon--orange {
    background: rgba(247, 147, 29, 0.12);
    color: var(--accent, #f7931d);
}
.floating-card__icon--green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.floating-card__icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
.floating-card__icon--purple {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

/* ---- Animations ---- */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPhoneFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroShapeDrift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(12px, -16px);
    }
}

@keyframes heroCardFloat1 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-4px, -8px);
    }
}

@keyframes heroCardFloat2 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(6px, -6px);
    }
}

@keyframes heroCardFloat3 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(4px, 8px);
    }
}

@keyframes heroCardFloat4 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-6px, 6px);
    }
}

@keyframes heroCardFloat5 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5px, -5px);
    }
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .hero-saas__container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-saas__container {
        padding: 0 4rem;
    }
}

@media (max-width: 1199px) {
    .hero-saas__grid {
        gap: 3rem;
    }

    .hero-saas__heading {
        font-size: clamp(2.25rem, 5vw, 4rem);
    }
}

@media (max-width: 991px) {
    .hero-saas {
        min-height: auto;
        padding: 3.5rem 0 5rem;
    }

    .hero-saas__grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-saas__content {
        max-width: none;
        text-align: center;
    }

    .hero-saas__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta,
    .hero-trust {
        justify-content: center;
    }

    .hero-saas__showcase {
        min-height: 560px;
    }

    .floating-card--1 {
        left: 0;
    }
    .floating-card--4 {
        left: 0;
    }
    .floating-card--3 {
        right: 0;
    }
}

@media (max-width: 575px) {
    .hero-saas {
        padding: 2.5rem 0 4rem;
    }

    .hero-saas__container {
        padding: 0 1.25rem;
    }

    .hero-saas__heading {
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.08;
        max-width: 100%;
    }

    .hero-phone {
        width: min(260px, 72vw);
    }

    .hero-phone__frame {
        border-radius: 44px;
        padding: 9px;
    }

    .hero-phone__screen {
        border-radius: 36px;
    }

    .hero-phone__island {
        width: 80px;
        height: 24px;
        top: 14px;
    }

    .hero-showcase__nav {
        width: 38px;
        height: 38px;
    }

    .hero-showcase__nav--prev {
        left: 0;
    }
    .hero-showcase__nav--next {
        right: 0;
    }

    .floating-card {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }

    .floating-card__icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .floating-card--4,
    .floating-card--5 {
        display: none;
    }

    .floating-card--2 {
        right: 0;
    }

    .floating-card--3 {
        right: 0;
    }

    .hero-trust {
        gap: 0.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-saas__heading,
    .hero-saas__description,
    .hero-cta,
    .hero-trust,
    .hero-saas__showcase,
    .hero-phone-float,
    .floating-card,
    .hero-saas__bg-shape {
        animation: none;
    }

    .hero-phone-slider__slide {
        transition: none;
    }
}
