/* ═════════ v3 art-directed sections: platform discovery + marketplace with product preview ═════════ */
/* Section panels (Linear-style containers, Raycast-style top light) */
.panel { position: relative; isolation: isolate; border-radius: 28px; padding: clamp(18px, 3.2vw, 44px); border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)); overflow: hidden; }
.panel-light { position: absolute; inset: -1px; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 50% at 50% -10%, rgba(255, 255, 255, .06), transparent 70%); }
[data-theme="light"] .panel { border-color: var(--border); background: rgba(255, 255, 255, .7); }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.panel h2, .mk-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 650; letter-spacing: -.04em; line-height: 1.04; margin: 10px 0 0; }
.panel-sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; margin: 12px 0 0; max-width: 560px; }
.panel .eyebrow { letter-spacing: .14em; }

/* Platform cards */
.pgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pgrid .pcard:last-child { grid-column: span 2; } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } .pcard { grid-column: span 2; } .pcard-lg { grid-column: span 3; } .pgrid .pcard:last-child { grid-column: span 2; } }
.pcard { --c: var(--p-other); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 236px; padding: 24px; border-radius: 22px; color: inherit; overflow: hidden; text-decoration: none !important; }
@media (min-width: 1040px) { .pcard { min-height: 260px; } .pcard-lg { min-height: 288px; padding: 30px; } }
[data-theme="dark"] .pcard { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)), #0A0B10; border-color: rgba(255, 255, 255, .07); }
.pcard::before { background: radial-gradient(280px circle at var(--mx, 70%) var(--my, 0%), color-mix(in srgb, var(--c) 75%, white 25%), transparent 65%) !important; }
.pcard::after { background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), color-mix(in srgb, var(--c) 8%, transparent), transparent 60%) !important; }
[data-theme="dark"] .pcard:hover { border-color: color-mix(in srgb, var(--c) 35%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 70px -40px color-mix(in srgb, var(--c) 60%, transparent); }
.pcard-light { position: absolute; right: -10%; top: -20%; width: 70%; height: 90%; pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent); filter: blur(12px); opacity: .7; transition: opacity var(--dur-3); }
.pcard:hover .pcard-light { opacity: 1; }
.pcard-body { position: relative; z-index: 1; display: grid; gap: 8px; max-width: min(62%, 300px); align-content: start; }
.pcard-body h3 { margin: 14px 0 0; font-size: clamp(20px, 2vw, 24px); font-weight: 650; letter-spacing: -.025em; }
.pcard-copy { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pcard-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-count { font-size: 14px; font-weight: 600; color: var(--link); }
.pcard-go { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-strong); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: background-color var(--dur-2), transform var(--dur-3) var(--ease-out), color var(--dur-2); }
.pcard-go svg { width: 16px; height: 16px; }
.pcard:hover .pcard-go, .pstrip:hover .pcard-go { background: var(--text-strong); color: var(--bg); transform: translateX(2px); }
[data-theme="light"] .pcard-go { background: var(--surface-raised); border-color: var(--border); }
.pcard .mono-badge.lg { width: 52px; height: 52px; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* 3D lit icon */
.pcard-art { position: absolute; z-index: 1; right: clamp(14px, 3vw, 34px); top: clamp(18px, 3vw, 34px); perspective: 700px; animation: iconFloat 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.3s); }
@keyframes iconFloat { 50% { translate: 0 -7px; } }
.icon3d { --size: 104px; --rx: 10deg; --ry: -22deg; --rz: 7deg; display: block; width: var(--size); height: var(--size); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); transition: transform .8s var(--ease-spring), opacity .6s var(--ease-out); }
.pcard-lg .icon3d { --size: 136px; }
@media (max-width: 639px) { .icon3d, .pcard-lg .icon3d { --size: 88px; } .pcard-body { max-width: 64%; } }
.icon3d-face { position: absolute; inset: 0; border-radius: 26%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 25% 15%, color-mix(in srgb, var(--c) 55%, white 45%), color-mix(in srgb, var(--c) 92%, black 8%) 45%, color-mix(in srgb, var(--c) 55%, black 45%) 100%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -10px 24px rgba(0, 0, 0, .35), 0 30px 50px -18px color-mix(in srgb, var(--c) 70%, transparent), 0 14px 22px -10px rgba(0, 0, 0, .7); }
.icon3d-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(140deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.icon3d-face::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -30%; height: 50%; border-radius: 50%; background: color-mix(in srgb, var(--c) 60%, white); filter: blur(18px); opacity: .35; pointer-events: none; }
.icon3d-face i { position: relative; z-index: 1; display: block; width: 52%; height: 52%; background: #fff; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
/* dark-brand platforms get a graphite tile with a coloured rim light */
.icon3d.p-x .icon3d-face, .icon3d.p-tiktok .icon3d-face { background: radial-gradient(120% 90% at 25% 15%, #3A3D48, #15161C 50%, #050507); }
.icon3d.p-tiktok .icon3d-face { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 3px 0 0 rgba(37, 244, 238, .55), inset -3px 0 0 rgba(254, 44, 85, .55), 0 30px 50px -18px rgba(37, 244, 238, .35), 0 14px 22px -10px rgba(0, 0, 0, .8); }
.icon3d.p-x .icon3d-face { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -10px 24px rgba(0, 0, 0, .5), 0 30px 50px -18px rgba(255, 255, 255, .18), 0 14px 22px -10px rgba(0, 0, 0, .8); }
.pcard:hover .icon3d, .pcard:focus-visible .icon3d { --rx: 4deg; --ry: -8deg; --rz: 2deg; }
/* entrance: tiles settle in after their card */
.motion .pcard .icon3d { opacity: 0; transform: rotateX(28deg) rotateY(-46deg) rotateZ(16deg) translateZ(-60px) scale(.82); transition-delay: calc(var(--d, 0) * 90ms + 220ms); }
.motion .pcard.in .icon3d { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); }
.motion .pcard.in:hover .icon3d { transition-delay: 0s; }

/* Website & other strip */
.pstrip { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 22px; border-radius: 18px; color: inherit; text-decoration: none !important; }
[data-theme="dark"] .pstrip { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), #0A0B10; border-color: rgba(255, 255, 255, .07); }
.pstrip-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pstrip-text b { font-size: 16px; color: var(--text-strong); letter-spacing: -.015em; }
.pstrip-text span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .pstrip .pcard-count { display: none; } }

/* Marketplace panel */
.panel-market { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .panel-market { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; } }
.mk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.mk-search { flex: 1 1 260px; max-width: 360px; }
.mk-search input { min-height: 46px; background: rgba(255, 255, 255, .03); }
.mk-filters { display: grid; gap: 12px; margin: 22px 0 18px; }
.mk-filters .seg { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1); }
.chip:hover { color: var(--text-strong); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--text-strong); border-color: var(--accent-line); background: var(--accent-soft); }
.mk-list { display: grid; gap: 10px; }
.mk-row { position: relative; display: grid; align-items: center; gap: 12px 16px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), #0A0B10;
  grid-template-columns: 52px minmax(0, 1fr); transition: border-color var(--dur-2), translate var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
[data-theme="light"] .mk-row { background: #fff; border-color: var(--border); }
.mk-row:hover { border-color: rgba(255, 255, 255, .16); translate: 0 -2px; box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9); }
[data-theme="light"] .mk-row:hover { border-color: var(--border-strong); box-shadow: 0 20px 40px -30px rgba(40, 20, 90, .35); }
.mk-row .mono-badge.lg { width: 52px; height: 52px; border-radius: 15px; }
.mk-row-main { min-width: 0; display: grid; gap: 4px; }
.mk-row-main h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.mk-row-main h3 a { color: var(--text-strong); }
.mk-row-main p { margin: 0; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mk-price { display: grid; gap: 1px; grid-column: 1 / 2; grid-row: 2; min-width: 0; }
.mk-price span { font-size: 12px; color: var(--muted); }
.mk-price b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.mk-cta { grid-column: 2; grid-row: 2; justify-self: end; position: relative; z-index: 2; }
@media (max-width: 719px) { .mk-price { grid-column: 1 / 2; } .mk-row { grid-template-columns: 52px minmax(0, 1fr); } .mk-price { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 6px; } .mk-cta { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; } .mk-row-main p { white-space: normal; } }
@media (min-width: 720px) { .mk-row { grid-template-columns: 52px minmax(0, 1fr) 150px auto; padding: 18px 20px; } .mk-price { grid-column: 3; grid-row: 1; } .mk-cta { grid-column: 4; grid-row: 1; } }
.mk-row .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.motion .mk-row { animation: rowIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rowIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.mk-more { margin-top: 18px; }

/* Product preview: phone */
.mk-preview { display: none; }
@media (min-width: 1100px) { .mk-preview { display: block; position: sticky; top: 96px; } }
.phone-stage { --prx: 0deg; --pry: 0deg; position: relative; padding: 24px 0 40px; perspective: 1400px; }
.phone-beam { position: absolute; left: 50%; top: -60px; width: 160%; height: 120%; translate: -50% 0; pointer-events: none; filter: blur(14px);
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(167, 139, 250, .12) 172deg, rgba(255, 255, 255, .1) 180deg, rgba(167, 139, 250, .12) 188deg, transparent 200deg);
  -webkit-mask: linear-gradient(#000 30%, transparent 90%); mask: linear-gradient(#000 30%, transparent 90%); }
.phone-light { position: absolute; left: 10%; right: 10%; top: 30%; height: 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(135, 60, 255, .35), transparent); filter: blur(30px); pointer-events: none; }
.phone { position: relative; width: 300px; margin: 0 auto; aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 9px;
  background: linear-gradient(145deg, #3B3D46, #15161B 30%, #2A2C33 60%, #0E0F13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -30px rgba(0, 0, 0, .95), 0 30px 80px -40px rgba(135, 60, 255, .5);
  transform: rotateX(var(--prx)) rotateY(var(--pry)); transition: transform .8s var(--ease-out); }
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #050507; display: flex; flex-direction: column; padding: 14px 16px 0; color: #E5E7EB; font-size: 11px; }
.phone-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 40% at 80% 35%, rgba(135, 60, 255, .22), transparent 70%); }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 8px; }
.ph-status b { font-size: 12px; color: #fff; }
.ph-island { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 86px; height: 24px; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.ph-sys { display: flex; gap: 2px; align-items: end; } .ph-sys i { width: 3px; border-radius: 1px; background: #fff; } .ph-sys i:nth-child(1) { height: 4px; } .ph-sys i:nth-child(2) { height: 6px; } .ph-sys i:nth-child(3) { height: 8px; } .ph-sys i:nth-child(4) { height: 10px; }
.ph-nav { position: relative; display: flex; align-items: center; gap: 6px; margin: 16px 2px 0; }
.ph-nav .brand-icon { height: 24px; width: auto; } .ph-nav .brand-icon.on-light { display: none; } .ph-nav .wordmark { font-size: 15px; }
.ph-burger { margin-left: auto; display: grid; gap: 3px; } .ph-burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
.ph-hero { position: relative; display: grid; gap: 8px; margin-top: 20px; }
.ph-chip { justify-self: start; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C4B5FD; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, .35); background: rgba(135, 60, 255, .1); }
.ph-hero h4 { margin: 4px 0 0; font-size: 27px; line-height: 1.02; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.ph-hero h4 .accent { background: linear-gradient(100deg, #A78BFA, #873CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-hero p { margin: 0; font-size: 11px; line-height: 1.5; color: #B7BAC4; }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; border-radius: 10px; font-weight: 600; font-size: 11.5px; color: #fff; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.ph-btn.primary { background: #873CFF; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(135, 60, 255, .8); }
.ph-btn svg { width: 12px; height: 12px; }
.ph-wallet { position: relative; display: grid; gap: 3px; margin-top: 14px; padding: 12px 12px 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); overflow: hidden; }
.ph-wallet b { font-size: 18px; color: #fff; letter-spacing: -.01em; }
.ph-wallet svg { display: block; width: calc(100% + 24px); height: 46px; margin: 4px -12px 0; }
.ph-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .mk-preview .ph-line { animation: phDraw 2.4s var(--ease-out) .4s both; }
@keyframes phDraw { from { stroke-dashoffset: 1; } }
.ph-lbl { font-size: 9.5px; color: #8E92A0; }
.ph-tabs { position: relative; margin: auto -16px 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px 22px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(10, 11, 16, .92); }
.ph-tabs span { display: grid; justify-items: center; gap: 3px; color: #7C808C; font-size: 8.5px; }
.ph-tabs span.on { color: #fff; } .ph-tabs svg { width: 16px; height: 16px; } .ph-tabs em { font-style: normal; }
.ph-home { position: absolute; left: 50%; bottom: 7px; translate: -50% 0; width: 96px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); }
.ph-float { position: absolute; z-index: 2; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(14, 15, 21, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); animation: floatChip 8s ease-in-out infinite; }
.ph-float-a { left: -40px; bottom: 6px; } .ph-float-b { right: -34px; top: 69%; animation-delay: -4s; }
@keyframes floatChip { 50% { translate: 0 -8px; } }
.ph-steps { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: #C9CCD5; white-space: nowrap; }
.ph-steps i { width: 6px; height: 6px; border-radius: 50%; background: #873CFF; box-shadow: 0 0 0 3px rgba(135, 60, 255, .2); margin-left: 4px; } .ph-steps i:first-child { margin-left: 0; }
.ph-icons { display: flex; gap: 4px; } .ph-icons .mono-badge.sm { width: 24px; height: 24px; border-radius: 7px; }

@media (prefers-reduced-motion: reduce) {
  .pcard-art, .ph-float, .motion .mk-row, .motion .mk-preview .ph-line { animation: none !important; }
  .phone { transform: none !important; }
}
#mk-grid.mk-list { grid-template-columns: minmax(0, 1fr); perspective: none; }
.mk-head { display: block; }
.mk-sub { display: grid; gap: 16px; margin-top: 12px; }
.mk-sub .panel-sub { margin: 0; }
.mk-search { max-width: none; }
@media (min-width: 900px) { .mk-sub { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: center; gap: 28px; } }
