/*
  OrvaPro Neo — Hero v3 "gradient kart-slider" (nxh namespace)
  bayigram-tarzı: yuvarlatılmış gradient kart + 3 slide + ok/nokta nav + rotor başlık.
  Metin HER ZAMAN beyaz (kart kendi zeminini taşır) → light/dark temadan bağımsız okunur.
  Eski .orvix-hero__* kurallarıyla çakışmaması için tüm iç yapı .nxh-* kullanır.
*/

section.orvix-hero.orvix-hero--neo.nxh-on {
    position: relative;
    padding: clamp(0.9rem, 1.8vw, 1.6rem) 0 0;
}

.nxh-stage {
    position: relative;
    z-index: 1;
}

/* ---------- Gradient kart ---------- */

.nxh-card {
    position: relative;
    overflow: hidden;
    border-radius: clamp(1.1rem, 2vw, 1.6rem);
    min-height: clamp(24rem, 40vw, 27.5rem);
    background:
        radial-gradient(52rem 30rem at 112% -18%, rgba(124, 58, 237, 0.38) 0%, transparent 60%),
        radial-gradient(40rem 26rem at -12% 118%, rgba(16, 201, 143, 0.22) 0%, transparent 58%),
        linear-gradient(118deg, #0b2166 0%, #123190 38%, #2563eb 78%, #4f8df9 100%);
    box-shadow: 0 24px 60px -28px rgba(11, 33, 102, 0.55);
    isolation: isolate;
}

/* dekor: yumuşak bokeh blob'ları + nokta ızgarası */
.nxh-card__blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(52px);
    pointer-events: none;
}

.nxh-card__blob--a {
    top: -22%;
    right: 14%;
    width: 22rem;
    height: 22rem;
    background: rgba(125, 211, 252, 0.35);
}

.nxh-card__blob--b {
    bottom: -30%;
    left: 32%;
    width: 18rem;
    height: 18rem;
    background: rgba(167, 139, 250, 0.3);
}

.nxh-card__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(38rem 24rem at 24% 30%, #000 0%, transparent 72%);
    mask-image: radial-gradient(38rem 24rem at 24% 30%, #000 0%, transparent 72%);
    pointer-events: none;
}

/* ---------- Slide'lar ---------- */

.nxh-slides {
    position: relative;
    z-index: 1;
    min-height: inherit;
}

.nxh-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1rem, 2.4vw, 2rem);
    align-items: center;
    padding: clamp(1.5rem, 3.2vw, 2.9rem) clamp(1.4rem, 3.4vw, 3.1rem) clamp(2.6rem, 4vw, 3.4rem);
    opacity: 0;
    transform: translateX(34px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    visibility: hidden;
}

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

.nxh-slide__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.8rem, 1.5vw, 1.05rem);
    min-width: 0;
}

/* ---------- Tipografi (hep beyaz) ---------- */

.nxh-chip,
.nxh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nxh-chip > i,
.nxh-eyebrow > i {
    font-size: 0.95rem;
    line-height: 1;
}

.nxh-eyebrow--gold > i {
    color: #fcd34d;
}

.nxh-eyebrow--mint > i {
    color: #6ee7b7;
}

.nxh-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.9rem, 3.9vw, 3.15rem);
    line-height: 1.07;
    letter-spacing: -0.018em;
    color: #fff;
    text-wrap: balance;
}

.nxh-rotor {
    display: inline-grid;
    vertical-align: baseline;
    text-align: left;
}

.nxh-rotor__word {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.55em);
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
    color: #a7f3d0;
    background: linear-gradient(92deg, #7dd3fc 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.nxh-rotor__word.is-active {
    opacity: 1;
    transform: translateY(0);
}

.nxh-rotor__word.is-leaving {
    opacity: 0;
    transform: translateY(-0.55em);
}

.nxh-sub {
    margin: 0;
    max-width: 30rem;
    font-size: clamp(0.93rem, 1.35vw, 1rem);
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- CTA satırı ---------- */

.nxh-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
}

.nxh-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.74rem 1.4rem;
    border: 0;
    border-radius: 0.85rem;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0b2166;
    background: #fff;
    box-shadow: 0 12px 26px -12px rgba(4, 16, 48, 0.55);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nxh-btn-light:hover,
.nxh-btn-light:focus-visible {
    color: #0b2166;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(4, 16, 48, 0.65);
}

.nxh-btn-light > i {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nxh-btn-light:hover > i {
    transform: translateX(3px);
}

/* Sipariş takip: cam hap form (mevcut id/name korunur) */
.nxh-order {
    flex: 1 1 15rem;
    max-width: 22rem;
    min-width: 0;
}

.nxh-order__field {
    display: flex;
    align-items: stretch;
    height: 100%;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nxh-order__field:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.18);
}

.nxh-order__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.68rem 0.95rem;
    border: 0;
    background: transparent;
    font-size: 0.87rem;
    font-weight: 500;
    color: #fff;
    outline: none;
}

.nxh-order__input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.nxh-order__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nxh-order__btn:hover,
.nxh-order__btn:focus-visible {
    background: rgba(255, 255, 255, 0.26);
}

/* ---------- Platform mini ikonları (slide 1 alt) ---------- */

.nxh-plats {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nxh-plats__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #fff;
    color: var(--tone, #2563eb);
    font-size: 1.05rem;
    box-shadow: 0 8px 18px -8px rgba(4, 16, 48, 0.55);
}

.nxh-plats__dot + .nxh-plats__dot {
    margin-left: -0.55rem;
}

.nxh-plats__hint {
    margin-left: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Slide 1 görseli + rozetler ---------- */

.nxh-slide__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: end;
    height: 100%;
    min-width: 0;
    /* görsel kartın alt kenarına tam otursun (slide'ın alt padding'ini yut) */
    margin-bottom: calc(-1 * clamp(2.6rem, 4vw, 3.4rem));
    pointer-events: none;
}

.nxh-slide__img {
    width: min(100%, 24.5rem);
    height: auto;
    align-self: flex-end;
    filter: drop-shadow(0 20px 36px rgba(4, 16, 48, 0.45));
}

.nxh-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f1b33;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px -12px rgba(4, 16, 48, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nxh-badge > i {
    font-size: 1rem;
    line-height: 1;
}

.nxh-badge--growth {
    top: 12%;
    left: 0;
}

.nxh-badge--growth > i {
    color: #10c98f;
}

.nxh-badge--delivered {
    bottom: 14%;
    right: 0;
}

.nxh-badge--delivered > i {
    color: #2563eb;
}

/* ---------- Slide 2/3 dekorları ---------- */

.nxh-slide__deco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    pointer-events: none;
}

.nxh-deco-flag {
    font-size: clamp(4.2rem, 8vw, 6.5rem);
    filter: drop-shadow(0 16px 30px rgba(4, 16, 48, 0.5));
}

.nxh-deco-ring {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #2563eb;
    font-size: 1.3rem;
    box-shadow: 0 12px 26px -12px rgba(4, 16, 48, 0.6);
}

.nxh-deco-ring--1 {
    top: 12%;
    left: 16%;
    color: #e1306c;
}

.nxh-deco-ring--2 {
    bottom: 16%;
    left: 28%;
    color: #ef4444;
}

.nxh-deco-ring--3 {
    top: 30%;
    right: 12%;
    color: #10c98f;
}

.nxh-deco-tier {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f1b33;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px -12px rgba(4, 16, 48, 0.6);
}

.nxh-deco-tier--bronze {
    transform: translate(-2.4rem, -2.6rem) rotate(-7deg);
    background: #f5d0a9;
}

.nxh-deco-tier--silver {
    transform: translate(2rem, -0.6rem) rotate(4deg);
    background: #e5e7eb;
}

.nxh-deco-tier--gold {
    transform: translate(-2.6rem, 1.4rem) rotate(-4deg);
    background: #fde68a;
}

.nxh-deco-tier--elite {
    transform: translate(1.8rem, 3.2rem) rotate(6deg);
    background: linear-gradient(92deg, #c7d2fe, #e9d5ff);
}

/* ---------- Slider nav (sağ alt, bayigram tarzı) ---------- */

.nxh-card__nav {
    position: absolute;
    z-index: 3;
    right: clamp(0.9rem, 2vw, 1.6rem);
    bottom: clamp(0.8rem, 1.6vw, 1.2rem);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nxh-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nxh-card__arrow:hover,
.nxh-card__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.nxh-card__dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nxh-card__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.nxh-card__dot.is-active {
    width: 1.5rem;
    background: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .nxh-card {
        min-height: 0;
    }

    .nxh-slides {
        min-height: 0;
    }

    .nxh-slide {
        position: static;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1.35rem 1.2rem 3.4rem;
    }

    .nxh-slide.is-active {
        display: grid;
    }

    .nxh-slide__visual {
        display: none;
    }

    .nxh-slide__deco {
        display: none;
    }

    .nxh-card__nav {
        right: auto;
        left: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .nxh-title {
        font-size: 1.72rem;
    }

    .nxh-order {
        flex-basis: 100%;
        max-width: none;
    }
}

/* ---------- Animasyonlar ---------- */

@media (prefers-reduced-motion: no-preference) {
    .nxh-anim {
        opacity: 0;
        animation: nxhUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
        animation-delay: var(--nxh-d, 0s);
    }

    .nxh-badge--growth {
        animation: nxhFloat 6s ease-in-out infinite;
    }

    .nxh-badge--delivered {
        animation: nxhFloat 7s ease-in-out 0.8s infinite;
    }

    .nxh-deco-ring--1 {
        animation: nxhFloat 6s ease-in-out infinite;
    }

    .nxh-deco-ring--2 {
        animation: nxhFloat 7s ease-in-out 0.5s infinite;
    }

    .nxh-deco-ring--3 {
        animation: nxhFloat 6.5s ease-in-out 1s infinite;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    .nxh-rotor__word,
    .nxh-slide {
        transition: none;
    }
}
