/* ============================================================================
   Reelty — design system
   ========================================================================== */
:root {
    --bg: #f5f6fb;
    --bg-2: #eceef6;
    --surface: #ffffff;
    --surface-2: #f1f2f9;
    --line: rgba(18, 18, 45, .09);
    --line-2: rgba(18, 18, 45, .15);
    --text: #15151f;
    --muted: #565671;
    --muted-2: #87889f;
    --brand: #6d5efc;
    --brand-2: #8b3df0;
    --accent: #ff4d9d;
    --grad: linear-gradient(120deg, #6d5efc 0%, #b15cff 55%, #ff5ca8 100%);
    --grad-soft: linear-gradient(120deg, rgba(109,94,252,.12), rgba(177,92,255,.08));
    /* Semantic helpers for the light theme */
    --soft: rgba(18, 18, 45, .05);
    --soft-2: rgba(18, 18, 45, .09);
    --glass: rgba(255, 255, 255, .82);
    --on-accent: #ffffff;   /* text over gradient/brand fills */
    --on-media: #ffffff;    /* text/chips over video & dark media */
    --media-bg: #0e0e16;    /* letterbox behind video */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 26px 50px -28px rgba(40, 28, 90, .26);
    --shadow-glow: 0 18px 44px -18px rgba(109, 94, 252, .4);
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display: "Sora", var(--font);
}

/* The immersive reels feed stays dark (video-first), even in the light theme. */
body.is-feed {
    --bg: #000;
    --text: #f4f4fb;
    --muted: #a3a3b8;
    background: #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(1100px 640px at 82% -12%, rgba(109,94,252,.12), transparent 60%),
                radial-gradient(820px 540px at -6% 4%, rgba(255,92,168,.08), transparent 55%),
                var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-family: var(--display); letter-spacing: -.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(139, 61, 240, .22); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-2);
    margin-bottom: 10px;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed; inset: 0 auto auto 0;
    height: 3px; width: 0%;
    background: var(--grad);
    z-index: 200;
    transition: width .1s linear;
}

/* ── Buttons / pills / chips ─────────────────────────────────────────────── */
.btn {
    --pad: 12px 22px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: var(--pad);
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
    white-space: nowrap;
}
.btn--sm { --pad: 9px 16px; font-size: .85rem; }
.btn--primary { background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(177,92,255,.5); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--soft); transform: translateY(-2px); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
    background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--text);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #43e6a0; box-shadow: 0 0 0 4px rgba(67,230,160,.18); }
.pill--feat { background: rgba(255,196,77,.14); border-color: rgba(255,196,77,.4); color: #ffcc66; }

.chip {
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-2);
    font-size: .85rem; font-weight: 600; color: var(--muted);
    transition: .2s var(--ease);
}
.chip:hover { color: var(--brand-2); border-color: var(--brand-2); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.is-stuck {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px -22px rgba(40,28,90,.4);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-glow);
}
.brand__name { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: auto; display: flex; gap: 12px; }
.nav__burger { margin-left: auto; display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 0 24px 16px; }
.nav__mobile a { padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--muted); }
.nav__mobile a:hover { background: var(--soft); color: var(--text); }
.nav.is-open .nav__mobile { display: flex; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { min-height: 60vh; }
.main--bare { min-height: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .42; pointer-events: none; }
.hero__glow--1 { width: 520px; height: 520px; background: rgba(109,94,252,.42); top: -160px; right: -80px; animation: float1 14s ease-in-out infinite; }
.hero__glow--2 { width: 440px; height: 440px; background: rgba(255,92,168,.32); bottom: -180px; left: -120px; animation: float2 16s ease-in-out infinite; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.1rem); font-weight: 800; margin: 18px 0; }
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.hero__search { display: flex; gap: 10px; margin: 28px 0 16px; max-width: 480px; }
.hero__search-field {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 0 16px; height: 52px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
    transition: border-color .2s, box-shadow .2s;
}
.hero__search-field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(177,92,255,.16); }
.hero__search-field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 1rem; }
.hero__search .btn { height: 52px; }
.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted-2); font-size: .85rem; }
.hero__stats { display: flex; gap: 36px; margin-top: 34px; }
.stat__n { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; }
.stat__l { color: var(--muted-2); font-size: .85rem; }

/* phone mockup */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone {
    position: relative; width: 270px; height: 540px;
    border-radius: 42px; padding: 10px;
    background: linear-gradient(160deg, #23233a, #0e0e16);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow), 0 0 80px -20px rgba(109,94,252,.6);
    animation: phoneFloat 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 999px; background: #05050a; z-index: 4; }
.phone__feed { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #05050a; }
.phone__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.phone__slide.is-active { opacity: 1; }
.phone__video, .phone__ph { width: 100%; height: 100%; object-fit: cover; }
.phone__ph { display: grid; place-items: center; background: var(--grad); font-family: var(--display); font-size: 3rem; color: #fff; }
.phone__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent 45%); }
.phone__cap { position: absolute; left: 16px; right: 60px; bottom: 22px; display: grid; gap: 2px; }
.phone__cap strong { font-family: var(--display); font-size: 1.3rem; }
.phone__cap span { font-size: .9rem; font-weight: 600; }
.phone__cap small { color: var(--muted); font-size: .78rem; }
.phone__rail { position: absolute; right: 14px; bottom: 70px; display: grid; gap: 18px; font-size: 1.3rem; z-index: 3; }
.phone__rail span { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 16px;
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.float-card strong { display: block; font-size: .9rem; font-family: var(--font); }
.float-card small { color: var(--muted); font-size: .76rem; }
.float-card__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); font-size: 1.1rem; }
.float-card--a { top: 70px; left: -10px; animation: floatY 5s ease-in-out infinite; }
.float-card--b { bottom: 80px; right: -16px; animation: floatY 6s ease-in-out infinite .8s; }

.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--brand-2); animation: scrollDot 1.6s infinite; }

/* ── Band / features ─────────────────────────────────────────────────────── */
.band { padding: 24px 0 10px; }
.band__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    padding: 26px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); }
.feature__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); font-size: 1.5rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }
.feature--row { display: flex; gap: 16px; align-items: flex-start; }
.feature--row .feature__ico { margin-bottom: 0; flex-shrink: 0; }

/* ── Sections / grids / cards ────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--media-bg); }
.card__video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__video { transform: scale(1.05); }
.card__media-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); }
.card__media-fallback span { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--on-accent); }
.card__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 5px 11px; border-radius: 999px; font-size: .73rem; font-weight: 700;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--text);
    border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 12px -6px rgba(0,0,0,.4);
}
.card__badge--feat { left: auto; right: 12px; background: #fff3d6; border-color: #ffe1a3; color: #a9750e; }
.card__price {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    padding: 7px 13px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 1.02rem;
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--text);
    border: 1px solid rgba(255,255,255,.6); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
}
.card__play {
    position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--brand);
    opacity: 0; transform: scale(.8); transition: .3s var(--ease); z-index: 2; box-shadow: var(--shadow);
}
.card:hover .card__play { opacity: 1; transform: scale(1); }
.card__body { padding: 16px; }
.card__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; transition: color .2s; }
.card__title:hover { color: var(--brand-2); }
.card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.card__loc svg { color: var(--brand-2); flex-shrink: 0; }
.card__specs { color: var(--muted-2); font-size: .82rem; margin-top: 8px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__agent { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.card__agent img, .card__agent-dot { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.card__agent-dot { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; }
.card__stats { display: flex; gap: 12px; color: var(--muted-2); font-size: .8rem; }

/* type grid */
.typegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.typecard {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    font-family: var(--display); font-weight: 700; font-size: 1.05rem;
    transition: .3s var(--ease);
}
.typecard:hover { background: var(--grad-soft); border-color: var(--brand-2); transform: translateY(-4px); }
.typecard__arrow { color: var(--brand-2); transition: transform .3s var(--ease); }
.typecard:hover .typecard__arrow { transform: translateX(5px); }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta { padding: 40px 0 90px; }
.cta__inner {
    position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
    padding: 50px; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(120deg, rgba(109,94,252,.22), rgba(255,92,168,.16));
    border: 1px solid var(--line-2);
}
.cta__copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.cta__copy p { color: var(--muted); max-width: 32em; margin-bottom: 24px; }
.cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px; border-radius: 14px;
    background: #15151f; border: 1px solid transparent; color: #fff;
    transition: .25s var(--ease); box-shadow: var(--shadow);
}
.store-btn:hover { transform: translateY(-3px); background: #20202c; }
.store-btn__k { font-size: 1.5rem; }
.store-btn small { display: block; font-size: .68rem; color: rgba(255,255,255,.62); }
.store-btn strong { display: block; font-size: 1.05rem; font-family: var(--display); color: #fff; }
.cta__art { position: relative; display: grid; place-items: center; min-height: 200px; }
.cta__emoji { font-size: 5rem; z-index: 2; animation: floatY 5s ease-in-out infinite; }
.cta__ring { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(139,61,240,.25); animation: pulse 4s ease-in-out infinite; }
.cta__ring--2 { width: 260px; height: 260px; animation-delay: 1s; opacity: .5; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 26em; font-size: .92rem; }
.footer__col h4 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .85rem; }

/* ── Explore ─────────────────────────────────────────────────────────────── */
.explore__head { padding: 46px 0 30px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.explore__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.explore__sub { color: var(--muted); margin-top: 8px; }
.filters { margin-top: 26px; display: grid; gap: 12px; }
.filters__row { display: flex; gap: 12px; align-items: center; }
.filters__row--wrap { flex-wrap: wrap; }
.field {
    display: flex; align-items: center; gap: 9px;
    height: 46px; padding: 0 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
    transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(177,92,255,.15); }
.field input, .field select { background: none; border: none; outline: none; color: var(--text); font-size: .92rem; font-family: inherit; }
.field input::placeholder { color: var(--muted-2); }
.field--grow { flex: 1; min-width: 180px; }
.field--grow input { width: 100%; }
.field--num { width: 120px; }
.field--num input { width: 100%; }
.field--select select { cursor: pointer; min-width: 130px; }
.field--select option { background: var(--surface); color: var(--text); }
.filters .btn { height: 46px; }
.explore__body { padding: 34px 0 80px; }

.loadmore { display: grid; place-items: center; margin-top: 40px; gap: 14px; }
.loadmore__spin, .slide__loader { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand-2); animation: spin .8s linear infinite; }

/* ── Empty states ────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto; }
.empty__art { font-size: 3.4rem; margin-bottom: 16px; }
.empty h3 { font-size: 1.4rem; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 22px; }
.empty--dark h3, .empty--dark p { color: #fff; }

/* ── Full-screen feed ────────────────────────────────────────────────────── */
.is-feed { background: #000; overflow: hidden; }
.feed { position: fixed; inset: 0; background: #000; }
.feed__track {
    height: 100dvh; overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.feed__track::-webkit-scrollbar { display: none; }
.feed__back, .feed__brand { position: fixed; top: 18px; z-index: 30; }
.feed__back { left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: #fff; }
.feed__back:hover { background: rgba(0,0,0,.65); }
.feed__brand { left: 74px; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.feed__brand .brand__name { font-size: 1.15rem; }
.feed__brand small { color: var(--muted); }

.slide { position: relative; height: 100dvh; scroll-snap-align: start; display: grid; place-items: center; }
.slide--empty { background: var(--bg); }
.slide__stage {
    position: relative; height: 100%; width: 100%;
    max-width: 480px; margin: 0 auto;
    display: grid; place-items: center; background: #05050a; overflow: hidden;
}
@media (min-width: 600px) { .slide__stage { border-radius: 0; } }
.slide__video { width: 100%; height: 100%; object-fit: cover; }
.slide__fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); }
.slide__fallback span { font-family: var(--display); font-size: 4rem; font-weight: 800; color: #fff; }
.slide__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 4%, transparent 38%), linear-gradient(to right, rgba(0,0,0,.4), transparent 30%); pointer-events: none; }
.slide__mute { position: absolute; top: 16px; right: 16px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: #fff; }
.slide__mute .ic-sound { display: none; }
.slide.is-unmuted .slide__mute .ic-sound { display: block; }
.slide.is-unmuted .slide__mute .ic-muted { display: none; }
.slide__loader { position: absolute; z-index: 5; opacity: 0; transition: opacity .2s; }
.slide.is-loading .slide__loader { opacity: 1; }

.slide__rail { position: absolute; right: 14px; bottom: 120px; z-index: 6; display: grid; gap: 22px; }
.rail__btn { display: grid; justify-items: center; gap: 5px; color: #fff; }
.rail__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.32); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); transition: transform .25s var(--ease), background .25s; }
.rail__btn:hover .rail__ico { background: rgba(0,0,0,.55); transform: scale(1.08); }
.rail__btn:active .rail__ico { transform: scale(.92); }
.rail__n { font-size: .76rem; font-weight: 700; }
.slide[data-liked="1"] { --like-fill: #ff5ca8; }
.slide[data-liked="1"] .rail__btn[data-action="like"] { color: #ff5ca8; }
.slide[data-saved="1"] { --save-fill: #ffcc66; }
.slide[data-saved="1"] .rail__btn[data-action="save"] { color: #ffcc66; }
.rail__btn.pop .rail__ico { animation: pop .4s var(--ease); }

.slide__info { position: absolute; left: 0; right: 86px; bottom: 34px; z-index: 6; padding: 0 18px; color: #fff; }
.slide__agent { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
.slide__agent img, .slide__agent-dot { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.slide__agent-dot { display: grid; place-items: center; background: var(--grad); font-size: .85rem; font-weight: 700; }
.slide__badge { padding: 3px 10px; border-radius: 999px; font-size: .72rem; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.slide__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.slide__loc { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 14px; }
.slide__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.slide__price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.slide__specs { color: rgba(255,255,255,.8); font-size: .88rem; }
.slide__cta { width: fit-content; }

.feed__hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; display: grid; justify-items: center; color: rgba(255,255,255,.7); font-size: .8rem; pointer-events: none; transition: opacity .4s; }
.feed__hint svg { animation: bob 1.6s ease-in-out infinite; }
.feed__hint.is-hidden { opacity: 0; }

/* ── Detail ──────────────────────────────────────────────────────────────── */
.detail { padding-bottom: 70px; }
.detail__top { padding: 26px 0 6px; }
.back-link { color: var(--muted); font-weight: 600; font-size: .9rem; transition: color .2s; }
.back-link:hover { color: var(--text); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: start; padding-top: 14px; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #05050a; aspect-ratio: 9 / 16; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player__video { width: 100%; height: 100%; object-fit: cover; }
.player__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); }
.player__ph span { font-family: var(--display); font-size: 4rem; font-weight: 800; color: #fff; }
.player__badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--text); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.player__actions { display: flex; gap: 10px; margin-top: 14px; }
.act { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: .88rem; transition: .2s var(--ease); }
.act:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.act[aria-pressed="true"][data-action="like"] { color: var(--accent); border-color: rgba(255,92,168,.5); }
.act[aria-pressed="true"][data-action="like"] svg { fill: var(--accent); }
.act[aria-pressed="true"][data-action="save"] { color: #ffcc66; border-color: rgba(255,196,77,.5); }
.act[aria-pressed="true"][data-action="save"] svg { fill: #ffcc66; }
.act.pop { animation: pop .4s var(--ease); }

.detail__pricerow { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.detail__price { font-family: var(--display); font-size: 2.1rem; font-weight: 800; }
.detail__title { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.detail__loc { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-bottom: 22px; }
.detail__loc svg { color: var(--brand-2); }
.specbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.specbar__item { flex: 1; min-width: 90px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.specbar__n { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.specbar__n--text { font-size: 1rem; }
.specbar__l { color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.agentcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.agentcard img, .agentcard__dot { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.agentcard__dot { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.agentcard__meta { flex: 1; }
.agentcard__meta strong { display: block; }
.agentcard__meta small { color: var(--muted); font-size: .82rem; }
.detail__block { margin-bottom: 24px; }
.detail__block h3 { font-size: 1.1rem; margin-bottom: 12px; }
.detail__desc { color: var(--muted); white-space: pre-line; }
.amenities { display: flex; flex-wrap: wrap; gap: 9px; }
.amenity { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.detail__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Download page ───────────────────────────────────────────────────────── */
.download { position: relative; padding: 70px 0 90px; overflow: hidden; }
.download__glow { position: absolute; top: -120px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: rgba(109,94,252,.35); filter: blur(110px); }
.download__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.download__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: 18px 0; }
.download__sub { color: var(--muted); font-size: 1.05rem; max-width: 32em; margin-bottom: 28px; }
.download__ver { color: var(--muted-2); font-size: .82rem; margin-top: 16px; }
.download__features { display: grid; gap: 14px; }

/* ── Article (privacy / error) ───────────────────────────────────────────── */
.article { padding: 60px 0 90px; }
.article__inner { max-width: 760px; }
.article__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.article__meta { color: var(--muted-2); margin-bottom: 30px; }
.article__body p { color: var(--muted); margin-bottom: 16px; }

/* ── Reveal animations ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; scroll-behavior: auto; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; min-height: 440px; }
    .band__inner { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .typegrid { grid-template-columns: repeat(2, 1fr); }
    .cta__inner { grid-template-columns: 1fr; padding: 34px; }
    .cta__art { display: none; }
    .detail__grid { grid-template-columns: 1fr; }
    .detail__player { max-width: 420px; margin: 0 auto; }
    .download__inner { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hero__stats { gap: 22px; }
    .hero__search { flex-direction: column; }
    .hero__search .btn { width: 100%; justify-content: center; }
    .section { padding: 50px 0; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__base { flex-direction: column; }
    .card__body { padding: 13px; }
}

.sub-confirm[hidden] { display: none; }
.sub-confirm { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.58); }
.sub-confirm__panel { width: min(520px, 100%); padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(15,23,42,.28); }
.sub-confirm__panel h3 { margin: 0 0 12px; font-size: 1.2rem; }
.sub-confirm__copy { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.sub-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
