/* ======================= RESET & GLOBAL ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
html, body {
    height: 100%;
    scroll-behavior: smooth
}
:root {
    --container: min(1200px, 94vw);
    --gutter: clamp(12px, 3vw, 24px);
    --navH: 72px;
}

@media (max-width: 768px) {
    :root {
        --navH: 64px;
    }
    .navbar.scrolled {
        height: 58px;
    }
}
body {
    background: #000;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
    padding-top: var(--navH);
    caret-color: transparent;
}
input, textarea, [contenteditable="true"] {
    caret-color: #fff;
}
section {
    position: relative;
    z-index: 1
}
img {
    max-width: 100%;
    height: auto;
    display: block
}

/* Logo tweak */
.logo img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-top: 2px
}
@media (max-width:768px) {
    .logo img {
        height: 34px
    }
}

/* ======================= SITE-WIDE BACKGROUND ======================= */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}
.site-bg__base {
    position: absolute;
    inset: -15vh -15vw;
    background:
        radial-gradient(1200px 800px at 20% 15%, #120019 0%, rgba(18, 0, 25, 0) 60%),
        radial-gradient(1200px 900px at 85% 25%, #0b0016 0%, rgba(11, 0, 22, 0) 65%),
        linear-gradient(180deg, #000 0%, #050008 40%, #07000b 100%);
    filter: saturate(110%) contrast(105%);
    transform: translateZ(0)
}
.site-bg__blob {
    position: absolute;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .55;
    mix-blend-mode: screen;
    transform: translateZ(0);
    animation: blobFloat 22s ease-in-out infinite
}
.site-bg__blob.b1 {
    left: -10vw;
    top: -8vh;
    background: radial-gradient(circle at 50% 50%, rgba(82, 77, 254, .35), rgba(82, 77, 254, 0) 60%);
    animation-delay: 0s
}
.site-bg__blob.b2 {
    right: -12vw;
    top: 20vh;
    background: radial-gradient(circle at 50% 50%, rgba(124, 29, 123, .28), rgba(124, 29, 123, 0) 60%);
    animation-delay: 6s
}
.site-bg__blob.b3 {
    left: 15vw;
    bottom: -18vh;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at 50% 45%, rgba(249, 242, 243, .18), rgba(249, 242, 243, 0) 65%);
    animation-delay: 12s
}
@keyframes blobFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1)
    }
    50% {
        transform: translate3d(2vw, -1.5vh, 0) scale(1.07)
    }
}
.site-bg__vignette {
    position: absolute;
    inset: -10vh -10vw;
    background:
        radial-gradient(1200px 600px at 50% 0%, rgba(0, 0, 0, .35), transparent 60%),
        radial-gradient(1600px 800px at 50% 100%, rgba(0, 0, 0, .45), transparent 65%),
        radial-gradient(2000px 2000px at 50% 50%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55) 75%);
    pointer-events: none
}

/* ======================= NAVBAR ======================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navH);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 0, 14, .32);
    backdrop-filter: saturate(125%) blur(12px);
    -webkit-backdrop-filter: saturate(125%) blur(12px);
    transition: height .22s ease, background .22s ease, box-shadow .22s ease;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}
.navbar.scrolled {
    height: 64px;
    background: rgba(8, 0, 14, .5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35)
}
.nav-inner {
    width: var(--container);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-inline: var(--gutter);
}
.logo {
    font-weight: 800;
    letter-spacing: .3px;
    text-decoration: none;
    color: #fff;
    justify-self: center; /* Center logo by default (mobile) */
}
@media (min-width: 980px) {
    .logo {
        justify-self: start; /* Left align logo on desktop */
    }
}

/* Mobile/tablet: Logo hidden */
@media (max-width: 979px) {
    .logo {
        display: none;
    }
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* Inline links */
.nav-links-inline {
    display: none;
    gap: 8px;
    justify-self: center
}
.nav-links-inline a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #e8e8f0;
    font-weight: 700;
    opacity: .9;
    transition: opacity .2s ease
}
.nav-links-inline a:hover {
    opacity: 1
}
.nav-links-inline a:hover::after,
.nav-links-inline a:focus-visible::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #7C1D7B, #524DFE)
}
.nav-links-inline a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #7C1D7B, #524DFE)
}

/* Right actions (hamburger left of CTA) */
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    grid-column: 3; /* Always force into the rightmost column */
}

/* CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #7C1D7B, #524DFE);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(93, 70, 255, .25);
    transition: transform .15s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    transform: translateY(-1px)
}

/* Hamburger */
.menu-btn {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    cursor: pointer;
    border-radius: 11px;
    padding: 10px 12px;
    display: inline-flex;
    justify-self: start; /* Ensure left alignment in grid */
    align-items: center;
    justify-content: center
}
.hamburger {
    width: 44px;
    height: 40px;
    padding: 0 !important;
    position: relative
}
.hamburger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .2s transform, .2s opacity;
}
.hamburger span:nth-child(1) {
    top: 12px
}
.hamburger span:nth-child(2) {
    top: 19px
}
.hamburger span:nth-child(3) {
    top: 26px
}
.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* Desktop show links / hide hamburger */
@media (min-width:980px) {
    .nav-links-inline {
        display: flex
    }
    .menu-btn {
        display: none
    }
}

/* Small screens */
@media (max-width:420px) {
    .actions {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .nav-cta, .menu-btn, .nav-ghost {
        /* Allow buttons to size naturally or fit within row */
        max-width: none; 
        justify-content: center
    }
    .nav-cta {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ======================= MOBILE OVERLAY SHEET ======================= */
.nav-panel[hidden] {
    display: none
}
.nav-panel {
    position: fixed;
    inset: 0;
    z-index: 15
}
.nav-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 0, 12, .55);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .25s
}
.nav-panel.open .nav-panel__backdrop {
    opacity: 1
}
.nav-panel__sheet {
    position: absolute;
    right: 14px;
    top: 14px;
    width: min(420px, 92vw);
    border-radius: 18px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(16, 0, 25, .88), rgba(8, 0, 14, .92));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
    transition: opacity .25s, transform .25s
}
.nav-panel.open .nav-panel__sheet {
    opacity: 1;
    transform: translateY(0)
}
.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}
.sheet-title {
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #cbd1ff
}
.nav-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer
}
.sheet-links {
    display: flex;
    flex-direction: column;
    padding: 10px
}
.sheet-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .03);
    margin: 6px 0
}
.sheet-links a.primary {
    background: linear-gradient(90deg, #7C1D7B, #524DFE);
    border: none
}

/* ======================= HERO ======================= */
.hero {

    position: relative;
    height: clamp(100vh, 90vh, 100vh);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/hero.jpg') center/cover no-repeat;
    opacity: .28;
    transform: translateY(var(--bgTranslate, 0)) scale(var(--bgScale, 1));
    transition: transform .15s
}
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .48));
    z-index: 1
}
.hero-content {
    position: relative;
    z-index: 3
}
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 9rem);
    line-height: 1.15;
    display: inline-block;
    padding: .16em 0 .08em;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 900;
    background: linear-gradient(-45deg, #46166F, #524DFE, #7C1D7B, #F9F2F3, #46166F);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 10s ease infinite;
    will-change: transform, opacity;
    transition: transform .2s, opacity .2s
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
.bottom-text {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    z-index: 3;
    opacity: .95;
    text-align: center;
    padding: 0 16px
}
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    animation: bounce 2s infinite ease-in-out;
    border: none
}
.scroll-arrow svg {
    width: 22px;
    height: 22px;
    stroke: #000;
    fill: none;
    stroke-width: 2
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0)
    }
    40% {
        transform: translateX(-50%) translateY(-10px)
    }
    60% {
        transform: translateX(-50%) translateY(-5px)
    }
}
@media (max-height:620px) {
    .bottom-text, .scroll-arrow {
        display: none
    }
}

/* ======================= CONTENT: VISION ======================= */
/* Desktop Layout: Stacked Vertical (Text Top, Phones Bottom) */
@media (min-width: 980px) {
    .vision {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align items */
        max-width: var(--container);
        margin: 0 auto;
        padding-inline: var(--gutter);
        gap: 120px; /* Increased gap */
        min-height: auto;
        padding-bottom: 120px;
    }
    
    .vision .hero.ai-hero {
        order: 1 !important; /* Ensure text stays above */
        min-height: auto !important;
        height: auto !important;
        flex-shrink: 0;
        width: 100%;
        display: block; 
        overflow: visible;
        text-align: left; /* Left align text */
    }
    
    .vision .ai-hero__inner {
        width: 100%;
        padding: 0 0 160px 0; /* Add bottom padding to contain large leading/overflow */
        margin: 0;
        text-align: left;
        max-width: 100%;
    }

    /* Force stage to sit below */
    .vision #jc-stage,
    .vision .jc-stage {
         order: 2 !important; /* Ensure it stays below text */
         width: 100% !important;
         max-width: none !important;
         margin: 140px auto 0 !important; 
         position: relative !important;
         flex-shrink: 0;
         top: auto !important;
         left: auto !important;
         right: auto !important;
         transform: none !important;
         height: 500px !important;
    }

    .vision .jc-stage .jc-phone {
        max-width: 280px !important;
    }
}

.corefit-vision {
    padding: 8rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}
.vision-content {
    max-width: 850px;
    padding: 0 2rem
}
.vision-content .tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-size: .9rem;
    background: rgba(255, 255, 255, .08);
    color: #bfbfbf
}
.vision-content h2 {
    font-size: clamp(2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: .8rem 0 1rem
}
.vision-content h2 span {
    background: linear-gradient(90deg, #7C1D7B, #524DFE, #F9F2F3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite
}
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
.vision-content .description {
    color: rgba(255, 255, 255, .86);
    line-height: 1.85;
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    max-width: 700px;
    margin: 0 auto
}


/* ======================= HOW-HEADER (big centered title) ======================= */

.how-header {
    position: relative;
    padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(28px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
}
.how-header::before {
    content: "";
    position: absolute;
    inset: -12vh -10vw -10vh -10vw;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 50% 40%, rgba(82, 77, 254, .12), transparent 60%),
        radial-gradient(900px 420px at 50% 60%, rgba(124, 29, 123, .10), transparent 60%);
    filter: saturate(110%) contrast(105%);
}
.how-header__inner {
    max-width: min(1200px, 94vw);
    margin: 0 auto;
}
.how-header h2 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(2.0rem, 7vw, 4rem);
    letter-spacing: -.01em;
    line-height: 1.05;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.how-header h2 span {
    background: linear-gradient(90deg, #7C1D7B, #524DFE, #F9F2F3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}
.how-header .subtitle {
    margin: clamp(12px, 2.5vw, 18px) auto 0;
    max-width: 1100px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.9;
    text-wrap: balance;
}

/* ======================= HOW IT WORKS (Apple-like body) ======================= */
.hiw {
    position: relative;
    min-height: clamp(78vh, 92vh, 100vh);
    display: flex;
    align-items: center;
    padding: clamp(56px, 10vw, 120px) var(--gutter);
    isolation: isolate
}
.hiw::before {
    content: "";
    position: absolute;
    inset: -12vh -10vw -12vh -10vw;
    z-index: -1;
    pointer-events: none;
    filter: saturate(110%) contrast(105%)
}
.hiw__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center
}
.hiw__steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3.2vw, 42px)
}
.hiw__step {
    position: relative;
    display: grid;
    grid-template-columns: clamp(48px, 6.5vw, 64px) 1fr;
    align-items: start;
    column-gap: clamp(14px, 2vw, 22px);
    padding-block: 6px
}
.hiw__step::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 12px;
    height: 54px;
    width: 3px;
    border-radius: 3px;
    background: var(--site-bg);
    opacity: .75
}
.hiw__step:last-child::before {
    height: 40px
}
.hiw__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 6.5vw, 64px);
    height: clamp(48px, 6.5vw, 64px);
    border-radius: 14px;
    font-weight: 900;
    font-size: clamp(1.1rem, 2.4vw, 1.9rem);
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(135deg, #7C1D7B, #524DFE);
    box-shadow: 0 14px 30px rgba(124, 29, 123, .28), 0 18px 50px rgba(82, 77, 254, .20), inset 0 0 14px rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .14)
}
.hiw__body h3 {
    margin: 2px 0 8px;
    font-weight: 900;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    letter-spacing: .2px;
    background: linear-gradient(90deg, #EDEDF6, #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}
.hiw__body p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 46ch
}
.hiw__media {
    position: relative;
    border-radius: clamp(18px, 2.2vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .02);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 80px rgba(124, 29, 123, .18), 0 0 70px rgba(82, 77, 254, .16);
    min-height: clamp(360px, 52vh, 720px)
}
.hiw__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none
}
.hiw__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5
}
/* === Apple-style polish for HOW IT WORKS section === */

/* Gentle fade + motion */
.hiw__step,
.hiw__media {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}
.hiw__step.in,
.hiw__media.in {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Apple-like layering and glow */
.hiw__media {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, .55),
    0 0 100px rgba(82,77,254,.22),
    0 0 100px rgba(124,29,123,.18);
  background: radial-gradient(80% 90% at 50% 50%, rgba(255,255,255,.04), transparent 70%);
}
.hiw__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 60% 40%, rgba(255,255,255,.05), transparent 70%);
  opacity: .4;
  mix-blend-mode: screen;
}

/* Refined number styling */
.hiw__num {
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(124,29,123,.9), rgba(82,77,254,.9));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.25),
    0 10px 25px rgba(82,77,254,.25);
}

/* Typography polish */
.hiw__body h3 {
  background: linear-gradient(90deg, #fff, #d8d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hiw__body p {
  color: rgba(255,255,255,.86);
  line-height: 1.75;
  font-size: clamp(1rem,1.4vw,1.15rem);
}

/* Subtle divider line refinement */
.hiw__step::before {
  opacity: .45;
  filter: blur(0.3px);
}
/* ======================= JC AI INFINITE SCROLL (Refined Apple style) ======================= */
.jc-ai-infinite {
  position: relative;
  padding: clamp(110px, 12vw, 200px) var(--gutter);
  background: -site-bg;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.jc-ai-header {
  max-width: 940px;
  margin-bottom: clamp(80px, 8vw, 130px);
}
.jc-ai-header h2 {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -.01em;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.jc-ai-header h2 span {
    background: linear-gradient(90deg, #7C1D7B, #524DFE, #F9F2F3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}
.jc-ai-header .subtitle {
  margin-top: 22px;
  color: rgba(255,255,255,.8);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.85;
  text-wrap: balance;
}

/* --- Infinite rows --- */
.jc-row {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  margin-bottom: clamp(36px, 4vw, 48px);
}
.jc-track {
  display: flex;
  --jc-track-gap: clamp(32px, 3vw, 48px);
  gap: var(--jc-track-gap);
  width: max-content;
  will-change: transform;
}

/* RTL: keep the infinite rows visually balanced (avoid huge empty side gaps). */
html[dir='rtl'] .jc-card {
  direction: rtl;
  text-align: center;
}

.jc-row-1 .jc-track { animation: jcScrollLeft 60s linear infinite; }
.jc-row-2 .jc-track { animation: jcScrollRight 68s linear infinite; }
.jc-row-3 .jc-track { animation: jcScrollLeft 60s linear infinite; }

@keyframes jcScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--jc-track-gap) / 2))); }
}
@keyframes jcScrollRight {
  from { transform: translateX(calc(-50% - (var(--jc-track-gap) / 2))); }
  to { transform: translateX(0); }
}

/* --- Cards --- */
.jc-card {
  flex: 0 0 auto;
  border-radius: 22px;
  padding: clamp(36px, 3vw, 48px) clamp(48px, 4vw, 70px);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: #fff;
  --jc-mesh: none;
  --jc-fallback: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  background-color: rgba(255,255,255,.03);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.42) 100%),
    var(--jc-mesh),
    var(--jc-fallback);
  background-size: auto, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), box-shadow .0.5s, background .5s;
}
/* --- Interactive pointer + tactile click feel --- */
.jc-card {
  transition:
    transform 0.4s cubic-bezier(.2,.6,.2,1),
    box-shadow 0.4s ease,
    background 0.4s ease,
    filter 0.3s ease;
}

/* --- Optional: when you actually click (press down) --- */
.jc-card:active {
  transform: translateY(-2px) scale(0.98);
  filter: brightness(0.9);
  box-shadow: 0 8px 24px rgba(82, 77, 254, 0.2);
}

/* --- Softer gradients per tone --- */
.jc-card.pink     { --jc-mesh: url('/assets/mesh/mesh-14.png'); --jc-fallback: linear-gradient(135deg, #A739A4 0%, #7C1D7B 100%); }
.jc-card.blue     { --jc-mesh: url('/assets/mesh/mesh-16.png'); --jc-fallback: linear-gradient(135deg, #524DFE 0%, #46166F 100%); }
.jc-card.violet   { --jc-mesh: url('/assets/mesh/mesh-18.png'); --jc-fallback: linear-gradient(135deg, #8A6CFF 0%, #524DFE 100%); }
.jc-card.teal     { --jc-mesh: url('/assets/mesh/mesh-19.png'); --jc-fallback: linear-gradient(135deg, #7C1D7B 0%, #524DFE 100%); }
.jc-card.magenta  { --jc-mesh: url('/assets/mesh/mesh-15.png'); --jc-fallback: linear-gradient(135deg, #C13BA8 0%, #7C1D7B 100%); }
.jc-card.purple   { --jc-mesh: url('/assets/mesh/mesh-17.png'); --jc-fallback: linear-gradient(135deg, #46166F 0%, #524DFE 100%); }
.jc-card.red      { --jc-mesh: url('/assets/mesh/mesh-20.png'); --jc-fallback: linear-gradient(135deg, #9F3D94 0%, #7C1D7B 100%); }
.jc-card.cyan     { --jc-mesh: url('/assets/mesh/mesh-04.png'); --jc-fallback: linear-gradient(135deg, #6C5CFF 0%, #7C1D7B 100%); }
.jc-card.green    { --jc-mesh: url('/assets/mesh/mesh-18.png'); --jc-fallback: linear-gradient(135deg, #38C96C 0%, #1B6D4B 100%); }
.jc-card.gold     { --jc-mesh: url('/assets/mesh/mesh-15.png'); --jc-fallback: linear-gradient(135deg, #E6B44B 0%, #7C1D7B 100%); }
.jc-card.violet2  { --jc-mesh: url('/assets/mesh/mesh-19.png'); --jc-fallback: linear-gradient(135deg, #7C1D7B 0%, #9E82FF 100%); }
.jc-card.purple2  { --jc-mesh: url('/assets/mesh/mesh-17.png'); --jc-fallback: linear-gradient(135deg, #5A28A0 0%, #524DFE 100%); }


.jc-row:hover .jc-track { animation-play-state: paused; }

@media (max-width: 768px) {
  .jc-card { padding: 28px 40px; font-size: 1rem; }
  .jc-row-1 .jc-track { animation-duration: 42s; }
  .jc-row-2 .jc-track { animation-duration: 48s; }
}




/* ======================= JC SHOWCASE (FINAL FIXED VERSION — all 4 phones visible) ======================= */

:root {
  --jc-container: min(1000px, 92vw);
  --jc-gap: clamp(16px, 3vw, 40px);
  --jc-grad: linear-gradient(90deg, #7C1D7B, #524DFE);
}

/* SECTION */
#jc-showcase {
  position: relative;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  min-height: 90vh;               /* makes it fill most of viewport neatly */
  display: flex;
  flex-direction: column;
  justify-content: center;
}


#jc-showcase .jc-pin {
  position: static;
  height: auto;
  display: block;
}

/* GRID: text left, phones right */
#jc-showcase .jc-grid {
  width: var(--jc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  align-items: start;
  gap: var(--jc-gap);
  padding-inline: clamp(8px, 2vw, 20px);
}

/* LEFT TEXT */
.jc-features {
  display: grid;
  gap: clamp(22px, 2.2vw, 14px);
}

.jc-item {
  position: relative;
  padding-left: 16px;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.2, .65, .2, 1);
}

.jc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
}

.jc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 800 14px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
}

.jc-ai {
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.32rem 0.62rem;
  border-radius: 10px;
  background: #fff;
  color: #000;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.jc-title {
  margin-top: 0.45rem;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.01em;
}

.jc-desc {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(14px, 1.4vw, 16.5px);
  line-height: 1.75;
  max-width: 46ch;
}

.jc-item.active {
  transform: translateX(2px);
}

.jc-item.active::before {
  background: var(--jc-grad);
}

.jc-item.active .jc-title {
  background: var(--jc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(124, 29, 123, .22),
               0 0 22px rgba(82, 77, 254, .22);
}

/* ======================= JC SHOWCASE (FIXED 4-PHONE STACK) ======================= */
#jc-showcase .jc-stage {
  position: relative !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;

  --phone-w: min(420px, 20vw);
  --ratio: 2.1667; /* 19.5:9 */
  --gap: clamp(14px, 2.5vh, 28px);
  --phone-h: calc(var(--phone-w) * var(--ratio));

  /* FIX: make room for 4 phones properly */
  height: calc(var(--phone-h) * 4 + var(--gap) * 3);
  width: var(--phone-w);
  margin: 0 auto;
}

/* Each phone */
#jc-showcase .jc-stage .jc-phone {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  border-radius: 28px !important;
  object-fit: cover;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.7) !important;
  filter: saturate(1) contrast(1.05) brightness(1);
  pointer-events: none;
}

/* Adjust stacking and tilt for a natural Apple-style depth */
#jc-showcase .jc-stage .jc-phone:nth-child(1) {
  top: 0;
  transform: rotate(-2deg) translateX(-1%);
  z-index: 1;
}
#jc-showcase .jc-stage .jc-phone:nth-child(2) {
  top: calc(var(--phone-h) + var(--gap));
  transform: rotate(-0.6deg) translateX(-0.5%);
  z-index: 2;
}
#jc-showcase .jc-stage .jc-phone:nth-child(3) {
  top: calc(var(--phone-h) * 2 + var(--gap) * 2);
  transform: rotate(0.6deg) translateX(0.5%);
  z-index: 3;
}
#jc-showcase .jc-stage .jc-phone:nth-child(4) {
  top: calc(var(--phone-h) * 3 + var(--gap) * 3);
  transform: rotate(2deg) translateX(1%);
  z-index: 4;
}

/* Hover glow */
#jc-showcase .jc-stage:hover .jc-phone {
  box-shadow: 0 30px 90px rgba(82, 77, 254, 0.5),
              0 0 50px rgba(124, 29, 123, 0.25);
}

/* Responsive layout */
@media (max-width: 1024px) {
  #jc-showcase .jc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .jc-stage {
    order: -1;
  }
  #jc-showcase .jc-stage {
    --phone-w: min(360px, 66vw);
  }
}
@media (max-width: 640px) {
  #jc-showcase .jc-stage {
    --phone-w: min(320px, 86vw);
    --gap: clamp(12px, 3vh, 22px);
  }
}

/* CTA */
.cta-mesh {
    padding: 10px var(--gutter) 7rem
}
.cta-mesh__card {
    position: relative;
    isolation: isolate;
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(2.2rem, 5vw, 4.75rem);
    background-color: rgba(255, 255, 255, .03);
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .62) 100%),
      url('/assets/mesh/mesh-16.png');
    background-size: auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 90px rgba(124, 29, 123, .22), 0 0 60px rgba(82, 77, 254, .18)
}
.cta-mesh__glow {
    position: absolute;
    width: 60%;
    height: 140%;
    filter: blur(90px);
    opacity: .8;
    pointer-events: none;
    border-radius: 50%
}
.cta-mesh__glow--l {
    left: -18%;
    top: -10%;
    background: radial-gradient(55% 65% at 25% 70%, rgba(124, 29, 123, .35), transparent 65%), radial-gradient(55% 65% at 65% 30%, rgba(249, 242, 243, .15), transparent 70%)
}
.cta-mesh__glow--r {
    right: -18%;
    top: -18%;
    background: radial-gradient(55% 65% at 60% 45%, rgba(82, 77, 254, .35), transparent 60%), radial-gradient(55% 65% at 80% 25%, rgba(249, 242, 243, .12), transparent 70%)
}
.cta-mesh__grain {
    position: absolute;
    inset: 0;
    opacity: .13;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 4px);
    mix-blend-mode: screen
}
.cta-mesh__icon {
    color: #fff;
    filter: drop-shadow(0 8px 22px rgba(255, 255, 255, .38));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem
}
.cta-mesh h2 {
    text-align: center;
    font-weight: 900;
    font-size: clamp(1.7rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: #EAEAF2;
    text-wrap: balance;
    margin-bottom: 1.75rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .6)
}
.cta-mesh__btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.45rem;
    border-radius: 999px;
    background: #fff;
    color: #061b0a;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(255, 255, 255, .33), inset 0 0 12px rgba(255, 255, 255, .24);
    transition: transform .15s, box-shadow .2s, filter .2s
}
.cta-mesh__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 50px rgba(255, 255, 255, .4), inset 0 0 16px rgba(255, 255, 255, .3);
    filter: saturate(112%)
}
.cta-mesh__card .cta-mesh__btn {
    display: block;
    width: max-content;
    margin: 0 auto
}

/* === HERO VIDEO (Dark Apple-style) === */
.hero-video {
  background: var(--site-bg,);
  color: #fff;
  text-align: center;
  padding: clamp(6rem, 10vw, 8rem) var(--gutter) 10px;
}

.hv-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hv-header h2 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.hv-header p {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  opacity: 0.85;
  margin: 0;
}

.hv-header span {
  color: #7c1d7b;
  font-weight: 700;
}

/* === HERO VIDEO CALLOUT (Apple Music-style) === */
.hv-callout {
  --hv-mesh: url('/assets/mesh/mesh-16.png');
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 28px;
  background-color: rgba(255, 255, 255, 0.03);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.5) 100%),
    var(--hv-mesh);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
}

.hv-callout::before {
  content: '';
  position: absolute;
  inset: -120px -160px;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 29, 123, 0.35), transparent 55%),
    radial-gradient(circle at 65% 25%, rgba(82, 77, 254, 0.35), transparent 55%),
    radial-gradient(circle at 55% 80%, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(0px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hv-callout__inner {
  position: relative;
  z-index: 1;
  width: min(900px, 90%);
  padding: clamp(1.25rem, 3.2vw, 2.4rem);
  text-align: center;
}

.hv-callout__kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.85rem;
  color: rgba(203, 209, 255, 0.9);
  margin: 0 0 0.45rem;
}

.hv-callout__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  background: linear-gradient(90deg, #f9f2f3, #524dfe, #7c1d7b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.hv-tile {
  position: absolute;
  width: clamp(68px, 8vw, 122px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  opacity: 0.9;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.25), transparent 58%),
    linear-gradient(135deg, rgba(124, 29, 123, 0.75), rgba(82, 77, 254, 0.75));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  filter: saturate(1.15);
  z-index: 1;
}

.hv-tile.t1 { left: -18px; top: 18px; transform: rotate(-10deg); }
.hv-tile.t2 { left: 10%; top: -26px; transform: rotate(8deg); width: clamp(54px, 6.5vw, 96px); opacity: 0.75; }
.hv-tile.t3 { right: 12%; top: -22px; transform: rotate(-6deg); width: clamp(54px, 6.5vw, 96px); opacity: 0.75; }
.hv-tile.t4 { right: -18px; top: 22px; transform: rotate(12deg); }
.hv-tile.t5 { left: 16%; bottom: -28px; transform: rotate(-8deg); width: clamp(52px, 6vw, 92px); opacity: 0.7; }
.hv-tile.t6 { right: 16%; bottom: -28px; transform: rotate(8deg); width: clamp(52px, 6vw, 92px); opacity: 0.7; }

@media (max-width: 720px) {
  .hv-tile { display: none; }
  .hv-callout { border-radius: 22px; }
}

/* === VIDEO FRAME === */
.hv-video-frame {
  position: relative;
  display: inline-block;
  margin-top: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  max-width: 1120px;
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
}

.hv-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  cursor: pointer;
  object-fit: cover;
}

/* === PLAY BUTTON === */
.hv-play {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.hv-play:hover {
  background: rgba(124, 29, 123, 0.4);
  transform: scale(1.08);
}

/* === CAPTION === */
.hv-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 2;
}

.hv-logo {
  width: 88px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hv-logo {
    width: 60px;
  }
}


/* PRICING */
.pricing {
    padding: 8rem var(--gutter);
    text-align: center
}
.pricing .container {
    max-width: var(--container);
    margin: 0 auto
}
.pricing h2 {
    font-size: clamp(1.9rem, 4.2vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(82, 77, 254, .3)
}
.pricing-grid {
    display: grid;
    gap: 1.75rem;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}
.price-card.featured {
    background: linear-gradient(135deg, rgba(82, 77, 254, .18), rgba(124, 29, 123, .18));
    border-color: rgba(249, 242, 243, .18)
}
.price-card .plan-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .75rem
}
.price-card h3 {
    font-weight: 800;
    font-size: 1.1rem
}
.price-card .badge {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .3px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7C1D7B, #524DFE);
    color: #fff
}
.price-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .4rem;
    margin: .25rem 0 1.5rem
}
.price-line .amount {
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1
}
.price-line .currency {
    font-weight: 900;
    font-size: 1.25rem;
    opacity: .95
}
.price-line .per {
    font-size: .95rem;
    color: rgba(255, 255, 255, .72)
}
.features-list {
    list-style: none;
    text-align: left;
    margin: 0 0 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .9)
}
.features-list li {
    position: relative;
    padding-left: 1.4rem
}
.features-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.1;
    color: #b84cf3;
    font-weight: 900
}
.features-list li.disabled {
    opacity: .5
}
.features-list li.disabled::before {
    content: "✖";
    color: rgba(255, 255, 255, .45)
}
.price-card .btn {
    align-self: center;
    margin-top: auto;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: .9rem 1.4rem;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .35)
}
.price-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, .45), 0 0 20px rgba(124, 29, 123, .35)
}
.pricing .notes {
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, .7);
    font-size: .95rem
}

.pricing {
    background: #0c0b10;
    padding: clamp(6rem, 10vw, 10rem) var(--gutter);
    text-align: center;
    color: #fff;
  }
  
  .pricing-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 3rem;
    text-shadow: 0 0 24px rgba(124, 29, 123, 0.4);
  }
  
  .pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .plan-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease, box-shadow 0.4s ease, cursor 0.2s;
    cursor: default;
  }
  
  .plan-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 40px 100px rgba(82, 77, 254, 0.35);
    cursor: pointer;
  }
  
  .plan-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.25) 80%);
    backdrop-filter: blur(4px);
  }
  
  .plan-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
  }
  
  .plan-content h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .price {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0.25rem 0 1rem;
  }
  .price span {
    font-size: 1rem;
    opacity: 0.85;
    margin-left: 2px;
  }
  
  .desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 1.5rem;
  }
  
  .buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .btn-primary,
  .btn-outline {
    font-weight: 800;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
  }
  
  .btn-primary {
    background: #fff;
    color: #000;
    border: none;
  }
  
  .btn-outline {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255,255,255,0.2);
  }
  
  .btn-outline:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .pricing-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 560px) {
    .pricing-row {
      grid-template-columns: 1fr;
    }
  }

/* ==== APPLE-STYLE PRICING SHOWCASE ==== */

.pricing-heading {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.pricing {
  background: var(--site-bg);
  padding: clamp(80px,10vw,140px) var(--gutter);
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px,2vw,28px);
  max-width: 1600px;
  margin: 0 auto;
}

/* --- PLAN CARD --- */
.plan-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transition: transform 0.5s cubic-bezier(.2,.65,.2,1), box-shadow 0.5s;
}

.plan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.plan-card:hover img {
  transform: scale(1.05);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 110px rgba(0,0,0,0.65);
}

/* --- OVERLAY CONTENT --- */
.plan-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(20px,3vw,40px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
  color: #fff;
  text-align: left;
}

.plan-overlay h3 {
  font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin: 0 0 4px;
}

.plan-overlay .price {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-overlay .price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: .8;
  margin-left: 4px;
}

/* --- BUTTONS --- */
.btns {
  display: flex;
  gap: 10px;
}

.btn {
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background .3s ease, transform .3s;
}

.btn.buy {
  background: #fff;
  color: #000;
}

.btn.learn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

/* ==== SEPARATOR LINES UNDER THE FOUR PRICING CARDS ==== */
.pricing-separator {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  max-width: 1600px;
  margin: 2.0rem auto 0;
}

.pricing-separator span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 10px;
}

/* ==== CLEAN COMPARISON SECTION ==== */
.compare-bands {
  background: var(--site-bg);
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  padding: clamp(0.5rem, 0.5vw, 0.5rem) var(--gutter) clamp(6rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

/* Each feature row — NO lines */
.compare-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  align-items: start;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border: none;
}

/* Individual cells */
.plan-info {
  color: #fff;
}

.plan-info h4 {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.plan-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.plan-info p > span:first-child {
  display: block;
  line-height: 1;
  margin: 0.35rem 0 0.6rem;
  text-align: center;
}

.plan-info p > span:only-child {
  margin-bottom: 0;
}

.plan-desc {
  display: block;
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  /* Pricing cards: switch to 2 columns on tablets so cards don't get squished */
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .plan-overlay {
    padding: clamp(14px, 2vw, 22px);
  }

  .plan-overlay h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  }

  .plan-overlay .price {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 10px;
  }

  .btns {
    gap: 8px;
    flex-wrap: wrap;
  }

  .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
  }

  .compare-row {
    grid-template-columns: repeat(4, minmax(165px, 1fr));
    gap: 1rem;
  }

  .plan-info h4 {
    font-size: 1rem;
  }

  .plan-info p {
    font-size: 0.86rem;
  }

  .plan-desc {
    max-width: 26ch;
  }
}
@media (max-width: 820px) and (min-width: 641px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
  }

  .compare-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0.85rem;
  }

  .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 640px) {
  .pricing-grid, .compare-row { grid-template-columns: 1fr; }
}

/* === MOBILE PRICING SECTION (cleaned & improved layout) === */
.pricing-mobile {
  display: none;
  background: #0a0a0f;
  color: #fff;
  padding: 3rem var(--gutter);
  text-align: center;
}

.pricing-mobile-grid {
  display: grid;
  gap: 1.2rem;
}

/* --- CARD --- */
.plan-card-mobile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 2.8; /* slightly smaller */
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.plan-card-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.plan-card-mobile:hover img {
  transform: scale(1.05);
}

/* --- OVERLAY --- */
.plan-overlay-mobile {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.85) 100%);
}

/* === TEXT HIERARCHY === */
.plan-overlay-mobile h3 {
  font-weight: 900;
  font-size: 2.8rem;
  text-align: left;
  margin-bottom: 0.2rem;
}

.plan-overlay-mobile .price {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.9;
  text-align: left;
  margin-bottom: 0.8rem;
}

/* === BULLET LIST === */
.desc-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  text-align: left;
}

.desc-list li {
  font-size: 1.05rem; /* bigger bullets */
  color: rgba(255, 255, 255, 0.92);
  margin: 0.45rem 0;
  padding-left: 1.3rem;
  position: relative;
}

.desc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffff; /* your brand accent */
  font-size: 1.2rem;
}

/* === BUTTONS === */
.plan-overlay-mobile .btns {
  display: flex;
  gap: 0;
  width: 100%;
  margin-top: auto;
  border-radius: 22px 22px 22px 22px;
  overflow: hidden;
}

.plan-overlay-mobile .btn {
  flex: 1 1 0px;
  min-width: 0;
  padding: 1rem 0;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  line-height: normal;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  height: auto;
}

.plan-overlay-mobile .btn.buy {
  background: #fff;
  color: #000;
}

.plan-overlay-mobile .btn.learn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-overlay-mobile .btn:hover {
  transform: none;
  background: rgba(255,255,255,0.15);
}

/* === SHOW MOBILE PRICING FROM 1025px DOWN === */
@media (max-width: 1025px) {
  #pricing { display: none !important; }
  #compare { display: none !important; }
  #pricing-mobile { display: block !important; }
  /* Ensure mobile plan content and buttons are reachable but not oversized */
  .plan-card-mobile { aspect-ratio: auto; height: clamp(340px, 70svh, 420px); }
  .plan-overlay-mobile { overflow: auto; -webkit-overflow-scrolling: touch; padding: 1.2rem 1rem; }
  .plan-overlay-mobile h3 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .plan-overlay-mobile .price { font-size: 1rem; }
  .desc-list li { font-size: 0.95rem; }
}



/* ===== SMART FOOTER ===== */
.smart-footer {
    position: relative;
    padding: 7rem var(--gutter) 2.5rem
}
.smart-footer__card {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    border-radius: 26px;
    padding: clamp(2rem, 3.5vw, 3rem);
    background: rgba(10, 0, 18, .58);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 90px rgba(124, 29, 123, .20), 0 0 70px rgba(82, 77, 254, .16);
    backdrop-filter: blur(8px);
    overflow: hidden
}
.smart-footer__card::before, .smart-footer__card::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 58%;
    height: 140%;
    filter: blur(90px);
    opacity: .8;
    pointer-events: none;
    border-radius: 50%
}
.smart-footer__card::before {
    left: -22%;
    top: -18%;
    background: radial-gradient(55% 65% at 22% 70%, rgba(124, 29, 123, .35), transparent 65%), radial-gradient(55% 65% at 65% 30%, rgba(249, 242, 243, .12), transparent 70%)
}
.smart-footer__card::after {
    right: -20%;
    bottom: -15%;
    background: radial-gradient(55% 65% at 60% 45%, rgba(82, 77, 254, .32), transparent 60%), radial-gradient(55% 65% at 80% 25%, rgba(249, 242, 243, .10), transparent 70%)
}
.smart-footer__halo {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(124, 29, 123, .65), rgba(82, 77, 254, .65));
    opacity: .85;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(124, 29, 123, .35), 0 0 16px rgba(82, 77, 254, .35);
    margin-bottom: 2rem
}
.smart-footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
    grid-template-areas: "brand product company resources news";
    align-items: start
}
.smart-footer__grid> :nth-child(1) {
    grid-area: brand
}
.smart-footer__grid> :nth-child(2) {
    grid-area: product
}
.smart-footer__grid> :nth-child(3) {
    grid-area: company
}
.smart-footer__grid> :nth-child(4) {
    grid-area: resources
}
.smart-footer__grid> :nth-child(5) {
    grid-area: news
}
@media (max-width:1200px) and (min-width:700px) {
    .smart-footer__grid {
        grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
        grid-template-areas:
            "brand product  company   news"
            "brand resources resources news";
    }
    .smart-footer__grid> :nth-child(1),
    .smart-footer__grid> :nth-child(5) {
        align-self: stretch
    }
}
@media (max-width:699px) and (min-width:520px) {
    .smart-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand""product company""resources news";
    }
}
@media (max-width:519px) {
    .smart-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "product company"
            "resources resources"
            "news news";
    }
    .smart-footer__bottom {
        padding-right: 0;
    }
    #toTop {
        bottom: 70px;
    }
}
.sf-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: .5rem
}
.sf-brand p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7
}
.sf-group h4 {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    margin: .85rem 0
}
.sf-list {
    list-style: none;
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0
}
.sf-list a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    display: inline-block;
    transition: .2s ease
}
.sf-list a:hover {
    color: #fff;
    text-shadow: 0 0 18px rgba(124, 29, 123, .45), 0 0 18px rgba(82, 77, 254, .45);
    transform: translateX(2px)
}
.sf-socials {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
    flex-wrap: wrap
}
.sf-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    transition: .2s ease;
    backdrop-filter: blur(4px)
}
.sf-socials a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7C1D7B, #524DFE);
    box-shadow: 0 10px 24px rgba(124, 29, 123, .35)
}
.smart-footer__grid> :nth-child(5) {
    display: block
}
.sf-news {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1rem
}
.sf-news p {
    color: rgba(255, 255, 255, .85);
    margin: 0 0 .8rem
}
.sf-news form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap
}
.sf-input {
    flex: 1 1 220px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    padding: 0 14px;
    outline: none;
    min-width: 0
}
.sf-input::placeholder {
    color: rgba(255, 255, 255, .6)
}
.sf-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(90deg, #7C1D7B, #524DFE);
    color: #fff;
    box-shadow: 0 10px 24px rgba(82, 77, 254, .35), inset 0 0 10px rgba(255, 255, 255, .16);
    transition: .18s ease;
    white-space: nowrap;
    flex: 0 0 auto
}
.sf-btn:hover {
    transform: translateY(-1px)
}
.smart-footer__bottom {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 2rem;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, .65);
    flex-wrap: wrap;
    row-gap: .75rem;
    /* Leave room for the floating back-to-top button */
    padding-right: 70px
}
.sf-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}
.sf-legal a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none
}
.sf-legal a:hover {
    color: #fff
}

/* Back to top */
#toTop {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
    transition: .2s ease;
    color: #fff
}
#toTop:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .45);
    outline-offset: 3px
}
#toTop:hover {
    background: linear-gradient(135deg, #7C1D7B, #524DFE);
    transform: translateY(-2px)
}
/* ===== Apple-style HERO override (only styles added/overridden) ===== */
.hero.ai-hero {
    position: relative;
    min-height: 96vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    overflow: hidden;
}

.hero.ai-hero::before,
.hero.ai-hero .overlay,
.hero.ai-hero .bottom-text,
.hero.ai-hero .scroll-arrow {
    display: none !important;
}

.ai-hero__inner {
    width: min(1200px, 94vw);
    margin: 0 auto;
    padding: clamp(72px, 12vw, 160px) var(--gutter) clamp(36px, 8vw, 120px);
}

.ai-eyebrow {
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: clamp(4px, 0.9vw, 10px);
    margin-top: 60px; /* Increased margin above eyebrow */
}
/* Fill ~90% of the screen with the 3-line headline */
/* Fills ~90% of the screen across 3 lines: EVOLUTION / BEYOND / FITNESS */
.ai-headline {
    --lines: 3;
    /* number of lines */
    --lh: .82;
    /* line-height used below */
    --fill: 90svh;
    /* how much of the screen to occupy vertically */

    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: var(--lh);
    margin: 0;
    padding: 0.1em 0; /* Add padding to prevent clipping */

    margin-top: clamp(-14px, -1.8vw, -8px);
    /* Size by height so it dominates the page; clamp prevents tiny phones/huge screens issues */
    font-size: clamp(40px,
            calc(var(--fill) / (var(--lines) * var(--lh))),
            1200px);

    background: linear-gradient(90deg, #4da6ff 0%, #6d63ff 25%, #b24bff 50%, #ff4b6b 75%, #ff7a2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}





.ai-headline .ai-dot {
    display: inline-block;
    transform: translateY(-0.06em);
}

.ai-sub {
    margin-top: clamp(18px, 3vw, 28px);
    max-width: 900px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.9;
}

/* tighten on very small screens */
@media (max-width: 480px) {
    .ai-headline {
        font-size: 20vw;
    }
}

/* Mobile/tablet: avoid huge empty space under the Vision copy */
@media (max-width: 768px) {
    .hero.ai-hero {
        min-height: auto;
    }
    .ai-hero__inner {
        padding-top: clamp(44px, 10vw, 84px);
        padding-bottom: 8px;
    }
    .ai-headline {
        --fill: 60svh;
    }
    .ai-sub {
        margin-top: 12px;
    }
    #jc-stage {
        height: clamp(260px, 34vh, 360px) !important;
        margin: clamp(120px, 15vh, 160px) auto 22px !important;
    }
}
/* =========================
   RTL polish (Arabic)
   ========================= */
.hero.ai-hero.ai-hero-rtl {
  /* Keep the RTL block aligned to the same centered container as #jc-stage below. */
  align-items: center;
  text-align: right;
}

.hero.ai-hero.ai-hero-rtl .ai-hero__inner {
  /* Match the stage width so right edges align. */
  width: min(1180px, 92vw);
  margin: 0 auto;
  text-align: right;
}

.hero.ai-hero.ai-hero-rtl .ai-headline {
  /* Make the Arabic headline occupy more space (less empty feel). */
  --fill: 104svh;
  --lh: 0.78;
  --lines: 2;
  letter-spacing: 0;
  direction: rtl;
  text-align: right;
}

@media (max-width: 768px) {
  .hero.ai-hero.ai-hero-rtl .ai-headline {
    --fill: 66svh;
  }
}

@media (max-width: 480px) {
  .hero.ai-hero.ai-hero-rtl .ai-headline {
    font-size: 22vw;
  }
}

.hero.ai-hero.ai-hero-rtl .ai-sub {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  max-width: min(1100px, 92vw);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

html[dir='rtl'] .doc-body h2::before {
  left: auto;
  right: -12px;
}

html[dir='rtl'] .doc-body ul,
html[dir='rtl'] .doc-body ol {
  padding-left: 0;
  padding-right: 1.2rem;
}

html[dir='rtl'] .doc-body {
  text-align: start;
}
