/* ==========================================================================
   Jumppl Feature Pages — hybrid dark hero + light feature sections
   Reusable: .jp-feature-hero | .jp-feature-intro | .jp-feature-rows | .jp-feature-chips
   ========================================================================== */

:root {
    --jp-feat-navy-0: #04061a;
    --jp-feat-navy-1: #0a0b2e;
    --jp-feat-navy-2: #12154a;
    --jp-feat-purple: #8e57df;
    --jp-feat-purple-bright: #974eee;
    --jp-feat-lilac: #b8b0ff;
    --jp-feat-text: #12141d;
    --jp-feat-muted: #5b5b66;
    --jp-feat-surface: #f3f0fa;
    --jp-feat-surface-2: #ffffff;
    --jp-feat-surface-band: #f8f6fc;
    --jp-feat-border: rgba(142, 87, 223, 0.16);
    --jp-feat-max: 1200px;
    --jp-feat-pad-x: clamp(20px, 4vw, 52px);
}

@keyframes jp-feat-in {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes jp-feat-in-right {
    from {
        opacity: 0;
        transform: translate3d(36px, 12px, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes jp-feat-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes jp-feat-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   Hero (dark, full-bleed product plane)
   -------------------------------------------------------------------------- */
.jp-feature-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: min(92vh, 820px);
    padding: clamp(96px, 12vw, 128px) 0 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(151, 78, 238, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(72, 52, 180, 0.35), transparent 50%),
        linear-gradient(155deg, var(--jp-feat-navy-0) 0%, var(--jp-feat-navy-1) 48%, var(--jp-feat-navy-2) 100%);
    overflow-x: clip;
    overflow-y: hidden;
    color: #fff;
}

.jp-feature-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 148, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 148, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 30%, rgba(0, 0, 0, 0.7) 0%, transparent 75%);
    pointer-events: none;
}

.jp-feature-hero::after {
    content: "";
    position: absolute;
    top: 8%;
    right: 8%;
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    background: radial-gradient(circle, rgba(184, 176, 255, 0.22) 0%, transparent 68%);
    animation: jp-feat-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.jp-feature-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 48px);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--jp-feat-pad-x);
    box-sizing: border-box;
}

.jp-feature-hero__copy {
    max-width: 560px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    animation: jp-feat-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jp-feature-hero__brand {
    display: block;
    margin: 0 0 10px;
    font-family: "Inter", sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #ffffff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .jp-feature-hero__brand {
        background: linear-gradient(115deg, #ffffff 15%, #e4dcff 50%, #b8b0ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.jp-feature-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jp-feat-lilac);
    background: rgba(162, 155, 254, 0.12);
    border: 1px solid rgba(162, 155, 254, 0.28);
}

.jp-feature-hero__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jp-feat-lilac);
    box-shadow: 0 0 10px rgba(162, 155, 254, 0.8);
}

.jp-feature-hero__title {
    margin: 0 0 16px;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.022em;
    color: #fff;
}

.jp-feature-hero__text {
    margin: 0 0 30px;
    font-size: clamp(1.02rem, 1.7vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
    max-width: 40ch;
}

.jp-feature-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.jp-feature-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.jp-feature-hero__cta--primary {
    background: linear-gradient(180deg, #ffd75a 0%, #f4c93b 100%);
    color: #1a1230;
    box-shadow:
        0 10px 28px rgba(244, 201, 59, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jp-feature-hero__cta--primary:hover,
.jp-feature-hero__cta--primary:focus {
    transform: translateY(-2px);
    color: #1a1230;
    text-decoration: none;
    box-shadow:
        0 16px 36px rgba(244, 201, 59, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.jp-feature-hero__cta--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
}

.jp-feature-hero__cta--ghost:hover,
.jp-feature-hero__cta--ghost:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-color: rgba(184, 176, 255, 0.65);
}

.jp-feature-hero__media {
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    animation: jp-feat-in-right 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.jp-feature-hero__media::before {
    content: "";
    position: absolute;
    inset: 12% -8% -8% 8%;
    background: radial-gradient(ellipse at center, rgba(142, 87, 223, 0.45), transparent 65%);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

.jp-feature-hero__media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 500px);
    object-fit: cover;
    object-position: top left;
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    box-shadow:
        0 -12px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(162, 155, 254, 0.12);
}

/* --------------------------------------------------------------------------
   Intro (light)
   -------------------------------------------------------------------------- */
.jp-feature-intro {
    position: relative;
    padding: clamp(64px, 9vw, 100px) var(--jp-feat-pad-x) clamp(36px, 5vw, 52px);
    text-align: center;
    background:
        radial-gradient(ellipse 70% 80% at 50% -10%, rgba(142, 87, 223, 0.14), transparent 60%),
        linear-gradient(180deg, #ebe6f7 0%, var(--jp-feat-surface) 42%, var(--jp-feat-surface-2) 100%);
}

.jp-feature-intro__inner {
    max-width: 680px;
    margin: 0 auto;
    animation: jp-feat-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jp-feature-intro__label {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jp-feat-purple-bright);
}

.jp-feature-intro h2 {
    margin: 0 0 14px;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--jp-feat-text);
}

.jp-feature-intro h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--jp-feat-purple-bright), var(--jp-feat-lilac));
}

.jp-feature-intro p {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.7;
    color: var(--jp-feat-muted);
}

/* --------------------------------------------------------------------------
   Feature rows — alternating full-bleed bands
   -------------------------------------------------------------------------- */
.jp-feature-rows {
    padding: 0;
    background: var(--jp-feat-surface-2);
}

.jp-feature-rows__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    margin: 0;
}

.jp-feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(48px, 7vw, 88px) var(--jp-feat-pad-x);
    opacity: 0;
    animation: jp-feat-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.jp-feature-rows__inner > .jp-feature-row:nth-child(odd) {
    background:
        radial-gradient(ellipse 50% 70% at 0% 50%, rgba(142, 87, 223, 0.07), transparent 55%),
        var(--jp-feat-surface-band);
}

.jp-feature-rows__inner > .jp-feature-row:nth-child(even) {
    background: var(--jp-feat-surface-2);
}

.jp-feature-rows__inner > .jp-feature-row:nth-child(1) { animation-delay: 0.05s; }
.jp-feature-rows__inner > .jp-feature-row:nth-child(2) { animation-delay: 0.1s; }
.jp-feature-rows__inner > .jp-feature-row:nth-child(3) { animation-delay: 0.15s; }
.jp-feature-rows__inner > .jp-feature-row:nth-child(4) { animation-delay: 0.2s; }
.jp-feature-rows__inner > .jp-feature-row:nth-child(5) { animation-delay: 0.25s; }
.jp-feature-rows__inner > .jp-feature-row:nth-child(6) { animation-delay: 0.3s; }

.jp-feature-row__body {
    display: contents;
}

.jp-feature-row__copy {
    max-width: 480px;
    justify-self: start;
}

.jp-feature-row__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 0 16px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--jp-feat-purple-bright);
    background: rgba(151, 78, 238, 0.1);
    border: 1px solid rgba(151, 78, 238, 0.2);
}

.jp-feature-row__copy h3 {
    margin: 0 0 14px;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--jp-feat-text);
}

.jp-feature-row__copy p {
    margin: 0 0 18px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--jp-feat-muted);
}

.jp-feature-row__points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jp-feature-row__points li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--jp-feat-text);
    font-weight: 500;
}

.jp-feature-row__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jp-feat-purple-bright), var(--jp-feat-lilac));
    box-shadow: 0 0 0 3px rgba(151, 78, 238, 0.12);
}

.jp-feature-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(142, 87, 223, 0.12), rgba(5, 7, 33, 0.03));
    border: 1px solid var(--jp-feat-border);
    box-shadow:
        0 24px 56px rgba(40, 30, 80, 0.14),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.jp-feature-media::before {
    content: "";
    position: absolute;
    inset: auto -25% -40% auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(142, 87, 223, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.jp-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 2;
}

.jp-feature-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-feature-row:hover .jp-feature-media {
    transform: translateY(-4px);
    box-shadow:
        0 32px 64px rgba(40, 30, 80, 0.18),
        0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.jp-feature-row:hover .jp-feature-media img {
    transform: scale(1.025);
}

/* Constrain row content width on large screens */
@media (min-width: 768px) {
    .jp-feature-row {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: clamp(40px, 5vw, 72px);
        max-width: calc(var(--jp-feat-max) + 2 * var(--jp-feat-pad-x));
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .jp-feature-row--reverse .jp-feature-media {
        order: 2;
    }

    .jp-feature-row--reverse .jp-feature-row__copy {
        order: 1;
    }
}

/* --------------------------------------------------------------------------
   Chips — elevated capability strip
   -------------------------------------------------------------------------- */
.jp-feature-chips {
    position: relative;
    padding: clamp(48px, 7vw, 80px) var(--jp-feat-pad-x) clamp(64px, 9vw, 100px);
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(142, 87, 223, 0.12), transparent 60%),
        linear-gradient(180deg, var(--jp-feat-surface-2) 0%, var(--jp-feat-surface) 100%);
}

.jp-feature-chips__inner {
    max-width: var(--jp-feat-max);
    margin: 0 auto;
    text-align: center;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--jp-feat-border);
    box-shadow: 0 20px 48px rgba(60, 45, 120, 0.08);
    backdrop-filter: blur(8px);
}

.jp-feature-chips__title {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--jp-feat-text);
}

.jp-feature-chips__sub {
    margin: 0 0 26px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--jp-feat-muted);
}

.jp-feature-chips__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jp-feature-chips__list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--jp-feat-text);
    background: linear-gradient(180deg, #fff 0%, #f7f4fc 100%);
    border: 1px solid var(--jp-feat-border);
    box-shadow: 0 4px 14px rgba(80, 60, 140, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jp-feature-chips__list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jp-feat-purple-bright);
    flex-shrink: 0;
}

.jp-feature-chips__list li:hover {
    transform: translateY(-2px);
    border-color: rgba(151, 78, 238, 0.35);
    box-shadow: 0 8px 20px rgba(80, 60, 140, 0.12);
}

/* --------------------------------------------------------------------------
   Desktop hero
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .jp-feature-hero {
        padding: clamp(108px, 10vw, 128px) 0 0;
        min-height: min(88vh, 780px);
    }

    .jp-feature-hero__inner {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
        align-items: end;
        gap: clamp(20px, 3vw, 36px);
        max-width: none;
        padding-left: max(var(--jp-feat-pad-x), calc((100vw - var(--jp-feat-max)) / 2 + var(--jp-feat-pad-x)));
        padding-right: 0;
    }

    .jp-feature-hero__copy {
        padding-bottom: clamp(56px, 7vw, 92px);
    }

    .jp-feature-hero__media {
        margin: 0;
        align-self: stretch;
        display: flex;
        align-items: flex-end;
    }

    .jp-feature-hero__media img {
        max-height: min(74vh, 660px);
        width: 100%;
        border-radius: 24px 0 0 0;
        border-right: 0;
        box-shadow:
            -18px 0 60px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(162, 155, 254, 0.15);
        object-fit: cover;
        object-position: top left;
        animation: jp-feat-float 7s ease-in-out infinite;
    }
}

@media (min-width: 1200px) {
    .jp-feature-hero__media img {
        max-height: min(78vh, 700px);
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .jp-feature-hero {
        min-height: 0;
        padding-top: 88px;
    }

    .jp-feature-hero__ctas {
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .jp-feature-hero__cta {
        width: auto;
        min-width: 0;
        box-sizing: border-box;
    }

    .jp-feature-hero__media img {
        max-height: min(42vh, 360px);
        border-radius: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .jp-feature-row {
        padding: clamp(36px, 6vw, 56px) var(--jp-feat-pad-x);
        gap: 22px;
    }

    .jp-feature-row__copy {
        max-width: none;
    }

    .jp-feature-intro {
        padding: clamp(44px, 8vw, 64px) var(--jp-feat-pad-x) clamp(28px, 5vw, 40px);
    }

    .jp-feature-chips__inner {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .jp-feature-chips__list {
        gap: 10px;
    }

    .jp-feature-chips__list li {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .jp-feature-rows,
    .jp-feature-intro,
    .jp-feature-chips {
        overflow-x: clip;
    }

    .jp-feature-row:hover .jp-feature-media,
    .jp-feature-row:hover .jp-feature-media img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jp-feature-hero__copy,
    .jp-feature-hero__media,
    .jp-feature-intro__inner,
    .jp-feature-row,
    .jp-feature-hero__media img,
    .jp-feature-hero::after {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .jp-feature-hero__cta,
    .jp-feature-media,
    .jp-feature-media img,
    .jp-feature-chips__list li {
        transition: none;
    }
}
