/* ==========================================================================
   Neo Technologies — site styles
   Light + dark (prefers-color-scheme), mobile-first friendly, no frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --brand: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #ec4899;
    --brand-ink: #4f46e5;
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #ec4899 100%);
    --grad-text: linear-gradient(92deg, #a5b4fc 0%, #c4b5fd 38%, #f9a8d4 100%);

    --bg: #ffffff;
    --bg-soft: #f5f6fb;
    --surface: #ffffff;
    --surface-2: #f2f3f9;
    --ink: #0b1026;
    --ink-2: #3b4262;
    --muted: #6b7290;
    --line: #e6e8f1;
    --line-2: #d8dbea;

    --night: #070b1f;
    --night-2: #0d1331;
    --night-ink: #eef0ff;
    --night-muted: rgba(226, 230, 255, .66);
    --night-line: rgba(255, 255, 255, .10);

    --star: #f59e0b;
    --ok: #10b981;
    --soon-bg: rgba(245, 158, 11, .14);
    --soon-ink: #b45309;
    --danger: #ef4444;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 32px;

    --sh-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
    --sh-2: 0 18px 40px -18px rgba(30, 27, 75, .28);
    --sh-3: 0 40px 80px -30px rgba(49, 46, 129, .45);
    --ring: 0 0 0 4px rgba(99, 102, 241, .2);

    --nav-h: 72px;
    --container: 1200px;
    --gutter: 20px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand-ink: #a5b4fc;
        --bg: #090d22;
        --bg-soft: #0b1029;
        --surface: #10163a;
        --surface-2: #161d47;
        --ink: #eef0ff;
        --ink-2: #c6cae6;
        --muted: #9097ba;
        --line: #1f2750;
        --line-2: #2a3363;
        --soon-bg: rgba(251, 191, 36, .14);
        --soon-ink: #fbbf24;
        --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
        --sh-2: 0 18px 40px -18px rgba(0, 0, 0, .7);
        --ring: 0 0 0 4px rgba(129, 140, 248, .3);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 800;
}

::selection { background: rgba(139, 92, 246, .28); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: 999px;
    background: var(--ink); color: var(--bg); font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Icons */
.i {
    width: 20px; height: 20px; flex: 0 0 auto;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.i-xs { width: 15px; height: 15px; }
.i-star { color: var(--star); width: 16px; height: 16px; }
.i-up { transform: rotate(-90deg); }

.nowrap { white-space: nowrap; }

.text-grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    --h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--h); padding: 0 20px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 18px; height: 18px; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: .86rem; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    color: #fff;
    background: var(--grad);
    background-size: 140% 140%;
    background-position: 0% 50%;
    box-shadow: 0 12px 28px -12px rgba(139, 92, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { transform: translateY(-1px); background-position: 100% 50%; box-shadow: 0 16px 34px -12px rgba(236, 72, 153, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); }

.btn-glass { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .28); }

.btn-dark { color: #fff; background: #0b1026; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
@media (prefers-color-scheme: dark) { .btn-dark { background: #fff; color: #0b1026; } }

.btn-light { color: #1e1b4b; background: #fff; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }

.btn-soft, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-soft { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

.link-btn { color: inherit; padding: 0; font-size: inherit; text-align: left; }
.link-btn:hover { color: #fff; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    height: var(--nav-h);
    display: flex; align-items: center;
    color: #fff;
    background: rgba(7, 11, 31, .45);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    transition: background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(7, 11, 31, .93); border-bottom-color: var(--night-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(139, 92, 246, .45)); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    color: rgba(255, 255, 255, .74); font-weight: 500; font-size: .94rem;
    transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links .i { opacity: .7; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 12px;
    color: #fff; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
    align-items: center; justify-content: center;
}

.mobile-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: grid; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: rgba(7, 11, 31, .97);
    border-bottom: 1px solid var(--night-line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    animation: menu-in .22s ease;
}
.mobile-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 12px; border-radius: 12px;
    color: rgba(255, 255, 255, .86); font-weight: 600;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, .06); }
.mobile-menu .i { color: #a5b4fc; }
.mobile-menu .btn { margin-top: 8px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--night); color: var(--night-ink);
    padding: calc(var(--nav-h) + 72px) 0 104px;
}
.hero-aurora, .premium-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-aurora::before {
    content: ""; position: absolute; inset: -10%;
    background:
        radial-gradient(38% 46% at 12% 18%, rgba(99, 102, 241, .55), transparent 70%),
        radial-gradient(34% 40% at 88% 12%, rgba(236, 72, 153, .32), transparent 70%),
        radial-gradient(42% 52% at 72% 88%, rgba(139, 92, 246, .45), transparent 70%),
        radial-gradient(28% 36% at 26% 92%, rgba(34, 211, 238, .2), transparent 70%);
    filter: blur(10px);
    animation: aurora 18s ease-in-out infinite alternate;
}
.hero-aurora::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(2%, -2%, 0) scale(1.05); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 10px; border-radius: 999px;
    font-size: .86rem; color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    transition: background-color .2s, border-color .2s;
}
.pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.pill b { color: #fff; font-weight: 600; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

.hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    line-height: 1.02; letter-spacing: -.04em;
    color: #fff;
}
.hero-lead { max-width: 36rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--night-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 44px;
    margin-top: 48px; padding-top: 28px;
    border-top: 1px solid var(--night-line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.hero-stats dd .i-star { width: 22px; height: 22px; }
.hero-stats dt { font-size: .84rem; color: var(--night-muted); margin-top: 4px; }

/* Device mock */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.device-wrap { position: relative; }
.device {
    position: relative; width: 300px; aspect-ratio: 9 / 19.2;
    padding: 11px; border-radius: 50px;
    background: linear-gradient(150deg, #3a3f63 0%, #151935 40%, #0a0d1f 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, .12),
        inset 0 0 0 7px #05060f,
        0 60px 100px -40px rgba(0, 0, 0, .85),
        0 40px 80px -40px rgba(124, 58, 237, .65);
    transform: rotate(-3deg);
    animation: device-float 7s ease-in-out infinite;
}
@keyframes device-float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
.device-screen {
    position: relative; height: 100%; overflow: hidden;
    border-radius: 40px; padding: 14px 16px 0;
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(99, 102, 241, .95) 0%, transparent 60%),
        radial-gradient(80% 55% at 100% 100%, rgba(219, 39, 119, .85) 0%, transparent 60%),
        linear-gradient(165deg, #1e1b4b 0%, #312e81 45%, #581c87 100%);
}
.device-status { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; color: #fff; }
.device-island { width: 84px; height: 24px; border-radius: 20px; background: #05060f; }
.device-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.device-bars i { display: block; width: 3px; border-radius: 2px; background: #fff; }
.device-bars i:nth-child(1) { height: 5px; } .device-bars i:nth-child(2) { height: 8px; } .device-bars i:nth-child(3) { height: 11px; }

.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 8px; margin-top: 22px; }
.home-app { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; animation: pop-in .6s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: var(--d, 0ms); }
.home-icon { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, .12); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .55); }
.home-app span { max-width: 100%; font-size: 9.5px; font-weight: 500; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.home-dock {
    position: absolute; left: 12px; right: 12px; bottom: 14px;
    display: flex; justify-content: space-around; padding: 12px 10px;
    border-radius: 30px; background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .16);
}
.home-dock .home-icon { width: 48px; height: 48px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }

.float-card {
    position: absolute; z-index: 2; width: max-content; max-width: 280px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px; border-radius: 18px;
    background: rgba(255, 255, 255, .94); color: #0b1026;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
    animation: card-float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.2; }
.float-card span { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: #4b5375; white-space: nowrap; }
.float-card .ok { color: #047857; }
.float-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #eef0f8; }
.float-a { top: 9%; right: calc(100% - 40px); }
.float-b { bottom: 22%; left: calc(100% - 40px); animation-delay: -3s; }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin: 16px 0 14px; font-size: clamp(2rem, 3.8vw, 3.05rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-ink); background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .18);
}
.eyebrow-dark { color: #c7d2fe; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line);
}
.tag-dark { color: rgba(255, 255, 255, .88); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.tag-soon { color: #fde68a; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .3); }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--bg); }
.spot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.spot-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 28px; border-radius: var(--r-xl);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.spot-card::before {
    content: ""; position: absolute; inset: -30% -30% 40% -30%; z-index: -2;
    background-image: var(--art); background-size: cover; background-position: center;
    filter: blur(56px) saturate(1.7); opacity: .42;
    transition: opacity .4s ease, transform .6s ease;
}
.spot-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, transparent 0%, var(--surface) 62%);
}
.spot-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: rgba(139, 92, 246, .35); }
.spot-card:hover::before { opacity: .6; transform: scale(1.08); }
.spot-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.spot-icon { width: 88px; height: 88px; border-radius: 24px; object-fit: cover; background: var(--surface-2); box-shadow: 0 18px 34px -14px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05); }
.spot-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.spot-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.spot-card p { color: var(--ink-2); min-height: 3.2em; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 24px; font-size: .9rem; color: var(--muted); }
.spot-meta span { display: inline-flex; align-items: center; gap: 6px; }
.spot-meta b { color: var(--ink); }
.spot-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: auto; }
.spot-actions .btn { flex: 1; }

/* ---------- Catalog ---------- */
.catalog { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 360px; max-width: 520px; display: block; }
.search > .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; height: 54px; padding: 0 52px 0 50px;
    border-radius: 999px; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--ink);
    box-shadow: var(--sh-1); outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    min-width: 26px; height: 26px; padding: 0 8px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 .78rem var(--font-body); color: var(--muted);
    background: var(--surface-2); border: 1px solid var(--line);
}
.sort { position: relative; display: block; }
.sort select {
    height: 54px; padding: 0 46px 0 20px; min-width: 200px;
    border-radius: 999px; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: .94rem;
    box-shadow: var(--sh-1); cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
}
.sort select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.sort .i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 8px 0 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink-2); font-weight: 600; font-size: .9rem;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; background: var(--surface-2); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .count { background: rgba(255, 255, 255, .16); color: inherit; }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] .count { background: rgba(9, 13, 34, .12); } }

.result-count { margin: 4px 0 18px; font-size: .9rem; color: var(--muted); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.apps-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.app-card {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 20px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(99, 102, 241, .38); }
.app-card-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-icon {
    width: 64px; height: 64px; flex: 0 0 auto; border-radius: 17px; object-fit: cover;
    background: var(--surface-2);
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .5), 0 0 0 1px rgba(15, 23, 42, .05);
    transition: transform .3s ease;
}
.app-card:hover .app-icon { transform: scale(1.05) rotate(-2deg); }
.app-title { min-width: 0; }
.app-name { font-size: 1.06rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.app-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-cat { font-size: .8rem; color: var(--muted); }
.app-tagline {
    color: var(--ink-2); font-size: .93rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.app-meta span { display: inline-flex; align-items: center; gap: 5px; }
.app-meta .i { width: 15px; height: 15px; }
.app-meta .i-star { width: 15px; height: 15px; }
.app-meta .rating { color: var(--ink); font-weight: 600; }
.app-meta .rating i { font-style: normal; color: var(--muted); font-weight: 500; }
.app-actions { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: auto; }
.app-actions .btn { flex: 1; }

.badge-soon {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.6;
    color: var(--soon-ink); background: var(--soon-bg); vertical-align: 1px;
}
.lbl-short { display: none; }
.app-card.is-soon .app-icon { filter: saturate(.75); }

span.icon-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.home-icon.icon-fallback, .tab-icon.icon-fallback, .float-icon.icon-fallback { font-size: 1.1rem; }
.spot-icon.icon-fallback { font-size: 2.2rem; }
.app-hero-icon.icon-fallback { font-size: 3.5rem; }

.empty { text-align: center; padding: 72px 20px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--brand-ink); background: rgba(99, 102, 241, .1); }
.empty-icon .i { width: 28px; height: 28px; }
.empty h3 { font-size: 1.35rem; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

.synced { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; font-size: .85rem; color: var(--muted); }
.synced .i { color: var(--ok); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
    position: relative; padding: 30px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(139, 92, 246, .3); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--grad);
    box-shadow: 0 14px 26px -12px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.feature-icon .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin: 20px 0 8px; letter-spacing: -.02em; }
.feature p { color: var(--muted); }

/* ---------- Premium ---------- */
.premium-wrap { padding-top: 0; }
.premium {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center;
    padding: 72px; border-radius: 40px;
    background: var(--night); color: var(--night-ink);
    box-shadow: var(--sh-3);
}
.premium-aurora::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(40% 50% at 0% 0%, rgba(99, 102, 241, .6), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(236, 72, 153, .42), transparent 70%),
        radial-gradient(30% 40% at 70% 10%, rgba(139, 92, 246, .45), transparent 70%);
}
.premium h2 { margin: 18px 0 16px; font-size: clamp(2rem, 3.6vw, 3rem); color: #fff; }
.premium-copy > p { color: var(--night-muted); font-size: 1.08rem; max-width: 34rem; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: rgba(238, 240, 255, .9); font-weight: 500; }
.check { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #34d399; background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .28); }
.check .i { width: 15px; height: 15px; stroke-width: 2.6; }

.price-card {
    position: relative; padding: 34px; border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.price-head { display: flex; align-items: center; gap: 14px; }
.price-head strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.price-head span { font-size: .86rem; color: var(--night-muted); }
.price-badge { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 14px 26px -12px rgba(236, 72, 153, .8); }
.price-badge .i { width: 24px; height: 24px; }
.price { margin: 26px 0 20px; font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 1; letter-spacing: -.04em; color: #fff; }
.price small { font-size: 1rem; letter-spacing: .08em; color: var(--night-muted); font-weight: 700; }
.price-list { display: grid; gap: 12px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.price-list li { display: flex; align-items: center; gap: 10px; color: rgba(238, 240, 255, .9); }
.price-list .i { color: #34d399; width: 18px; height: 18px; stroke-width: 2.6; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .82rem; color: var(--night-muted); }
.secure-note .i { width: 15px; height: 15px; }

/* ---------- Neo Tab ---------- */
.neotab { background: var(--bg-soft); border-top: 1px solid var(--line); overflow: hidden; }
.neotab-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.neotab-copy h2 { margin: 16px 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); }
.neotab-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; max-width: 30rem; }
.tablet-wrap { perspective: 1400px; }
.tablet {
    aspect-ratio: 4 / 3; padding: 16px; border-radius: 36px;
    background: linear-gradient(150deg, #3a3f63 0%, #151935 40%, #0a0d1f 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 8px #05060f, 0 50px 90px -40px rgba(30, 27, 75, .7);
    transform: rotateY(12deg) rotateX(4deg);
    transition: transform .6s ease;
}
.tablet:hover { transform: rotateY(4deg) rotateX(2deg); }
.tablet-screen {
    height: 100%; border-radius: 24px; padding: 8%;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7% 5%; align-content: center;
    background:
        radial-gradient(70% 70% at 0% 100%, rgba(236, 72, 153, .75), transparent 60%),
        radial-gradient(70% 70% at 100% 0%, rgba(99, 102, 241, .9), transparent 60%),
        linear-gradient(135deg, #1e1b4b, #4c1d95);
}
.tab-icon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 24%; object-fit: cover; background: rgba(255, 255, 255, .12); box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .5); }

/* ---------- Footer ---------- */
.footer { background: #050817; color: rgba(226, 230, 255, .62); padding: 80px 0 32px; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 16px 0 22px; max-width: 22rem; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; }
.footer a, .footer .link-btn { transition: color .2s; }
.footer a:hover { color: #fff; }
.store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 18px 10px 14px; border-radius: 14px;
    color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    transition: background-color .2s, border-color .2s;
}
.store-badge:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.store-badge .i { width: 26px; height: 26px; color: #c4b5fd; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-family: var(--font-display); }
.store-badge small { font: 500 .7rem var(--font-body); color: rgba(226, 230, 255, .6); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom .sep { margin: 0 6px; opacity: .5; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 23, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.modal-card {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
    padding: 34px; border-radius: 28px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55);
    opacity: 0; transform: translateY(16px) scale(.97);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); }
.modal-close:hover { color: var(--ink); }
.modal-head { text-align: center; margin-bottom: 24px; }
.modal-badge { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 16px 30px -12px rgba(236, 72, 153, .7); }
.modal-badge .i { width: 28px; height: 28px; }
.modal-head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-head p { color: var(--muted); }

.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field > span .i { width: 16px; height: 16px; color: var(--brand-ink); }
.field > span i { font-style: normal; font-weight: 500; color: var(--muted); }
.field input {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
    border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.field-error { display: none; margin-top: 6px; font-size: .8rem; font-style: normal; color: var(--danger); }
.field.has-error input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.order-summary { display: grid; gap: 10px; margin: 22px 0; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.order-summary div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.order-summary strong { color: var(--ink); }
.order-summary .text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; font-family: var(--font-display); font-size: 1.05rem; }
.modal .secure-note { color: var(--muted); }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--nav-h) + 16px); right: 16px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 14px 14px 16px; border-radius: 16px;
    color: #fff; background: #4f46e5; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45);
    animation: toast-in .3s ease both;
}
.toast.is-success { background: #059669; }
.toast.is-error { background: #dc2626; }
.toast p { flex: 1; font-size: .92rem; line-height: 1.45; }
.toast button { color: inherit; opacity: .8; }
.toast button:hover { opacity: 1; }
.toast.is-leaving { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   App details page
   ========================================================================== */
.app-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--night); color: var(--night-ink);
    padding: calc(var(--nav-h) + 36px) 0 0;
}
.app-hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.app-hero-art::before {
    content: ""; position: absolute; inset: -25%;
    background-image: var(--art); background-size: cover; background-position: center;
    filter: blur(90px) saturate(1.5); opacity: .55;
}
.app-hero-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 31, .35) 0%, rgba(7, 11, 31, .78) 70%, var(--night) 100%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--night-muted); margin-bottom: 30px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .9); }

.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.app-hero-icon {
    width: 152px; height: 152px; border-radius: 38px; object-fit: cover;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.app-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: #fff; letter-spacing: -.04em; }
.app-head-tagline { margin-top: 10px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--night-muted); max-width: 40rem; }
.app-head .hero-actions { margin-top: 26px; }

.stat-bar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 48px; border-top: 1px solid var(--night-line);
}
.stat-bar > div { display: flex; flex-direction: column; align-items: center; padding: 22px 12px 26px; text-align: center; }
.stat-bar > div + div { border-left: 1px solid var(--night-line); }
.stat-bar dt { order: -1; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 6px; }
.stat-bar dd { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: #fff; letter-spacing: -.02em; }
.stat-bar small { margin-top: 2px; font-size: .8rem; color: var(--night-muted); }

.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.row-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.row-head h2 .i { color: var(--brand-ink); }
.row-nav { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, color .2s, opacity .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }

.shots-section { padding-bottom: 8px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scroll-behavior: smooth; }
.shot {
    flex: 0 0 auto; height: 460px; padding: 0; overflow: hidden;
    border-radius: 22px; scroll-snap-align: start;
    background: var(--surface-2); border: 1px solid var(--line);
    box-shadow: var(--sh-1); cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.shot img { height: 100%; width: auto; min-width: 180px; object-fit: cover; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.about h2 { font-size: 1.6rem; margin-bottom: 18px; }
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.78; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose h3 { margin: 1.8em 0 .45em; font-size: 1.12rem; color: var(--ink); letter-spacing: -.015em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 30px; }
.prose li::before {
    content: ""; position: absolute; left: 0; top: .32em;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(99, 102, 241, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }
.info-card { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.info-card dl { display: grid; margin-bottom: 20px; }
.info-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.info-card dt .i { width: 17px; height: 17px; color: var(--brand-ink); }
.info-card dd { font-weight: 600; color: var(--ink); text-align: right; }
.info-card dd i { font-style: normal; font-weight: 500; color: var(--muted); }

.mini-premium {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 26px; border-radius: var(--r-lg); color: #fff;
    background: radial-gradient(80% 90% at 100% 0%, rgba(236, 72, 153, .55), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(99, 102, 241, .75), transparent 60%), var(--night);
}
.mini-premium h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.mini-premium p { color: var(--night-muted); font-size: .94rem; margin-bottom: 18px; }

.related { padding-bottom: 104px; }

.notfound { position: relative; isolation: isolate; overflow: hidden; min-height: 70vh; display: flex; align-items: center; text-align: center; padding: calc(var(--nav-h) + 80px) 0 100px; background: var(--night); color: var(--night-ink); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 12px; }
.notfound p { color: var(--night-muted); margin-bottom: 28px; }
.notfound .empty-icon { color: #c7d2fe; background: rgba(255, 255, 255, .08); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px 72px; background: rgba(4, 6, 18, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .2s ease; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); background: #111; }
.lb-stage figcaption { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .float-card { display: none; }
}

@media (max-width: 1100px) {
    .apps-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium { padding: 56px; gap: 40px; }
}

@media (max-width: 1024px) {
    .hero { padding: calc(var(--nav-h) + 56px) 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-lead { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .spot-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium { grid-template-columns: 1fr; }
    .neotab-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
    .neotab-copy p { margin-left: auto; margin-right: auto; }
    .tablet-wrap { max-width: 640px; margin: 0 auto; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-body { grid-template-columns: 1fr; }
    .side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
    :root { --gutter: 16px; --nav-h: 64px; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 36px; }
    .hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 40px; }
    .device { width: 270px; }
    .home-grid { gap: 13px 6px; }
    .home-icon { width: 46px; height: 46px; border-radius: 12px; }
    .home-dock .home-icon { width: 42px; height: 42px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search { max-width: none; flex: 0 0 auto; }
    .sort select { width: 100%; }
    .search kbd { display: none; }
    .apps-grid, .apps-grid-4 { grid-template-columns: 1fr; gap: 10px; }

    /* Compact list rows on phones */
    .app-card {
        display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
        grid-template-areas: "icon title act" "icon tag act" "icon meta act";
        column-gap: 14px; row-gap: 2px; align-items: center;
        padding: 14px; border-radius: 18px;
    }
    .app-card:hover { transform: none; }
    .app-card-top { display: contents; }
    .app-card .app-icon { grid-area: icon; align-self: start; width: 56px; height: 56px; border-radius: 15px; font-size: 1.2rem; }
    .app-card:hover .app-icon { transform: none; }
    .app-title { grid-area: title; }
    .app-name { font-size: 1rem; }
    .app-cat { display: block; font-size: .74rem; }
    .app-tagline { grid-area: tag; -webkit-line-clamp: 1; min-height: 0; font-size: .86rem; color: var(--muted); }
    .app-meta { grid-area: meta; gap: 4px 12px; font-size: .76rem; }
    .app-meta span:last-child { display: none; }
    .app-actions { grid-area: act; margin: 0; align-self: center; }
    .app-actions .btn-details { display: none; }
    .app-actions .btn { flex: none; --h: 34px; padding: 0 14px; font-size: .82rem; }
    .app-actions .btn .i { width: 15px; height: 15px; }
    .lbl-long { display: none; }
    .lbl-short { display: inline; }
    .app-card .app-cat .badge-soon { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .premium { padding: 36px 22px; border-radius: 28px; }
    .check-list { grid-template-columns: 1fr; }
    .price-card { padding: 26px 22px; }
    .price { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .modal { padding: 12px; align-items: flex-end; }
    .modal-card { padding: 28px 22px; border-radius: 26px; }

    .app-head { grid-template-columns: 1fr; gap: 22px; text-align: left; }
    .app-hero-icon { width: 104px; height: 104px; border-radius: 28px; }
    .stat-bar { display: flex; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
    .stat-bar::-webkit-scrollbar { display: none; }
    .stat-bar > div { flex: 0 0 auto; min-width: 128px; }
    .shot { height: 380px; }
    .row-nav { display: none; }
    .row-head h2 { font-size: 1.3rem; }
    .side { grid-template-columns: 1fr; }
    .lightbox { padding: 16px; }
    .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
    .lb-stage img { max-height: calc(100vh - 160px); }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 2.3rem; }
    .btn-lg { --h: 52px; padding: 0 20px; }
    .hero-actions .btn { width: 100%; }
    .spot-actions { flex-direction: column; }
    .spot-actions .btn { flex: none; width: 100%; }
    .device { width: 250px; }
    .home-icon { width: 40px; height: 40px; border-radius: 11px; }
    .home-dock .home-icon { width: 38px; height: 38px; }
    .home-app span { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
