/* Zoply homepage v3 — "Néon Nuit" palette, motion and mobile first. Loaded on the index page only, scoped to .z */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/zoply/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/zoply/dm-sans-latin.woff2') format('woff2');
}

body.zp-home { background: #0C0E19; }

.z { background: #0C0E19; color: #EEF0FF; font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; overflow: clip; position: relative; }
.z *, .z *::before, .z *::after { box-sizing: border-box; }
.z a { color: #A894FF; text-decoration: none; }
.z a:hover { color: #C9BCFF; text-decoration: none; }
.z h1, .z h2, .z h3, .z p { margin: 0; }
.z img { max-width: none; }
.z :focus-visible { outline: 3px solid #A894FF; outline-offset: 3px; }
.z input::placeholder { color: #6B7399; }
.z input:focus { outline: none; }
.z-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.z-display { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.04em; }
.z-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.z-head { position: sticky; top: 0; z-index: 50; background: rgba(12, 14, 25, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(43, 50, 82, .6); }
.z-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.z .z-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #EEF0FF; font-size: 26px; }
.z-brand img { max-height: 36px; width: auto; }
.z-mark { width: 34px; height: 34px; border-radius: 11px; background: #6E4CFF; display: flex; align-items: center; justify-content: center; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.z-brand:hover .z-mark { transform: rotate(-12deg) scale(1.08); }
.z-nav { display: flex; gap: 30px; font-size: 15px; }
.z .z-nav a { color: #A1A9CC; position: relative; padding: 12px 0; }
.z-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: #A894FF; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.z .z-nav a:hover { color: #EEF0FF; }
.z-nav a:hover::after { transform: scaleX(1); }
.z-actions { display: flex; align-items: center; gap: 10px; }
.z .z-login { color: #EEF0FF; font-size: 15px; padding: 12px 10px; }
.z .z-pill-btn { background: #EEF0FF; color: #0C0E19; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease; white-space: nowrap; }
.z .z-pill-btn:hover { color: #0C0E19; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(238, 240, 255, .18); }
.z-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2B3252; background: #151A2C; color: #EEF0FF; align-items: center; justify-content: center; cursor: pointer; }
.z-menu { border-top: 1px solid #2B3252; padding: 8px 20px 20px; flex-direction: column; display: none; }
.z-menu.is-open { display: flex; animation: zDrop .3s ease both; }
.z .z-menu a { color: #EEF0FF; font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid #1E2439; }
.z .z-menu .z-btn { margin-top: 16px; border-bottom: 0; }

/* Hero */
.z-orb { position: absolute; width: 720px; height: 720px; border-radius: 999px; background: radial-gradient(circle, rgba(110, 76, 255, .35) 0%, rgba(110, 76, 255, 0) 68%); top: -120px; right: -160px; pointer-events: none; animation: zDrift 18s ease-in-out infinite alternate; }
.z-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.z-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.z-h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; color: #EEF0FF; }
.z-rot { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: top; color: #A894FF; }
.z-rot-track { display: flex; flex-direction: column; animation: zRotate 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.z-rot-track span { display: block; height: 1.12em; line-height: 1.12; }
.z-rot-track span::after { content: ','; }
.z-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #A1A9CC; max-width: 520px; }
.z-claim { display: flex; flex-wrap: wrap; gap: 8px; background: #151A2C; border: 1px solid #2B3252; border-radius: 22px; padding: 8px; max-width: 560px; margin: 0; transition: border-color .25s ease, box-shadow .25s ease; }
.z-claim:focus-within { border-color: #A894FF; box-shadow: 0 0 0 6px rgba(110, 76, 255, .18); }
.z-claim-field { flex: 1 1 240px; display: flex; align-items: center; padding: 0 16px; min-height: 58px; font-size: 18px; cursor: text; min-width: 0; margin: 0; }
.z-claim-field span { color: #A1A9CC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.z-claim-field input { flex: 1; min-width: 0; background: transparent; border: 0; color: #EEF0FF; font: inherit; font-weight: 700; padding: 0; }
.z-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 26px; border: 0; border-radius: 16px; background: #6E4CFF; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; position: relative; overflow: hidden; }
.z .z-btn, .z .z-btn:hover { color: #FFFFFF; }
.z-btn:hover { background: #5E3DF0; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(110, 76, 255, .45); }
.z-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); animation: zShine 4.5s ease-in-out infinite; }
.z-note { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #A1A9CC; }
.z-dot { width: 8px; height: 8px; border-radius: 999px; background: #3DDC97; animation: zPing 2.2s ease-out infinite; flex: 0 0 auto; }

/* Collage, scales with its own width */
.z-stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 560 / 640; container-type: inline-size; }
.z-ph { position: absolute; overflow: hidden; border: 6px solid #151A2C; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.z-ph img { display: block; }
.z-ph-l { left: 0; top: 11%; width: 42%; aspect-ratio: 236 / 480; border-radius: 7cqw; animation: zFloatL 7s ease-in-out infinite; }
.z-ph-r { right: 0; top: 14%; width: 42%; aspect-ratio: 236 / 480; border-radius: 7cqw; background: #F4EFE6; color: #1D1A16; animation: zFloatR 8s ease-in-out infinite; }
.z-ph-c { left: 23%; top: 0; width: 54%; aspect-ratio: 300 / 600; border-radius: 8cqw; background: #1E2439; border-width: 8px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); animation: zFloatC 6s ease-in-out infinite; z-index: 2; }
.z-t-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: max(11px, 3.2cqw); }
.z-t-sm { font-size: max(9px, 2.2cqw); }
.z-t-btn { border-radius: 2.4cqw; padding: 2cqw; text-align: center; font-weight: 700; font-size: max(9px, 2.3cqw); }
.z-chip { position: absolute; z-index: 3; border-radius: 999px; font-weight: 700; box-shadow: 0 16px 30px rgba(0, 0, 0, .4); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.z-chip-link { left: 2%; bottom: 6%; background: #EEF0FF; color: #0C0E19; padding: 2.2cqw 3.4cqw; font-size: max(12px, 2.8cqw); animation: zPop .6s 1.1s cubic-bezier(.2, 1.4, .4, 1) both, zBob 5s 1.8s ease-in-out infinite; }
.z-chip-sub { right: 0; top: 2%; background: #123B2C; color: #5BEAAA; border: 1px solid #1F5A43; border-radius: 16px; padding: 2.2cqw 3cqw; font-size: max(11px, 2.5cqw); font-weight: 500; animation: zPop .6s 1.5s cubic-bezier(.2, 1.4, .4, 1) both, zBob 6s 2.2s ease-in-out infinite; }

/* Sections */
.z-sec { padding-top: 72px; padding-bottom: 72px; }
.z-h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; color: #EEF0FF; }
.z-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.z-tag { font-size: 14px; color: #A1A9CC; border: 1px solid #2B3252; border-radius: 999px; padding: 8px 14px; }

/* Examples marquee */
.z-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.z-track { display: flex; gap: 16px; width: max-content; animation: zMarquee 42s linear infinite; }
.z-marquee:hover .z-track { animation-play-state: paused; }
.z-card { position: relative; flex: 0 0 auto; width: clamp(170px, 20vw, 240px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #151A2C; }
.z-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.z-card:hover img { transform: scale(1.07); }
.z-card-label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(12, 14, 25, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 12px; }
.z-card-label b { display: block; font-size: 14px; }
.z-card-label span { font-size: 12px; color: #A894FF; }

/* Feature rows */
.z-rows { display: flex; flex-direction: column; gap: 96px; padding-top: 24px; padding-bottom: 96px; }
.z-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.z-row-rev .z-media { order: 2; }
.z-media { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 6 / 5; min-width: 0; background: #151A2C; }
.z-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.z-media:hover > img { transform: scale(1.05); }
.z-float { position: absolute; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); border-radius: 22px; padding: 18px; animation: zBob 6s ease-in-out infinite; }
.z-kicker { font-size: 14px; font-weight: 700; color: #A894FF; letter-spacing: .08em; text-transform: uppercase; }
.z-row-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.z-row-text p { color: #A1A9CC; font-size: 18px; line-height: 1.6; }
.z-swatch { width: 40px; height: 40px; border-radius: 12px; transition: transform .3s ease; }
.z-swatches:hover .z-swatch { transform: translateY(-4px); }
.z-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.z-bars span { flex: 1; background: #35306A; border-radius: 6px; transform-origin: bottom; animation: zGrow 1.4s cubic-bezier(.2, .8, .2, 1) both; }

/* Light band */
.z-light { background: #EEF0FF; color: #0C0E19; border-radius: 48px 48px 0 0; }
.z-light .z-h2 { color: #0C0E19; }
.z-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.z-step { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid #0C0E19; padding-top: 20px; }
.z-step b { font-family: 'Space Grotesk', sans-serif; font-size: 64px; line-height: 1; color: #6E4CFF; }
.z-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; color: #0C0E19; }
.z-step p { color: #3A3F5C; line-height: 1.6; }

/* Pricing */
.z-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.z-plan { background: #151A2C; border: 1px solid #2B3252; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; transition: transform .3s ease, border-color .3s ease; }
.z-plan:hover { transform: translateY(-6px); border-color: #4A5280; }
.z-plan-pro { background: #1B1640; border: 2px solid #6E4CFF; }
.z-plan-pro:hover { border-color: #A894FF; }
.z-plan h3 { font-size: 22px; letter-spacing: -.02em; color: #EEF0FF; }
.z-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.z-plan-tag { background: #123B2C; color: #5BEAAA; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.z-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; }
.z-price small { font-size: 16px; color: #A1A9CC; font-weight: 500; }
.z-plan-desc { color: #A1A9CC; }
.z .z-plan-cta { margin-top: auto; text-align: center; border: 1px solid #2B3252; color: #EEF0FF; font-weight: 700; padding: 16px; border-radius: 14px; transition: background .25s ease; }
.z .z-plan-cta:hover { background: #1E2439; color: #EEF0FF; }
.z-plan .z-btn { margin-top: auto; }
.z-plans-more { text-align: center; margin-top: 28px; }

/* Final call to action */
.z-cta { background: #6E4CFF; border-radius: 40px; padding: clamp(32px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; position: relative; overflow: hidden; }
.z-cta::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 999px; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%); right: -140px; top: -200px; animation: zDrift 14s ease-in-out infinite alternate; pointer-events: none; }
.z-cta h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: .98; color: #FFFFFF; }
.z-avatars { display: flex; }
.z-avatars img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 3px solid #6E4CFF; margin-left: -14px; transition: transform .3s ease; }
.z-avatars img:first-child { margin-left: 0; }
.z-avatars:hover img { transform: translateY(-6px); }
.z .z-cta-btn { position: relative; background: #0C0E19; color: #FFFFFF; font-weight: 700; font-size: 18px; padding: 20px 32px; border-radius: 999px; transition: transform .25s ease; overflow-wrap: anywhere; }
.z .z-cta-btn:hover { color: #FFFFFF; transform: scale(1.04); }
.z-cta-btn::before { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(12, 14, 25, .5); animation: zRing 2.4s ease-out infinite; }

/* Footer and mobile sticky bar */
.z-foot { border-top: 1px solid #2B3252; }
.z-foot-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: #A1A9CC; }
.z-foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.z .z-foot nav a { color: #A1A9CC; padding: 12px 0; }
.z .z-foot nav a:hover { color: #EEF0FF; }
.z-langs { gap: 8px !important; }
.z .z-langs a { border: 1px solid #2B3252; border-radius: 999px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.z .z-langs a[aria-current] { border-color: #A894FF; color: #EEF0FF; }
.z-sticky { display: none; }
.z-alerts:empty { display: none; }
.z-alerts { padding-top: 16px; }

/* Entrance */
.z-rise { animation: zRise .9s cubic-bezier(.2, .7, .2, 1) both; }

/* Scroll reveal where the browser supports it, plain content elsewhere */
@supports (animation-timeline: view()) {
    .z-reveal { animation: zReveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .z-parallax { animation: zParallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .z-sticky { animation: zShowBar linear both; animation-timeline: scroll(); animation-range: 0 420px; }
}

@keyframes zRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes zReveal { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes zParallax { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
/* 5 rotating words + the first one repeated */
@keyframes zRotate { 0%, 16% { transform: translateY(0); } 20%, 36% { transform: translateY(-1.12em); } 40%, 56% { transform: translateY(-2.24em); } 60%, 76% { transform: translateY(-3.36em); } 80%, 96% { transform: translateY(-4.48em); } 100% { transform: translateY(-5.6em); } }
@keyframes zFloatL { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-14px); } }
@keyframes zFloatR { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-16px); } }
@keyframes zFloatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes zBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes zPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes zDrift { from { transform: translate(0, 0); } to { transform: translate(-80px, 60px); } }
@keyframes zMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes zShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes zPing { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }
@keyframes zRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes zGrow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes zDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes zShowBar { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 980px) {
    .z-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
    .z-row, .z-row-rev { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .z-row-rev .z-media { order: 0; }
    .z-steps { grid-template-columns: 1fr; gap: 28px; }
}

/* Phone */
@media (max-width: 760px) {
    .z-wrap { padding: 0 18px; }
    .z-nav, .z .z-login, .z-head .z-pill-btn { display: none; }
    .z-burger { display: inline-flex; }
    .z-head-in { min-height: 64px; }
    .z-hero { padding-top: 28px; padding-bottom: 24px; gap: 32px; }
    .z-copy { gap: 20px; }
    .z-claim { border-radius: 20px; }
    .z-claim-field { flex-basis: 100%; min-height: 54px; font-size: 17px; padding: 0 12px; }
    .z-claim .z-btn { flex: 1 1 100%; }
    .z-sec { padding-top: 56px; padding-bottom: 56px; }
    .z-rows { gap: 64px; padding-bottom: 64px; }
    .z-media { aspect-ratio: 4 / 5; border-radius: 24px; }
    .z-float { padding: 14px; border-radius: 18px; max-width: 82%; }
    .z-row-text p { font-size: 17px; }
    .z-light { border-radius: 32px 32px 0 0; }
    .z-step b { font-size: 48px; }
    .z-h2 br { display: none; }
    .z-plan { padding: 26px; }
    .z-cta { border-radius: 28px; }
    .z .z-cta-btn { width: 100%; text-align: center; }
    .z-foot-in { padding-bottom: 110px; }
    .z-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; background: rgba(21, 26, 44, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #2B3252; border-radius: 20px; padding: 10px 10px 10px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
    .z-sticky .z-btn { min-height: 48px; padding: 0 18px; font-size: 15px; border-radius: 14px; }
    .z-sticky-text { font-size: 14px; color: #A1A9CC; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (hover: none) {
    .z-card:hover img, .z-media:hover > img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .z *, .z *::before, .z *::after { animation: none !important; transition: none !important; }
}
