.market-skip { position: absolute; left: 1rem; top: -5rem; padding: .75rem; background: #fff; z-index: 5; }
.market-skip:focus { top: .5rem; }
.market-home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 24px; }
.market-home-links h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
.market-directory { padding-block: clamp(2rem, 6vw, 5rem); min-height: 65vh; }
.market-directory h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -.05em; }
.market-directory > p { color: #455877; }
.market-search { margin-block: 2rem; }
.market-search label { display: block; margin-bottom: .5rem; font-weight: 600; }
.market-search div { display: flex; flex-wrap: wrap; gap: .5rem; }
.market-search input { flex: 1 1 15rem; max-width: 30rem; min-width: 0; border: 1px solid #8c9db3; border-radius: .5rem; padding: .65rem .85rem; font: inherit; }
.market-search :focus-visible, .market-directory a:focus-visible { outline: 3px solid #2659bd; outline-offset: 3px; }
.market-directory .store-card h2 { margin: .35rem 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.market-publisher { font-size: .85rem; color: #425579; margin: 0; }
.market-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.market-pagination { margin-top: 2rem; }
@font-face {
    font-family: Nunito;
    src: url("../marketplace/fonts/nunito-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: "Marketplace Icons";
    src: url("../marketplace/fonts/materialdesignicons-webfont.woff2") format("woff2");
    font-display: block;
}

body { font-family: Nunito, system-ui, sans-serif; font-synthesis: weight style; line-height: 1.65; color: #111d36; }
.store-container { width: min(1140px, calc(100% - 40px)); padding-inline: 12px; }
.store-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .93); backdrop-filter: blur(18px); }
.store-header-inner { min-height: 76px; padding-block: 0; flex-wrap: nowrap; }
.store-header .store-brand img { width: min(200px, 48vw); height: 40px; }
.store-header nav { gap: clamp(.8rem, 2.1vw, 1.875rem); font-size: .94rem; }
.store-header nav .store-button { border-radius: 999px; background: #111d36; color: #fff; padding: 10px 18px; }
.store-header nav .store-button:hover { background: #3155d9; text-decoration: none; }
.market-mobile-nav { display: none; }
.store-header a:focus-visible, .market-orbit-card:focus-visible, .market-hero-search :focus-visible { outline: 3px solid #3155d9; outline-offset: 4px; }

/* Layout and typography from the NexinApps commercial homepage. */
.market-hero {
    display: flex;
    align-items: center;
    min-height: 710px;
    overflow: hidden;
    background:
        radial-gradient(circle at 87% 18%, rgba(22, 139, 221, .12), transparent 30%),
        radial-gradient(circle at 95% 75%, rgba(118, 184, 62, .10), transparent 28%),
        radial-gradient(circle at 56% 90%, rgba(245, 188, 36, .10), transparent 26%),
        #fafbff;
}
.market-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 56px;
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: 64px;
    padding-inline: 12px;
}
.market-hero h1 {
    margin: 16px 0 22px;
    font-size: clamp(2.8rem, 5.2vw, 5.15rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 800;
}
.market-hero-copy p { max-width: 690px; color: #50617d; font-size: 1.2rem; line-height: 1.7; }
.market-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #3155d9; font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.market-hero-search { margin-top: 28px; }
.market-hero-search label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 800; }
.market-hero-search > div { display: flex; gap: 8px; padding: 7px; border: 1px solid #dfe5ef; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(17, 29, 54, .05); }
.market-hero-search input { flex: 1; width: 0; min-width: 0; padding: 10px 8px; border: 0; border-radius: 8px; font: inherit; color: #111d36; background: transparent; }
.market-hero-search input::placeholder { color: #61708a; opacity: 1; }
.market-hero-search button { gap: 6px; flex-shrink: 0; border-radius: 10px; background: #3155d9; border-color: #3155d9; color: #fff; padding: 11px 16px; font-weight: 800; }
.market-hero-search button:hover { background: #203da8; }
.market-hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.market-hero-actions .store-button { background: transparent; border: 0; color: #3155d9; padding: 0; gap: .5rem; font-size: .95rem; font-weight: 800; box-shadow: none; }
.market-hero-actions .store-button:hover { text-decoration: underline; }
.market-hero-copy .market-hero-note { margin-top: 20px; color: #61708a; font-size: .84rem; line-height: 1.55; }
.market-hero-visual { position: relative; min-height: 550px; }
.market-orbit-art { position: absolute; inset: 0; }
.market-orbit-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 1px dashed rgba(49, 85, 217, .24); border-radius: 50%; transform: translate(-50%, -50%); --orbit-direction: normal; --orbit-counter: reverse; animation: market-orbit-spin var(--orbit-duration) linear var(--orbit-delay) infinite var(--orbit-direction); }
.market-orbit-ring-0 { width: 49%; --orbit-duration: 90s; --orbit-delay: -14s; }
.market-orbit-ring-1 { width: 65%; --orbit-duration: 125s; --orbit-delay: -40s; --orbit-direction: reverse; --orbit-counter: normal; }
.market-orbit-ring-2 { width: 87%; --orbit-duration: 165s; --orbit-delay: -27s; }
.market-orbit-node { position: absolute; left: calc(50% + 50% * cos(var(--orbit-angle))); top: calc(50% + 50% * sin(var(--orbit-angle))); transform: translate(-50%, -50%); }
.market-orbit-token { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dfe5ef; border-radius: 15px; background: #fff; box-shadow: 0 10px 24px rgba(17, 29, 54, .07); font-size: 1.5rem; animation: market-token-spin var(--orbit-duration) linear var(--orbit-delay) infinite var(--orbit-counter); }
.market-orbit-tone-0 { color: #146eaf; background: #f0f8ff; }
.market-orbit-tone-1 { color: #bf3e26; background: #fff3ee; }
.market-orbit-tone-2 { color: #487a1e; background: #f3f9ed; }
.market-orbit-tone-3 { color: #936200; background: #fff9e9; }
.market-orbit-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.market-orbit-center::before { content: ""; width: 140px; height: 140px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff 25%, rgba(255,255,255,0) 70%); }
.market-orbit-center img { position: relative; width: 112px; height: auto; filter: drop-shadow(0 14px 24px rgba(49,85,217,.12)); animation: market-center-float 8s ease-in-out infinite; }
.market-hero-visual .market-orbit-ring, .market-hero-visual .market-orbit-token, .market-hero-visual .market-orbit-center img { animation-play-state: paused; }
.market-hero-visual[data-market-motion="running"] .market-orbit-ring, .market-hero-visual[data-market-motion="running"] .market-orbit-token, .market-hero-visual[data-market-motion="running"] .market-orbit-center img { animation-play-state: running; }
.market-motion-toggle { position: absolute; bottom: 0; right: 0; border: 1px solid #dfe5ef; border-radius: 99px; padding: 6px 12px; color: #50617d; background: rgba(255,255,255,.85); font-size: .75rem; }
.market-motion-toggle:hover { background: #fff; color: #3155d9; }
@keyframes market-orbit-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes market-token-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes market-center-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(var(--market-float-distance, -8px)) scale(1.025); } }
.market-icon::before { font-family: "Marketplace Icons"; font-style: normal; font-weight: normal; line-height: 1; letter-spacing: 0; }
.market-icon-grid::before { content: "\F11D9"; }
.market-icon-search::before { content: "\F0349"; }
.market-icon-store::before { content: "\F10C1"; }
.market-icon-bag::before { content: "\F11D5"; }
.market-icon-sell::before { content: "\F18D0"; }
.market-icon-people::before { content: "\F0B58"; }
.market-icon-calendar::before { content: "\F0E18"; }
.market-icon-chart::before { content: "\F154E"; }
.market-icon-cloud::before { content: "\F0163"; }
.market-icon-document::before { content: "\F09EE"; }
.market-icon-message::before { content: "\F0365"; }
.market-icon-code::before { content: "\F0169"; }
.market-icon-finance::before { content: "\F15A6"; }
.market-icon-briefcase::before { content: "\F0814"; }
.market-icon-shield::before { content: "\F0CC8"; }

.market-explore { background: #f5f7fb; padding-block: 90px; }
.market-section-heading { max-width: 720px; margin-bottom: 36px; }
.market-section-heading h2, .market-buyer-intro h2, .market-seller-intro h2 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.14; letter-spacing: -.04em; margin: 12px 0 18px; }
.market-section-heading p, .market-buyer-intro p { color: #61708a; font-size: 1.05rem; }
.market-home-links .store-card { padding: 30px; border-radius: 22px; gap: 18px; box-shadow: none; }
.market-home-links .store-card p { margin-bottom: 12px; }
.market-feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e9f4fc; color: #146eaf; font-size: 1.7rem; }
.market-official-label { padding: 6px 10px; border-radius: 8px; color: #487a1e; background: #f0f7e9; font-size: .78rem; font-weight: 800; }
.market-buyer-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 90px; align-items: center; }
.market-buyer-intro a { display: inline-block; margin-top: 20px; }
.market-seller-intro { background: linear-gradient(120deg, #223fb1, #3155d9 55%, #3e73d7); padding-block: 76px; color: #fff; scroll-margin-top: 76px; }
.market-seller-intro > div { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.market-seller-intro > div > div { max-width: 690px; }
.market-seller-intro .market-hero-eyebrow, .market-seller-intro p { color: #e0e7ff; }
.market-seller-intro .market-seller-note { font-size: .84rem; margin-top: 16px; }
.market-seller-intro .store-button { background: #fff; color: #111d36; border-color: #fff; flex-shrink: 0; gap: .5rem; padding: 14px 24px; font-weight: 800; border-radius: 12px; }
.market-seller-intro .store-button:hover { background: #edf1ff; }
.store-footer { position: relative; background: #111d36; color: #9dabc0; border-top: 0; }
.store-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, #168bdd 0% 25%, #ef5a3d 25% 50%, #76b83e 50% 75%, #f5bc24 75% 100%); }
.store-footer-inner { align-items: start; padding-block: 60px 35px; gap: 48px; }
.market-footer-brand { max-width: 360px; }
.market-footer-brand img { display: block; max-width: 100%; }
.market-footer-brand p { margin-top: 18px; }
.store-footer nav { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.store-footer nav strong { color: #fff; margin-bottom: 6px; }
.store-footer nav a { text-decoration: none; }
.store-footer nav a:hover { color: #fff; text-decoration: underline; }
.store-footer a:focus-visible { outline-color: #a9bcff; }
.market-footer-credit { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; }

@media (max-width: 991.98px) {
    .market-hero { min-height: auto; }
    .market-hero-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 85px; }
    .market-hero-visual { max-width: 590px; width: 100%; margin-inline: auto; }
}
@media (max-width: 700.98px) {
    .market-hero-grid, .store-header-inner { width: min(100% - 28px, 1180px); }
    .market-hero-grid { padding-block: 60px 45px; }
    .market-hero h1 { font-size: 3rem; }
    .market-hero-copy p { font-size: 1.05rem; }
    .market-hero-visual { min-height: 390px; }
    .market-orbit-token { width: 38px; height: 38px; border-radius: 12px; font-size: 1.25rem; }
    .market-orbit-center img { width: 72px; --market-float-distance: -4px; }
    .store-header .market-desktop-nav { display: none; }
    .market-mobile-nav { display: block; }
    .market-mobile-nav summary { list-style: none; padding: 10px; cursor: pointer; }
    .market-mobile-nav summary::-webkit-details-marker { display: none; }
    .market-mobile-nav summary span { display: block; width: 23px; height: 2px; background: #111d36; margin: 5px; }
    .market-mobile-nav nav { position: absolute; top: 76px; inset-inline: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #dfe5ef; box-shadow: 0 12px 20px rgba(17, 29, 54, .08); padding: 12px 20px; }
    .market-mobile-nav nav a { padding: 12px; border-radius: 8px; }
    .market-mobile-nav nav a:hover { background: #f5f7fb; }
    .market-buyer-intro { grid-template-columns: 1fr; gap: 10px; }
    .market-buyer-intro, .market-explore, .market-seller-intro { padding-block: 56px; }
    .market-seller-intro > div { flex-direction: column; align-items: start; gap: 24px; }
    .store-footer-inner { flex-wrap: wrap; gap: 32px; }
    .market-footer-brand { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    /* Static before the module loads; motion starts only after an explicit Play action. */
    .market-hero-visual:not([data-market-motion="running"]) * { animation-play-state: paused; }
}
@media (max-width: 380px) {
    .market-orbit-ring-0 { width: 52%; }
    .market-orbit-center img { width: 56px; }
    .market-orbit-token { width: 32px; height: 32px; border-radius: 10px; font-size: 1.05rem; }
    .market-hero-search > div { flex-wrap: wrap; }
    .market-hero-search input { width: 100%; flex-basis: 100%; }
    .market-hero-search button { width: 100%; }
}
