/* =====================================================================
   Barmajli — "Dark Immersive Tech" (v4). Loaded after app.css.
   1 Tokens · 2 Base · 3 Primitives · 4 Effects · 5 Chrome (header/menu/panel)
   6 Home · 7 Catalog · 8 Product · 9 Footer · 10 Utilities & motion
   ===================================================================== */

/* 1 ─ Tokens ───────────────────────────────────────────────────────── */
@property --dx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
    --dx-bg: #09090b;
    --dx-bg-2: #0c0c10;
    --dx-surface: rgba(255, 255, 255, .03);
    --dx-surface-2: rgba(255, 255, 255, .06);
    --dx-border: rgba(255, 255, 255, .08);
    --dx-border-2: rgba(255, 255, 255, .14);
    --dx-text: #fafafa;
    --dx-text-2: #d4d4d8;
    --dx-mute: #a1a1aa;
    --dx-dim: #71717a;
    --dx-violet: #8b5cf6;
    --dx-blue: #3b82f6;
    --dx-cyan: #22d3ee;
    --dx-glow: rgba(139, 92, 246, .45);
    --dx-grad: linear-gradient(90deg, #a78bfa, #60a5fa, #22d3ee, #a78bfa);
    --dx-ease: cubic-bezier(.22, 1, .36, 1);
    --dx-radius: 20px;
    --dx-font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --dx-font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
    --dx-fs-display: clamp(44px, 7.6vw, 120px);
    --dx-fs-h2: clamp(32px, 4.4vw, 60px);
    --dx-fs-h3: clamp(19px, 1.6vw, 24px);
    --dx-section: clamp(96px, 12vw, 160px);
    --pf-gutter: clamp(16px, 4vw, 40px);
    --pf-max: 1240px;
    --pf-header-h: 72px;
}

/* 2 ─ Base ─────────────────────────────────────────────────────────── */
html { background: var(--dx-bg); color-scheme: dark; }
body.pf-body {
    background: var(--dx-bg); color: var(--dx-text);
    font-family: var(--dx-font-body); text-rendering: optimizeLegibility; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.pf-body h1, .pf-body h2, .pf-body h3 { font-family: var(--dx-font-display); letter-spacing: -.02em; color: var(--dx-text); }
.pf-body ::selection { background: var(--dx-violet); color: #fff; }
.pf-body :focus-visible { outline: 2px solid var(--dx-violet); outline-offset: 3px; border-radius: 8px; }
.pf-wrap { width: 100%; max-width: var(--pf-max); margin-inline: auto; padding-inline: var(--pf-gutter); }

/* 3 ─ Primitives ───────────────────────────────────────────────────── */
.pf-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-inline: 12px; border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--dx-text-2);
    background: var(--dx-surface); border: 1px solid var(--dx-border);
}
.pf-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dx-violet); box-shadow: 0 0 10px var(--dx-violet); }
.pf-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dx-text-2); }
.pf-status > span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.pf-h2 { font-size: var(--dx-fs-h2); line-height: 1.12; font-weight: 700; margin: 18px 0 0; }
.pf-section-lead { margin: 18px 0 0; color: var(--dx-mute); font-size: 17px; line-height: 1.85; max-width: 36rem; }
.pf-section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.pf-section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pf-section-head--row > div:first-child { max-width: 680px; }

/* Buttons */
.pf-btn {
    position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding-inline: 20px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
    background: var(--dx-text); color: #09090b; font: 600 15px/1 var(--dx-font-body); text-decoration: none;
    transition: transform .4s var(--dx-ease), box-shadow .4s var(--dx-ease), background .3s;
}
.pf-btn:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 10px 40px -10px rgba(255, 255, 255, .35); }
.pf-btn svg { width: 18px; height: 18px; }
.pf-btn--lg { height: 52px; padding-inline: 26px; font-size: 16px; }
.pf-btn--xl { height: 62px; padding-inline: 34px; font-size: 17px; }
/* Accent: sweeping conic border + glow */
.pf-btn--accent { background: #120f1f; color: #fff; }
.pf-btn--accent::before {
    content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; padding: 1px;
    background: conic-gradient(from var(--dx-angle), transparent 0 60%, #a78bfa 75%, #22d3ee 85%, transparent 100%), var(--dx-border-2);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: dx-spin 3.5s linear infinite;
}
.pf-btn--accent::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: radial-gradient(120% 120% at 50% 120%, rgba(139, 92, 246, .55), transparent 60%);
    opacity: .7; transition: opacity .4s;
}
.pf-btn--accent:hover { box-shadow: 0 0 40px -6px var(--dx-glow); }
.pf-btn--accent:hover::after { opacity: 1; }
.pf-btn--glass, .pf-btn--ghost-dark {
    background: var(--dx-surface); color: var(--dx-text); border: 1px solid var(--dx-border-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pf-btn--glass:hover, .pf-btn--ghost-dark:hover { background: var(--dx-surface-2); box-shadow: none; }
@keyframes dx-spin { to { --dx-angle: 360deg; } }

.pf-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px; padding-block: 6px;
    color: var(--dx-text-2); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .3s;
}
.pf-link::before { content: "←"; order: 2; transition: transform .4s var(--dx-ease); }
.pf-link:hover { color: #fff; }
.pf-link:hover::before { transform: translateX(-4px); }
.pf-link-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 500; color: var(--dx-mute); cursor: pointer; }
.pf-link-btn:hover { color: var(--dx-text); }

/* 4 ─ Effects ──────────────────────────────────────────────────────── */
/* Animated gradient text */
.dx-gradient-text {
    background: linear-gradient(100deg, #fff 0%, #fff 30%, #c4b5fd 45%, #93c5fd 55%, #67e8f9 62%, #fff 78%, #fff 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dx-shine 7s var(--dx-ease) infinite;
}
@keyframes dx-shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

/* Aceternity-style spotlight card: glow border + soft inner light that follow the cursor (JS sets --mx/--my) */
.dx-card, .pf-hpanel:not(.pf-hpanel--intro), .is-bento .pf-item, .pf-rcard, .pf-channel, [data-spotlight] {
    --mx: -999px; --my: -999px;
    position: relative; isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    border: 1px solid var(--dx-border); border-radius: var(--dx-radius);
}
.dx-card::before, .pf-hpanel:not(.pf-hpanel--intro)::before, .is-bento .pf-item::before, .pf-rcard::before, .pf-channel::before, [data-spotlight]::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(167, 139, 250, .9), rgba(96, 165, 250, .4) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s;
}
.dx-card::after, .pf-hpanel:not(.pf-hpanel--intro)::after, .is-bento .pf-item::after, .pf-rcard::after, .pf-channel::after, [data-spotlight]::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 92, 246, .12), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.dx-card:hover::before, .dx-card:hover::after,
.pf-hpanel:hover::before, .pf-hpanel:hover::after,
.is-bento .pf-item:hover::before, .is-bento .pf-item:hover::after,
.pf-rcard:hover::before, .pf-rcard:hover::after,
.pf-channel:hover::before, .pf-channel:hover::after,
[data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }

/* 5 ─ Chrome: progress, header, menu, contact panel, form, toasts ──── */
.pf-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 90; pointer-events: none; }
.pf-progress span { display: block; height: 100%; background: var(--dx-grad); transform: scaleX(0); transform-origin: right; box-shadow: 0 0 12px var(--dx-violet); }

.pf-header { position: fixed; top: 12px; inset-inline: 0; z-index: 80; transition: transform .6s var(--dx-ease); }
.pf-header.is-hidden { transform: translateY(-140%); }
.pf-header-row {
    height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: calc(var(--pf-max) - 2 * var(--pf-gutter)); width: calc(100% - 2 * var(--pf-gutter)); padding-inline: 10px 8px !important;
    border-radius: 999px; border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s;
}
.pf-header.is-scrolled .pf-header-row, .pf-menu-open .pf-header-row {
    background: rgba(12, 12, 16, .65); border-color: var(--dx-border);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.pf-brand { display: flex; align-items: center; gap: 10px; color: var(--dx-text); text-decoration: none; min-width: 0; }
.pf-brand img { height: 34px; width: auto; object-fit: contain; }
.pf-brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--dx-violet), var(--dx-blue)); box-shadow: 0 0 20px -4px var(--dx-glow); }
.pf-brand-name { font-family: var(--dx-font-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.pf-header-end { display: flex; align-items: center; gap: 6px; }
.pf-header-talk {
    display: none; height: 40px; align-items: center; padding-inline: 16px; border-radius: 999px;
    color: var(--dx-text-2); text-decoration: none; font-weight: 500; font-size: 14px; transition: background .3s, color .3s;
}
.pf-header-talk:hover { background: var(--dx-surface-2); color: #fff; }
@media (min-width: 640px) { .pf-header-talk { display: inline-flex; } }
.pf-menu-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 42px; padding-inline: 16px 14px; border-radius: 999px; cursor: pointer;
    background: var(--dx-text); color: #09090b; border: 0; font: 600 14px/1 var(--dx-font-body);
}
.pf-menu-icon { display: grid; gap: 4px; width: 14px; }
.pf-menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--dx-ease); }
.pf-menu-open .pf-menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.pf-menu-open .pf-menu-icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.pf-menu:not(.hidden) {
    position: fixed; inset: 0; z-index: 70; display: block; overflow-y: auto;
    background: rgba(9, 9, 11, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding-top: calc(var(--pf-header-h) + 40px); padding-bottom: 40px;
}
.pf-menu::before { content: ""; position: fixed; inset: auto -20% -40% auto; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .25), transparent); pointer-events: none; }
.pf-menu-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 900px) { .pf-menu-grid { grid-template-columns: 1.6fr 1fr; align-items: end; min-height: calc(100vh - var(--pf-header-h) - 80px); } }
.pf-menu-links { display: grid; }
.pf-menu-link { display: flex; align-items: baseline; gap: 20px; padding-block: 8px; overflow: hidden; color: var(--dx-text); text-decoration: none; border-bottom: 1px solid var(--dx-border); }
.pf-menu-link small { font-size: 13px; color: var(--dx-dim); min-width: 24px; }
.pf-menu-link span { display: inline-block; font: 700 clamp(40px, 7.4vw, 96px)/1.15 var(--dx-font-display); transition: transform .6s var(--dx-ease); }
.pf-menu-link:hover span { transform: translateX(-14px); background: var(--dx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-menu-aside { display: grid; gap: 22px; align-content: end; }
.pf-menu-item span { display: block; font-size: 12px; color: var(--dx-dim); margin-bottom: 6px; }
.pf-menu-item a, .pf-menu-item p { color: var(--dx-text); text-decoration: none; font-size: 17px; margin: 0; }
.pf-menu-item a:hover { color: #c4b5fd; }
.pf-menu-item [dir="ltr"] { display: inline-block; }
.pf-menu-social { display: flex; flex-wrap: wrap; gap: 16px; }

.pf-panel { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.pf-panel.is-open, html:not(.pf-ready) .pf-panel:target { visibility: visible; pointer-events: auto; }
.pf-panel-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--dx-ease); }
.pf-panel.is-open .pf-panel-scrim, html:not(.pf-ready) .pf-panel:target .pf-panel-scrim { opacity: 1; }
.pf-panel-sheet {
    position: absolute; top: 12px; bottom: 12px; inset-inline-start: 12px; width: min(540px, calc(100% - 24px));
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: 24px clamp(20px, 4vw, 40px) 36px; border-radius: 24px;
    background: rgba(14, 14, 18, .82); border: 1px solid var(--dx-border-2);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: translateX(calc(100% + 24px)); transition: transform .7s var(--dx-ease);
}
.pf-panel.is-open .pf-panel-sheet, html:not(.pf-ready) .pf-panel:target .pf-panel-sheet { transform: none; }
.pf-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.pf-panel-close { color: var(--dx-text-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dx-border); }
.pf-panel-close:hover { background: var(--dx-surface-2); color: #fff; }
.pf-panel-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.2; margin: 0 0 24px; }
.pf-channels { display: grid; gap: 8px; }
.pf-channel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; color: var(--dx-text); text-decoration: none; }
.pf-channel span { font: 600 17px/1.2 var(--dx-font-display); }
.pf-channel small { font-size: 13px; color: var(--dx-mute); }
.pf-channel--main { background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(59, 130, 246, .12)); border-color: rgba(139, 92, 246, .4); }
.pf-or { display: flex; align-items: center; gap: 14px; margin: 28px 0 8px; font-size: 13px; color: var(--dx-dim); }
.pf-or::before, .pf-or::after { content: ""; flex: 1; height: 1px; background: var(--dx-border); }
.pf-panel-done { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
.pf-panel-done[hidden] { display: none; }
.pf-done-mark { color: #a78bfa; margin-bottom: 20px; filter: drop-shadow(0 0 16px var(--dx-glow)); }
.pf-panel-done p { color: var(--dx-mute); font-size: 17px; margin: 0 0 28px; }

.pf-form { display: grid; gap: 28px; }
.pf-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.pf-step-q { padding: 0; font: 600 21px/1.4 var(--dx-font-display); margin-bottom: 8px; color: var(--dx-text); }
.pf-step-q small { display: block; font: 500 12px/1 var(--dx-font-body); color: var(--dx-dim); margin-bottom: 8px; }
.pf-step-q em { font-style: normal; font-size: 14px; color: var(--dx-mute); font-weight: 400; }
.pf-label { font-size: 13px; color: var(--dx-mute); }
.pf-input {
    width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--dx-text);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--dx-border); transition: border-color .3s, box-shadow .3s, background .3s;
}
.pf-input:focus { outline: none; border-color: rgba(139, 92, 246, .7); background: rgba(139, 92, 246, .05); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.pf-input::placeholder { color: var(--dx-dim); }
.pf-input[dir="ltr"] { text-align: right; }
.pf-textarea { resize: none; min-height: 130px; line-height: 1.8; }
.pf-step-pair { display: grid; gap: 16px; }
.pf-step-nav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pf-step:last-child .pf-step-nav { display: flex; }
.pf-step:last-child .pf-step-nav [data-step-prev] { visibility: hidden; }
.pf-steps-bar { display: none; height: 2px; background: var(--dx-border); border-radius: 2px; overflow: hidden; }
.pf-steps-bar span { display: block; height: 100%; background: var(--dx-grad); transform-origin: right; transform: scaleX(.333); transition: transform .6s var(--dx-ease); }
.pf-steps-on .pf-steps-bar { display: block; }
.pf-steps-on .pf-step { display: none; }
.pf-steps-on .pf-step.is-current { display: grid; animation: dx-step-in .6s var(--dx-ease) both; }
.pf-steps-on .pf-step-nav { display: flex; }
.pf-steps-on .pf-step:first-of-type .pf-step-nav { justify-content: flex-end; }
.pf-steps-on .pf-step:last-child .pf-step-nav [data-step-prev] { visibility: visible; }
.pf-step.is-invalid .pf-input { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .15); animation: dx-shake .4s; }
@keyframes dx-step-in { from { opacity: 0; transform: translateX(-20px); filter: blur(4px); } }
@keyframes dx-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.pf-flashes { position: fixed; top: calc(var(--pf-header-h) + 16px); inset-inline: 0; z-index: 85; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.pf-flash {
    pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 520px; width: 100%; padding: 14px 18px; border-radius: 16px;
    background: rgba(20, 20, 26, .85); border: 1px solid var(--dx-border-2); color: var(--dx-text);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: dx-toast .6s var(--dx-ease) both;
}
.pf-flash::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dx-blue); }
.pf-flash--success::before { background: #22c55e; }
.pf-flash--error::before { background: #f43f5e; }
.pf-flash-msg { flex: 1; font-size: 15px; font-weight: 500; }
.pf-flash-x { background: none; border: 0; color: var(--dx-mute); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes dx-toast { from { opacity: 0; transform: translateY(-12px); } }

/* 6 ─ Home ─────────────────────────────────────────────────────────── */
.dx-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 980px); display: flex; align-items: center; padding-block: 120px 80px; margin-top: -64px; }
.dx-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dx-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--dx-border) 1px, transparent 1px), linear-gradient(90deg, var(--dx-border) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.dx-beam {
    position: absolute; top: -30%; left: 50%; width: 140%; max-width: 1600px; height: 120%; transform: translateX(-50%);
    background: conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(139, 92, 246, .35) 47%, rgba(96, 165, 250, .25) 50%, rgba(139, 92, 246, .35) 53%, transparent 60%);
    filter: blur(40px); animation: dx-beam 9s var(--dx-ease) infinite alternate;
}
@keyframes dx-beam { from { opacity: .55; transform: translateX(-50%) scaleX(.9); } to { opacity: 1; transform: translateX(-50%) scaleX(1.1); } }
.dx-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.dx-orb--a { width: 420px; height: 420px; background: rgba(139, 92, 246, .28); top: 10%; inset-inline-start: -120px; }
.dx-orb--b { width: 360px; height: 360px; background: rgba(34, 211, 238, .14); bottom: 0; inset-inline-end: -100px; }
.dx-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dx-badge {
    display: inline-flex; align-items: center; gap: 10px; height: 36px; padding-inline: 8px 14px; border-radius: 999px;
    font-size: 13px; color: var(--dx-text-2); text-decoration: none;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--dx-border-2); backdrop-filter: blur(10px);
    transition: border-color .3s, background .3s;
}
.dx-badge:hover { border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .08); }
.dx-badge-dot { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #22c55e 30%, rgba(34, 197, 94, .2) 32%); }
.dx-badge-sep { width: 1px; height: 14px; background: var(--dx-border-2); }
.dx-badge-link { color: #c4b5fd; }
.dx-hero-title { margin: 28px 0 0; font-size: var(--dx-fs-display); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; max-width: 16ch; }
.dx-hero-lead { margin: 26px 0 0; max-width: 40rem; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.85; color: var(--dx-mute); }
.dx-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.dx-stats {
    margin: clamp(56px, 8vw, 88px) 0 0; width: 100%; max-width: 980px;
    display: grid; grid-template-columns: repeat(2, 1fr);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 900px) { .dx-stats { grid-template-columns: repeat(5, 1fr); } }
.dx-stats > div { padding: 22px 16px; border-inline-start: 1px solid var(--dx-border); }
.dx-stats > div:first-child { border-inline-start: 0; }
@media (max-width: 899px) { .dx-stats > div:nth-child(odd) { border-inline-start: 0; } .dx-stats > div:nth-child(n+3) { border-top: 1px solid var(--dx-border); } }
.dx-stats dd { margin: 0; font: 700 clamp(26px, 2.8vw, 36px)/1.15 var(--dx-font-display); background: linear-gradient(180deg, #fff, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-stats dt { margin-top: 6px; font-size: 13px; color: var(--dx-mute); }

/* Features (horizontal pinned track) */
.pf-hscroll { position: relative; padding-block: var(--dx-section); overflow: hidden; }
.pf-hscroll-track { display: grid; gap: 16px; padding-inline: var(--pf-gutter); }
.pf-hpanel { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding: clamp(24px, 2.6vw, 36px); min-height: 300px; }
.pf-hpanel--intro { padding-inline: 0; justify-content: flex-start; gap: 0; min-height: 0; }
.pf-hpanel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pf-hpanel-top svg {
    width: 52px; height: 52px; padding: 13px; border-radius: 14px; stroke-width: 1.6; color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(59, 130, 246, .08)); border: 1px solid rgba(139, 92, 246, .3);
    box-shadow: 0 0 30px -8px var(--dx-glow);
}
.pf-hpanel-num { font: 600 14px/1 var(--dx-font-body); color: var(--dx-dim); }
.pf-hpanel h3 { font-size: var(--dx-fs-h3); font-weight: 700; margin: 0 0 10px; }
.pf-hpanel p { margin: 0; color: var(--dx-mute); font-size: 16px; line-height: 1.8; }
.pf-hscroll-hint { display: none; margin-top: 36px; font-size: 14px; color: var(--dx-dim); }
@media (min-width: 900px) {
    .pf-hscroll.is-pinned { height: 100vh; padding-block: 0; display: flex; align-items: center; }
    .pf-hscroll-track { display: flex; gap: 20px; width: max-content; }
    .pf-hpanel { width: min(380px, 34vw); min-height: min(380px, 52vh); flex: none; }
    .pf-hpanel--intro { width: min(480px, 40vw); justify-content: center; }
    .pf-hscroll-hint { display: inline-block; }
}

/* Marquee */
.pf-marquee { padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--dx-border); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.pf-marquee-item { font: 700 clamp(36px, 6vw, 88px)/1.25 var(--dx-font-display); padding-inline: .35em; white-space: nowrap; color: var(--dx-text); }
.pf-marquee-item:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.pf-marquee-sep { font-size: clamp(20px, 2.6vw, 40px); color: var(--dx-violet); text-shadow: 0 0 20px var(--dx-violet); }

/* Legacy CTA (only when there is no footer section) */
.pf-cta { padding-block: clamp(40px, 6vw, 80px); }
.pf-cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 80px); border: 1px solid var(--dx-border); background: radial-gradient(80% 120% at 50% 0%, rgba(139, 92, 246, .25), transparent 60%), var(--dx-bg-2); }
.pf-cta-title { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.12; font-weight: 800; margin: 18px 0 0; max-width: 16ch; }
.pf-cta-foot { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .pf-cta-foot { grid-template-columns: 1fr auto; align-items: end; } }
.pf-cta-foot p { margin: 0; max-width: 32rem; font-size: 18px; line-height: 1.85; color: var(--dx-mute); }

/* 7 ─ Catalog ─────────────────────────────────────────────────────── */
.pf-catalog { position: relative; padding-block: var(--dx-section); }
.pf-catalog--page { padding-top: clamp(40px, 6vw, 80px); isolation: isolate; }
.pf-catalog--page::before { content: ""; position: absolute; top: -200px; left: 50%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 92, 246, .18), transparent); pointer-events: none; z-index: -1; }
.pf-cover { margin-bottom: clamp(40px, 6vw, 64px); }
.pf-cover-title { font-size: var(--dx-fs-display); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; margin: 20px 0 0; }
.pf-cover-meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 28px; }
.pf-cover-meta .pf-section-lead { margin: 0; }
.pf-cover-count { margin: 0; font-size: 15px; color: var(--dx-mute); }
.pf-cover-count strong { font: 700 40px/1 var(--dx-font-display); color: var(--dx-text); margin-inline-end: 6px; }
.pf-cover-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--dx-border); }
.pf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pill { height: 38px; display: inline-flex; align-items: center; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--dx-border); color: var(--dx-mute); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .3s, border-color .3s, background .3s; }
.pf-pill:hover { color: var(--dx-text); border-color: var(--dx-border-2); }
.pf-pill.is-active { color: #fff; border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .14); box-shadow: 0 0 20px -6px var(--dx-glow); }
.pf-view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--dx-border); background: var(--dx-surface); }
.pf-view-toggle button { height: 32px; padding-inline: 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--dx-mute); cursor: pointer; }
.pf-view-toggle button[aria-pressed="true"] { background: var(--dx-surface-2); color: #fff; }
.pf-empty { padding: 48px 0; color: var(--dx-mute); font-size: 17px; }

.pf-item { position: relative; }
.pf-item-link { position: relative; z-index: 2; display: grid; color: inherit; text-decoration: none; }
.pf-item-media { display: grid; place-items: center; overflow: hidden; background: #111114; color: var(--dx-dim); }
.pf-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--dx-ease), filter .6s; }
.pf-item-media svg { width: 40px; height: 40px; stroke-width: 1.2; }
.pf-item-title { font-family: var(--dx-font-display); font-weight: 700; color: var(--dx-text); }
.pf-item-cat { font-size: 13px; color: var(--dx-mute); }
.pf-item-price s { display: block; font-size: 13px; color: var(--dx-dim); }
.pf-item-price strong { font-family: var(--dx-font-display); font-weight: 600; color: var(--dx-text); }
.pf-item-dl { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #4ade80; text-decoration: none; }
.pf-item-dl svg { width: 15px; height: 15px; }

/* List rows */
.pf-items.is-list { border-top: 1px solid var(--dx-border); }
.is-list .pf-item { border-bottom: 1px solid var(--dx-border); transition: background .4s; }
.is-list .pf-item:hover { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .07), transparent); }
.is-list .pf-item-link { grid-template-columns: 40px 1fr auto 28px; grid-template-areas: "num title price arrow" "num cat price arrow"; align-items: center; column-gap: 20px; padding: 22px 8px; }
.is-list .pf-item-num { grid-area: num; font-size: 13px; color: var(--dx-dim); }
.is-list .pf-item-media, .is-list .pf-item-desc { display: none; }
.is-list .pf-item-title { grid-area: title; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.3; transition: transform .6s var(--dx-ease); }
.is-list .pf-item-cat { grid-area: cat; }
.is-list .pf-item-price { grid-area: price; text-align: left; }
.is-list .pf-item-price strong { font-size: 17px; }
.is-list .pf-item-arrow { grid-area: arrow; font-size: 20px; color: var(--dx-dim); transition: transform .5s var(--dx-ease), color .3s; }
.is-list .pf-item-dl { position: absolute; bottom: 6px; inset-inline-start: 68px; margin: 0; }
@media (hover: hover) {
    .is-list .pf-item-link:hover .pf-item-title { transform: translateX(-12px); }
    .is-list .pf-item-link:hover .pf-item-arrow { transform: translateX(-8px); color: #c4b5fd; }
}
@media (max-width: 639px) {
    .is-list .pf-item-link { grid-template-columns: 84px 1fr; grid-template-areas: "media title" "media cat" "media price"; column-gap: 16px; row-gap: 2px; }
    .is-list .pf-item-media { display: grid; grid-area: media; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--dx-border); }
    .is-list .pf-item-num, .is-list .pf-item-arrow { display: none; }
    .is-list .pf-item-title { font-size: 18px; }
    .is-list .pf-item-price { text-align: right; }
    .is-list .pf-item-dl { position: static; margin: 0 0 14px; }
}

/* Bento cards */
.pf-items.is-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pf-items.is-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .pf-items.is-bento { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
    .is-bento .pf-item:first-child { grid-column: span 2; grid-row: span 2; }
    .is-bento .pf-item:first-child .pf-item-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
    .is-bento .pf-item:first-child .pf-item-title { font-size: 30px; }
}
.is-bento .pf-item { display: flex; flex-direction: column; padding: 8px 8px 20px; }
.is-bento .pf-item-link { flex: 1; grid-template-columns: 1fr auto; grid-template-areas: "media media" "title price" "cat price" "desc desc"; grid-template-rows: auto auto auto 1fr; column-gap: 14px; align-content: start; }
.is-bento .pf-item:first-child .pf-item-link { display: flex; flex-direction: column; }
.is-bento .pf-item-num, .is-bento .pf-item-arrow { display: none; }
.is-bento .pf-item-media { grid-area: media; aspect-ratio: 16 / 10; border-radius: 14px; margin-bottom: 18px; border: 1px solid var(--dx-border); }
.is-bento .pf-item-media img { filter: saturate(.9) brightness(.92); }
.is-bento .pf-item:hover .pf-item-media img { transform: scale(1.04); filter: none; }
.is-bento .pf-item-title { grid-area: title; font-size: 19px; line-height: 1.45; padding-inline: 10px; }
.is-bento .pf-item-cat { grid-area: cat; padding-inline: 10px; }
.is-bento .pf-item-price { grid-area: price; padding-inline: 10px; text-align: left; }
.is-bento .pf-item-desc { grid-area: desc; padding: 10px 10px 0; color: var(--dx-mute); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-bento .pf-item-dl { margin-inline: 10px; }

.pf-preview { position: fixed; top: 0; left: 0; z-index: 60; width: 300px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.85); border: 1px solid var(--dx-border-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 60px -20px var(--dx-glow); }
.pf-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-talk-tab {
    position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 50; height: 46px; display: inline-flex; align-items: center; padding-inline: 20px;
    border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
    background: rgba(20, 20, 26, .75); border: 1px solid var(--dx-border-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 30px -10px var(--dx-glow);
}
.pf-talk-tab:hover { border-color: rgba(139, 92, 246, .6); }

/* 8 ─ Product detail ──────────────────────────────────────────────── */
.pf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--dx-dim); }
.pf-crumbs a { color: inherit; text-decoration: none; }
.pf-crumbs a:hover { color: var(--dx-text); }
.pf-crumbs [aria-current] { color: var(--dx-text-2); }
.pf-pdh { position: relative; isolation: isolate; padding-top: clamp(32px, 5vw, 64px); text-align: center; }
.pf-pdh::before { content: ""; position: absolute; top: -120px; left: 50%; width: 1000px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent); pointer-events: none; z-index: -1; }
.pf-pdh .pf-crumbs { justify-content: center; }
.pf-pdh-title { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 20px auto 0; max-width: 16ch; }
.pf-pdh-media {
    width: calc(100% - 2 * var(--pf-gutter)); max-width: 1100px; margin: clamp(40px, 6vw, 64px) auto 0;
    aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: #111114;
    border: 1px solid var(--dx-border-2); box-shadow: 0 40px 120px -30px rgba(139, 92, 246, .35), 0 0 0 8px rgba(255, 255, 255, .02);
}
.pf-pdh-media button { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.pf-pdh-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-pdh-media iframe { width: 100%; height: 100%; border: 0; }
.pf-pdh-empty { height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, .3), transparent 60%); }
.pf-pdh-empty span { font: 800 clamp(120px, 22vw, 300px)/1 var(--dx-font-display); background: var(--dx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pf-story { display: grid; gap: 40px; padding-block: var(--dx-section); }
@media (min-width: 1024px) { .pf-story { grid-template-columns: 340px 1fr; gap: 80px; align-items: start; } .pf-specs { position: sticky; top: calc(var(--pf-header-h) + 32px); } }
.pf-specs { padding: 8px 24px; border-radius: var(--dx-radius); background: var(--dx-surface); border: 1px solid var(--dx-border); }
.pf-specs dl { margin: 0; }
.pf-specs dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dx-border); }
.pf-specs dl > div:last-child { border-bottom: 0; }
.pf-specs dt { font-size: 14px; color: var(--dx-mute); }
.pf-specs dd { margin: 0; font-weight: 500; text-align: left; color: var(--dx-text); }
.pf-specs-price strong { font: 700 22px/1.2 var(--dx-font-display); }
.pf-specs-price s { display: block; font-size: 13px; color: var(--dx-dim); font-weight: 400; }
.pf-specs-thumb { display: block; width: 100%; max-width: 320px; margin: 4px 0 20px; padding: 0; border: 1px solid var(--dx-border); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; cursor: zoom-in; }
.pf-specs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-story-lead { margin: 0; font: 600 clamp(22px, 2.4vw, 32px)/1.6 var(--dx-font-display); color: var(--dx-text); }
.pf-prose { margin-top: 36px; font-size: 18px; line-height: 2; color: var(--dx-mute); white-space: pre-wrap; max-width: 44rem; }

.pf-related { padding-bottom: var(--dx-section); }
.pf-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.pf-related-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--pf-gutter), calc((100vw - var(--pf-max)) / 2 + var(--pf-gutter))); padding-bottom: 8px; }
.pf-related-row::-webkit-scrollbar { display: none; }
.pf-rcard { flex: none; width: min(320px, 78vw); scroll-snap-align: start; padding: 8px 8px 18px; color: inherit; text-decoration: none; display: grid; gap: 4px; }
.pf-rcard-media { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #111114; margin-bottom: 14px; color: var(--dx-dim); border: 1px solid var(--dx-border); }
.pf-rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--dx-ease); }
.pf-rcard:hover .pf-rcard-media img { transform: scale(1.05); }
.pf-rcard-title { font: 700 18px/1.4 var(--dx-font-display); padding-inline: 8px; }
.pf-rcard-price { font-size: 14px; color: var(--dx-mute); padding-inline: 8px; }

.pf-next { position: relative; display: block; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); color: var(--dx-text); text-decoration: none; border-top: 1px solid var(--dx-border); text-align: center; }
.pf-next::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 100%, rgba(139, 92, 246, .25), transparent 70%); opacity: 0; transition: opacity .6s; }
.pf-next small { position: relative; display: block; font-size: 14px; color: var(--dx-mute); margin-bottom: 14px; }
.pf-next strong { position: relative; display: inline-block; font: 800 clamp(36px, 6.4vw, 96px)/1.1 var(--dx-font-display); letter-spacing: -.03em; transition: transform .7s var(--dx-ease); }
.pf-next:hover::before { opacity: 1; }
.pf-next:hover strong { transform: translateY(-6px); background: var(--dx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-pd-back { padding-bottom: 64px; text-align: center; }

.pf-buybar { position: fixed; bottom: 16px; inset-inline: 0; z-index: 55; padding-inline: 16px; transform: translateY(160%); transition: transform .7s var(--dx-ease); pointer-events: none; }
.pf-buybar.is-visible { transform: none; }
.pf-buybar-inner {
    pointer-events: auto; max-width: 720px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px; padding-inline-start: 22px; border-radius: 999px; color: var(--dx-text);
    background: rgba(18, 18, 24, .75); border: 1px solid var(--dx-border-2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -20px var(--dx-glow);
}
.pf-buybar-price { min-width: 0; line-height: 1.3; }
.pf-buybar-price small { display: block; font-size: 12px; color: var(--dx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-buybar-price strong { font: 700 17px/1.2 var(--dx-font-display); }
.pf-buybar-price s { font-size: 13px; color: var(--dx-dim); }
.pf-buybar-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 480px) { .pf-buybar .pf-btn--ghost-dark { display: none; } .pf-buybar-inner { border-radius: 22px; } }

.pf-modal:not(.hidden) { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .85); backdrop-filter: blur(10px); }
.pf-modal-box { position: relative; max-width: 1100px; width: 100%; }
.pf-modal-box img { display: block; max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 16px; object-fit: contain; border: 1px solid var(--dx-border-2); }
.pf-modal-close { position: absolute; top: -50px; inset-inline-end: 0; height: 38px; padding-inline: 16px; border-radius: 999px; cursor: pointer; background: var(--dx-text); color: #09090b; border: 0; font: 600 14px/1 var(--dx-font-body); }

/* 9 ─ Footer ──────────────────────────────────────────────────────── */
.pf-footer { position: relative; overflow: hidden; isolation: isolate; padding-top: var(--dx-section); border-top: 1px solid var(--dx-border); }
.pf-footer::before { content: ""; position: absolute; z-index: -1; top: -280px; left: 50%; width: 1200px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 92, 246, .3), rgba(59, 130, 246, .08) 50%, transparent); pointer-events: none; }
.pf-close { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pf-close-title { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; margin: 24px 0 0; max-width: 15ch; }
.pf-close-foot { display: flex; flex-direction: column; align-items: center; gap: 32px; margin-top: 28px; }
.pf-close-foot p { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.85; color: var(--dx-mute); }
.pf-footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: clamp(80px, 10vw, 128px); padding-block: 40px; border-top: 1px solid var(--dx-border); }
.pf-footer-cols span { display: block; font-size: 13px; color: var(--dx-dim); margin-bottom: 8px; }
.pf-footer-cols a, .pf-footer-cols p { color: var(--dx-text-2); text-decoration: none; font-size: 15px; margin: 0; transition: color .3s; }
.pf-footer-cols a:hover { color: #fff; }
.pf-footer-cols [dir="ltr"] { display: inline-block; }
.pf-footer-social { display: flex; flex-wrap: wrap; gap: 14px; }
.pf-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--dx-border); font-size: 13px; color: var(--dx-dim); }
.pf-footer-bottom a { color: inherit; text-decoration: none; }
.pf-footer-bottom a:hover { color: var(--dx-text); }
.pf-footer-wordmark {
    font: 800 clamp(80px, 21vw, 300px)/.85 var(--dx-font-display); letter-spacing: -.04em; white-space: nowrap; text-align: center; user-select: none; margin-bottom: -.1em;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 10 ─ Utilities & motion ─────────────────────────────────────────── */
.pf-wipe { position: fixed; inset: 0; z-index: 300; pointer-events: none; transform: scaleY(0); transform-origin: bottom; background: var(--dx-bg); box-shadow: 0 -2px 0 rgba(139, 92, 246, .6); }
.pf-leaving .pf-wipe { transform: scaleY(1); transition: transform .5s var(--dx-ease); }
.pf-entering .pf-wipe { transform: scaleY(1); transform-origin: top; animation: dx-wipe-out .7s .05s var(--dx-ease) forwards; }
@keyframes dx-wipe-out { to { transform: scaleY(0); } }

.pf-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .pf-cursor-on .pf-cursor {
        display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 350; pointer-events: none;
        width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
        transition: width .4s var(--dx-ease), height .4s var(--dx-ease), margin .4s var(--dx-ease);
    }
    .pf-cursor span { opacity: 0; font-size: 12px; font-weight: 600; color: #09090b; white-space: nowrap; transition: opacity .2s; }
    .pf-cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
    .pf-cursor.is-label { width: 76px; height: 76px; margin: -38px 0 0 -38px; mix-blend-mode: normal; }
    .pf-cursor.is-label span { opacity: 1; }
    .pf-cursor.is-hidden { width: 0; height: 0; margin: 0; }
}

.pf-js [data-reveal], .pf-js [data-hero-in] { opacity: 0; }
.pf-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.pf-word > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .pf-js [data-reveal], .pf-js [data-hero-in] { opacity: 1 !important; }
    .pf-wipe, .pf-cursor, .dx-beam { display: none !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 11 ─ Components v5: bento features, CTA card, menu card, tilt ───── */
.dx-section { position: relative; isolation: isolate; padding-block: var(--dx-section); }
.dx-section::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: min(1100px, 100%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), rgba(34, 211, 238, .4), transparent); }
.dx-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.dx-head .pf-section-lead { margin-inline: auto; }

.dx-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .dx-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .dx-bento { grid-template-columns: repeat(3, 1fr); }
    .dx-feature:nth-child(4n+1), .dx-feature:nth-child(4n+4) { grid-column: span 2; }
}
.dx-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; min-height: 280px; padding: clamp(24px, 2.6vw, 34px); overflow: hidden; }
.dx-feature-art {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000, transparent 70%);
}
.dx-feature:nth-child(4n+1) .dx-feature-art, .dx-feature:nth-child(4n+4) .dx-feature-art {
    background-image: linear-gradient(var(--dx-border) 1px, transparent 1px), linear-gradient(90deg, var(--dx-border) 1px, transparent 1px);
    background-size: 32px 32px; opacity: 1;
}
.dx-feature-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dx-feature-icon {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, .24), rgba(59, 130, 246, .08)); border: 1px solid rgba(139, 92, 246, .35);
    box-shadow: 0 0 34px -8px var(--dx-glow), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: transform .6s var(--dx-ease), box-shadow .6s var(--dx-ease);
}
.dx-feature-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.dx-feature:hover .dx-feature-icon { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 0 50px -6px var(--dx-glow), inset 0 1px 0 rgba(255, 255, 255, .15); }
.dx-feature-num { font: 600 13px/1 var(--dx-font-body); color: var(--dx-dim); }
.dx-feature h3 { font-size: var(--dx-fs-h3); font-weight: 700; margin: 0 0 10px; }
.dx-feature p { margin: 0; color: var(--dx-mute); font-size: 16px; line-height: 1.8; max-width: 34rem; }

/* Home products use the same spotlight cards */
.pf-catalog--home .pf-section-head--row { margin-bottom: clamp(40px, 5vw, 56px); }

/* Footer closing CTA as a glass spotlight card */
.dx-cta { width: 100%; padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px); border-radius: 32px !important; overflow: hidden;
    background: radial-gradient(70% 100% at 50% 0%, rgba(139, 92, 246, .18), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dx-cta .pf-close-title { position: relative; z-index: 2; }
.dx-cta .pf-close-foot, .dx-cta .pf-eyebrow { position: relative; z-index: 2; }

/* Menu side card */
.dx-glass-card { padding: 28px; background: rgba(255, 255, 255, .03) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dx-glass-card > * { position: relative; z-index: 2; }

/* Product specs card content above the spotlight layer */
.pf-specs > * { position: relative; z-index: 2; }

/* 3D tilt targets */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* 12 ─ QA polish ─────────────────────────────────────────────────── */
/* Lenis core styles (inlined: the CDN stylesheet is blocked by the site's CSP) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Mobile: decorative glows were widening the layout viewport (page slid sideways) */
html, body.pf-body { overflow-x: clip; }
.pf-pdh, .pf-catalog--page, .pf-footer, .dx-hero, .dx-section { overflow-x: clip; }

/* Hero stats: no orphan cell on phones */
@media (max-width: 899px) {
    .dx-stats > div { border-inline-start: 0 !important; border-top: 1px solid var(--dx-border); }
    .dx-stats > div:nth-child(-n+2) { border-top: 0; }
    .dx-stats > div:nth-child(even) { border-inline-start: 1px solid var(--dx-border) !important; }
    .dx-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Product cards: one clean stack — media, title, category, description, price */
.is-bento .pf-item-link { grid-template-columns: 1fr; grid-template-areas: "media" "title" "cat" "desc" "price"; grid-template-rows: auto auto auto 1fr auto; }
.is-bento .pf-item-cat { margin-top: 4px; }
.is-bento .pf-item-price { text-align: right; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dx-border); margin-inline: 10px; padding-inline: 0; display: flex; align-items: baseline; gap: 10px; }
.is-bento .pf-item-price strong { font-size: 16px; font-weight: 600; color: var(--dx-text); }
.is-bento .pf-item-price s { display: inline; }
/* Home: uniform grid (the oversized first card is for the catalog page only) */
@media (min-width: 1024px) {
    .is-home .pf-item:first-child { grid-column: auto; grid-row: auto; }
    .is-home .pf-item:first-child .pf-item-media { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
    .is-home .pf-item:first-child .pf-item-title { font-size: 19px; }
    .is-home .pf-item:first-child .pf-item-link { display: grid; }
}
.pf-specs-price strong { font-size: 18px; }
.pf-talk-tab { z-index: 56; }
/* Keep price last when the large first card switches to flex layout */
.is-bento .pf-item-desc { order: 3; }
.is-bento .pf-item-price { order: 4; }
