/* Pixel3DLab tool-first home page. Depends on the existing theme variables and global a11y widget. */
:root {
    --pxh-accent: #3ea0ff;
    --pxh-cyan: #55e1ff;
    --pxh-violet: #8586ff;
    --pxh-green: #58d7a6;
    --pxh-line: var(--pl-line, rgba(100,116,139,.18));
    --pxh-surface: var(--pl-glass, rgba(255,255,255,.68));
    --pxh-surface-strong: var(--pl-glass-strong, rgba(255,255,255,.86));
}

html { scroll-padding-top: 90px; }
body.pxh-home-page { padding-bottom: 0; }
body.pxh-home-page .top-bar { position: fixed; inset: 0 0 auto; width: 100%; }
body.pxh-home-page .site-footer { display: none !important; }
body.pxh-home-page .logo-container { top: 100%; }
body.pxh-home-page .desktop-nav .dropdown:focus-within .dropdown-content { display: flex; opacity: 1; transform: translateY(0); }

.pxh-home { position: relative; isolation: isolate; padding-top: 76px; overflow: clip; color: var(--text-main); background: var(--bg-color); }
.pxh-home * { box-sizing: border-box; }
.pxh-container { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.pxh-section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.pxh-home h1, .pxh-home h2, .pxh-home h3, .pxh-home p { margin-top: 0; }
.pxh-home a { -webkit-tap-highlight-color: transparent; }

.pxh-hero { position: relative; display: flex; align-items: center; min-height: min(760px, calc(100svh - 76px)); isolation: isolate; padding: clamp(70px, 9vw, 124px) 0 clamp(70px, 8vw, 104px); color: #f8fafc; background: radial-gradient(circle at 74% 18%, rgba(62,160,255,.18), transparent 27%), radial-gradient(circle at 12% 82%, rgba(133,134,255,.14), transparent 31%), #08111f; border-bottom: 1px solid rgba(255,255,255,.07); }
.pxh-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pxh-cyan), var(--pxh-violet), transparent); opacity: .7; }
.pxh-hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .42; background-image: linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 100%); }
.pxh-hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(28px, 5vw, 74px); align-items: center; }
.pxh-hero-copy { position: relative; z-index: 2; }
.pxh-kicker { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(255,255,255,.045); color: rgba(255,255,255,.72); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.pxh-kicker-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--pxh-cyan); box-shadow: 0 0 13px rgba(85,225,255,.6); }
.pxh-kicker-sep { color: rgba(255,255,255,.32); }
.pxh-hero h1 { margin: 24px 0 21px; max-width: 720px; font-size: clamp(44px, 6.2vw, 78px); font-weight: 830; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.pxh-hero h1 span { color: var(--pxh-cyan); }
.pxh-hero-lead { max-width: 650px; margin-bottom: 0; color: rgba(241,245,249,.74); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; }
.pxh-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.pxh-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.pxh-button svg { width: 17px; height: 17px; }
.pxh-button:hover { transform: translateY(-2px); }
.pxh-button:focus-visible, .pxh-text-link:focus-visible, .pxh-tool-card:focus-visible, .pxh-download-button:focus-visible, .pxh-footer a:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 4px; }
.pxh-button-primary { color: #061522; background: var(--pxh-cyan); border-color: rgba(255,255,255,.2); }
.pxh-button-primary:hover { background: #8aeeff; }
.pxh-button-secondary { color: #fff; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.15); }
.pxh-button-secondary:hover { background: rgba(255,255,255,.10); }
.pxh-hero-meta { display: flex; flex-wrap: wrap; gap: 13px 18px; margin-top: 29px; color: rgba(255,255,255,.55); font-size: 11px; }
.pxh-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pxh-hero-meta svg { width: 14px; height: 14px; color: var(--pxh-green); }

.pxh-terminal-card { position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(85,225,255,.18); border-radius: 16px; background: rgba(4,11,21,.82); box-shadow: 0 28px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.045); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.pxh-terminal-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(130deg, rgba(85,225,255,.06), transparent 35%, rgba(133,134,255,.06)); }
.pxh-terminal-top { position: relative; z-index: 1; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: rgba(255,255,255,.55); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-terminal-dots { display: flex; gap: 5px; }
.pxh-terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff7777; }
.pxh-terminal-dots i:nth-child(2) { background: #ffd166; }
.pxh-terminal-dots i:nth-child(3) { background: #5ee6a8; }
.pxh-terminal-file { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; }
.pxh-terminal-file svg { width: 14px; height: 14px; color: var(--pxh-cyan); }
.pxh-terminal-state { display: inline-flex; align-items: center; gap: 5px; color: #aaf0d1; font-size: 9px; }
.pxh-terminal-state span { width: 5px; height: 5px; border-radius: 50%; background: var(--pxh-green); }
.pxh-terminal-body { position: relative; z-index: 1; padding: 21px 16px 24px; font: clamp(10px, 1vw, 12px)/2.1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-terminal-line { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 13px; min-height: 25px; }
.pxh-terminal-line > span { color: rgba(255,255,255,.22); text-align: right; user-select: none; }
.pxh-terminal-line code { overflow-wrap: anywhere; color: rgba(226,232,240,.83); }
.pxh-terminal-line b { color: #7dd3fc; font-weight: 600; }
.pxh-terminal-line i { color: #86efac; font-style: normal; }
.pxh-terminal-line em { color: #c4b5fd; font-style: normal; }
.pxh-terminal-line strong { color: #f9a8d4; font-weight: 500; }
.pxh-cursor { display: inline-block; width: 6px; height: 13px; margin-left: 5px; vertical-align: -2px; background: var(--pxh-cyan); animation: pxhBlink 1.1s steps(2, end) infinite; }
@keyframes pxhBlink { 50% { opacity: 0; } }
.pxh-terminal-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.075); color: rgba(255,255,255,.34); font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; }
.pxh-scroll-note { position: absolute; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 9px; transform: translateX(-50%); color: rgba(255,255,255,.43); text-decoration: none; text-transform: uppercase; letter-spacing: .13em; white-space: nowrap; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-scroll-note span { width: 6px; height: 6px; border: 1px solid var(--pxh-cyan); border-radius: 50%; box-shadow: 0 0 13px rgba(85,225,255,.4); }

.pxh-section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: var(--text-muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; }
.pxh-section-label > span { color: var(--pxh-accent); }
.pxh-intro { background: var(--bg-color); }
.pxh-intro-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 46px; }
.pxh-intro-grid > .pxh-section-label { align-self: start; padding-top: 8px; }
.pxh-intro-main h2, .pxh-section-heading h2, .pxh-code-section-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.pxh-intro-main h2 span, .pxh-code-section-copy h2 span { color: var(--pxh-accent); }
.pxh-intro-main > p { max-width: 790px; margin-bottom: 0; color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.pxh-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-top: 30px; }
.pxh-feature { display: flex; align-items: flex-start; gap: 11px; padding: 15px 13px; border: 1px solid var(--pxh-line); border-radius: 11px; background: var(--pxh-surface); }
.pxh-feature-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid rgba(62,160,255,.2); border-radius: 9px; color: var(--pxh-accent); background: rgba(62,160,255,.07); }
.pxh-feature-icon svg { width: 16px; height: 16px; }
.pxh-feature strong, .pxh-feature small { display: block; }
.pxh-feature strong { margin: 1px 0 4px; font-size: 12px; }
.pxh-feature small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.pxh-tools { border-top: 1px solid var(--pxh-line); border-bottom: 1px solid var(--pxh-line); background: linear-gradient(180deg, rgba(62,160,255,.035), transparent 54%); }
.pxh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 33px; }
.pxh-section-heading h2 { margin-bottom: 0; }
.pxh-section-heading > p { max-width: 390px; margin: 0 0 3px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.pxh-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.pxh-tool-card { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 21px; overflow: hidden; border: 1px solid var(--pxh-line); border-radius: 13px; background: var(--pxh-surface); color: var(--text-main); text-decoration: none; box-shadow: 0 10px 28px rgba(15,23,42,.025); transition: border-color .22s ease, transform .22s ease, background .22s ease, box-shadow .22s ease; transition-delay: 0s; }
.pxh-tool-card:hover { transform: translateY(-4px); border-color: rgba(62,160,255,.42); background: var(--pxh-surface-strong); box-shadow: 0 20px 45px rgba(15,23,42,.09); }
.pxh-tool-card::after { content: ""; position: absolute; width: 58px; height: 58px; right: 0; bottom: 0; border-right: 2px solid rgba(85,225,255,.48); border-bottom: 2px solid rgba(85,225,255,.48); border-bottom-right-radius: 12px; opacity: .68; transition: width .25s ease, height .25s ease; pointer-events: none; }
.pxh-tool-card:hover::after { width: 75px; height: 75px; }
.pxh-tool-number { position: absolute; top: 17px; right: 19px; color: var(--text-muted); opacity: .58; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-tool-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 17px; border: 1px solid rgba(62,160,255,.2); border-radius: 11px; background: rgba(62,160,255,.08); color: var(--pxh-accent); }
.pxh-tool-icon svg { width: 20px; height: 20px; }
.pxh-tool-tag { align-self: flex-start; margin-bottom: 8px; padding: 4px 7px; border: 1px solid var(--pxh-line); border-radius: 5px; color: var(--text-muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.pxh-tool-card > strong { margin-bottom: 7px; font-size: 16px; letter-spacing: -.02em; }
.pxh-tool-description { flex: 1; color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.pxh-tool-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 21px; color: var(--pxh-accent); font-size: 11px; font-weight: 750; }
.pxh-tool-link svg { width: 15px; height: 15px; }

.pxh-code-section { overflow: hidden; background: radial-gradient(circle at 12% 42%, rgba(133,134,255,.075), transparent 30%), var(--bg-color); }
.pxh-code-section-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.pxh-code-section-copy h2 { margin-bottom: 17px; }
.pxh-code-section-copy > p { max-width: 490px; margin-bottom: 22px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.pxh-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--pxh-accent); font-size: 13px; font-weight: 750; text-decoration: none; }
.pxh-text-link svg { width: 17px; height: 17px; }
.pxh-code-steps { display: grid; gap: 10px; }
.pxh-code-steps article { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--pxh-line); border-radius: 12px; background: var(--pxh-surface); }
.pxh-code-steps article > span { color: var(--pxh-accent); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-code-steps article strong { display: block; margin-bottom: 5px; font-size: 14px; }
.pxh-code-steps article p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.pxh-code-steps article > svg { width: 20px; height: 20px; color: var(--pxh-cyan); }

.pxh-downloads { border-top: 1px solid var(--pxh-line); background: linear-gradient(180deg, rgba(85,225,255,.025), transparent 65%); }
.pxh-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.pxh-download-card { display: flex; flex-direction: column; min-height: 245px; padding: 22px; border: 1px solid var(--pxh-line); border-radius: 13px; background: var(--pxh-surface); }
.pxh-download-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pxh-download-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--pxh-accent); background: rgba(62,160,255,.08); border: 1px solid rgba(62,160,255,.2); }
.pxh-download-icon svg { width: 20px; height: 20px; }
.pxh-download-platform { padding: 5px 8px; border: 1px solid var(--pxh-line); border-radius: 6px; color: var(--text-muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-download-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.pxh-download-card p { flex: 1; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.pxh-download-version { margin-top: 13px; color: var(--text-muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pxh-download-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; margin-top: 19px; padding: 10px 13px; border-radius: 9px; color: #071624; background: var(--pxh-cyan); text-align: center; text-decoration: none; font-size: 12px; font-weight: 800; }
.pxh-download-button svg { width: 16px; height: 16px; }
.pxh-download-button.is-disabled { color: var(--text-muted); border: 1px dashed var(--pxh-line); background: transparent; cursor: not-allowed; }
.pxh-download-note { display: flex; align-items: flex-start; gap: 8px; margin: 17px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.pxh-download-note svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--pxh-green); margin-top: 1px; }
.pxh-download-empty { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px dashed var(--pxh-line); border-radius: 12px; background: var(--pxh-surface); }
.pxh-download-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid var(--pxh-line); border-radius: 12px; color: var(--pxh-accent); }
.pxh-download-empty-icon svg { width: 22px; height: 22px; }
.pxh-download-empty h3 { margin: 0 0 6px; font-size: 15px; }
.pxh-download-empty p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.pxh-download-empty code { padding: 2px 5px; border: 1px solid var(--pxh-line); border-radius: 4px; font-size: 11px; }

.pxh-community { padding-top: 20px; padding-bottom: clamp(64px, 8vw, 100px); }
.pxh-community-panel { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 23px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--pxh-line); border-radius: 16px; background: linear-gradient(110deg, rgba(62,160,255,.09), rgba(133,134,255,.045) 55%, var(--pxh-surface)); }
.pxh-community-symbol { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(85,225,255,.23); border-radius: 15px; color: var(--pxh-cyan); background: rgba(62,160,255,.08); }
.pxh-community-symbol svg { width: 28px; height: 28px; }
.pxh-community-copy .pxh-section-label { margin-bottom: 8px; }
.pxh-community-copy h2 { margin: 0 0 7px; font-size: clamp(21px, 3vw, 30px); letter-spacing: -.035em; }
.pxh-community-copy p { max-width: 580px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }

.pxh-footer { position: relative; z-index: 1; padding: 52px 0 24px; color: rgba(226,232,240,.73); background: #08111f; border-top: 1px solid rgba(255,255,255,.08); }
.pxh-footer-main { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(110px, .7fr)); gap: 32px; padding-bottom: 38px; }
.pxh-footer-brand { max-width: 330px; }
.pxh-footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.pxh-footer-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(85,225,255,.22); border-radius: 9px; color: var(--pxh-cyan); background: rgba(62,160,255,.1); }
.pxh-footer-logo-mark svg { width: 18px; height: 18px; }
.pxh-footer-brand p { margin: 0; color: rgba(226,232,240,.48); font-size: 12px; line-height: 1.8; }
.pxh-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.pxh-footer-col strong { margin-bottom: 3px; color: rgba(255,255,255,.86); font-size: 12px; }
.pxh-footer-col a { color: rgba(226,232,240,.52); text-decoration: none; font-size: 12px; transition: color .2s ease; }
.pxh-footer-col a:hover { color: var(--pxh-cyan); }
.pxh-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(226,232,240,.4); font-size: 10px; }
.pxh-footer-bottom a { color: rgba(226,232,240,.64); text-decoration: none; }
.pxh-footer-status { display: inline-flex; align-items: center; gap: 7px; }
.pxh-footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pxh-green); }

.pxh-reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.25,1); transition-delay: calc(var(--pxh-card-index, 0) * 45ms); }
.pxh-reveal.is-visible { opacity: 1; transform: none; }
body.a11y-no-animations .pxh-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.a11y-no-animations .pxh-code-fragment { opacity: .7 !important; transform: none !important; transition: none !important; }
body.a11y-no-animations .pxh-cursor { animation: none !important; opacity: 1 !important; }
body.a11y-contrast .pxh-hero { background: #000 !important; }
body.a11y-contrast .pxh-terminal-card { border: 2px solid #ff0 !important; }
body.a11y-contrast .pxh-tool-card, body.a11y-contrast .pxh-download-card, body.a11y-contrast .pxh-feature, body.a11y-contrast .pxh-code-steps article { border: 2px solid #ff0 !important; }
body.a11y-contrast .pxh-button-primary, body.a11y-contrast .pxh-download-button:not(.is-disabled) { background: #ff0 !important; color: #000 !important; }
body.a11y-highlight-links .pxh-home a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-decoration-color: #ffeb3b !important; }
body.a11y-highlight-links .pxh-button, body.a11y-highlight-links .pxh-download-button { outline: 2px solid #ffeb3b; outline-offset: 2px; }

@media (max-width: 1000px) {
    .pxh-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 26px; }
    .pxh-hero h1 { font-size: clamp(42px, 6vw, 61px); }
    .pxh-tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body.pxh-home-page .top-bar { height: 64px; padding-left: 12px; padding-right: 12px; }
    body.pxh-home-page .logo-container { position: relative; left: auto; top: auto; transform: none; padding-top: 0; }
    body.pxh-home-page .logo-container img { height: 54px; }
    .pxh-home { padding-top: 64px; }
    .pxh-container { width: min(100% - 32px, 620px); }
    .pxh-hero { min-height: auto; padding: 68px 0 70px; }
    .pxh-hero-layout { grid-template-columns: minmax(0,1fr); gap: 35px; }
    .pxh-hero h1 { margin-top: 20px; font-size: clamp(42px, 12vw, 60px); }
    .pxh-hero-lead { font-size: 15px; }
    .pxh-terminal-card { transform: none; }
    .pxh-terminal-body { padding: 16px 12px 18px; font-size: 10px; }
    .pxh-terminal-top { grid-template-columns: 38px minmax(0,1fr) auto; padding-inline: 11px; }
    .pxh-terminal-bottom { font-size: 7px; }
    .pxh-scroll-note { bottom: 16px; font-size: 8px; }
    .pxh-section { padding: 62px 0; }
    .pxh-intro-grid { grid-template-columns: 1fr; gap: 20px; }
    .pxh-intro-grid > .pxh-section-label { padding: 0; }
    .pxh-intro-main h2, .pxh-section-heading h2, .pxh-code-section-copy h2 { font-size: clamp(34px, 9vw, 46px); }
    .pxh-feature-row { grid-template-columns: 1fr; }
    .pxh-section-heading { display: block; margin-bottom: 25px; }
    .pxh-section-heading > p { margin-top: 14px; max-width: 620px; }
    .pxh-tool-grid { grid-template-columns: 1fr; }
    .pxh-tool-card { min-height: 210px; }
    .pxh-code-section-grid { grid-template-columns: 1fr; gap: 27px; }
    .pxh-code-steps article { padding: 15px; gap: 11px; }
    .pxh-download-grid { grid-template-columns: 1fr; }
    .pxh-download-empty { align-items: flex-start; padding: 18px; }
    .pxh-community { padding-top: 0; }
    .pxh-community-panel { grid-template-columns: 48px minmax(0,1fr); gap: 15px; padding: 21px; }
    .pxh-community-symbol { width: 46px; height: 46px; border-radius: 12px; }
    .pxh-community-symbol svg { width: 22px; height: 22px; }
    .pxh-community-panel > .pxh-button { grid-column: 1 / -1; justify-self: start; }
    .pxh-footer { padding: 40px 0 100px; }
    .pxh-footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 20px; }
    .pxh-footer-brand { grid-column: 1 / -1; max-width: 100%; }
    .pxh-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
    .pxh-container { width: calc(100% - 26px); }
    .pxh-kicker { font-size: 8px; letter-spacing: .10em; }
    .pxh-hero-actions { flex-direction: column; align-items: stretch; }
    .pxh-button { width: 100%; }
    .pxh-hero-meta { flex-direction: column; gap: 9px; }
    .pxh-footer-main { gap: 26px 14px; }
    .pxh-footer-col a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .pxh-reveal { opacity: 1; transform: none; transition: none; }
    .pxh-button, .pxh-tool-card, .pxh-code-fragment, .pxh-cursor { transition: none !important; animation: none !important; }
    .pxh-cursor { opacity: 1; }
}
@media (min-width: 921px) {
    body.pxh-home-page .a11y-widget-btn { bottom: 22px; }
    body.pxh-home-page .a11y-panel { bottom: 88px; }
}


/* ============================================================
   PIXEL3DLAB / CONTINUOUS SOURCE-CODE PARALLAX
   Three long source documents form one background field behind
   all content. The documents stay left-aligned and never become
   cards or foreground windows.
   ============================================================ */
.pxh-home {
    position: relative;
    isolation: isolate;
    --pxh-surface: rgba(255, 255, 255, .39);
    --pxh-surface-strong: rgba(255, 255, 255, .53);
}
[data-theme="dark"] .pxh-home {
    --pxh-surface: rgba(10, 21, 36, .40);
    --pxh-surface-strong: rgba(10, 21, 36, .55);
}
.pxh-code-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    contain: paint;
}
.pxh-code-plane {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    transform: translate3d(0, var(--pxh-plane-shift, 0px), 0);
    transform-origin: 50% 0;
    will-change: transform;
    pointer-events: none;
}
/* The full PHP/HTML page is the clearest and longest layer. */
.pxh-code-plane-far { z-index: 1; opacity: .92; filter: none; }
/* The CSS file drifts at a different depth and is less prominent. */
.pxh-code-plane-mid { z-index: 2; opacity: .34; }
/* JavaScript forms the faintest near layer, adding depth without noise. */
.pxh-code-plane-near { z-index: 3; opacity: .22; filter: none; }
.pxh-bg-code {
    position: absolute;
    display: block;
    width: min(96vw, 1480px);
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: rgba(49, 91, 137, .68);
    text-align: left;
    font: clamp(10px, .78vw, 11.5px)/1.58 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0;
    white-space: pre;
    text-shadow: 0 0 15px rgba(62,160,255,.045);
    tab-size: 4;
}
[data-theme="dark"] .pxh-bg-code { color: rgba(171, 203, 235, .66); }
.pxh-bg-code-document { left: 0; padding-left: clamp(12px, 2vw, 30px); }
.pxh-source-mixed { top: 0; }
.pxh-source-css { top: 5.5%; left: clamp(24px, 5vw, 76px); }
.pxh-source-js { top: 13%; left: clamp(12px, 2.8vw, 42px); }
.pxh-bg-line {
    display: block;
    min-height: 1.82em;
    opacity: .30;
    transition: opacity .34s cubic-bezier(.22,.61,.36,1), text-shadow .34s ease;
}
.pxh-bg-text { display: inline; white-space: pre; }
.pxh-bg-line.is-lit { opacity: .94; text-shadow: 0 0 15px rgba(85,225,255,.13); }
.pxh-bg-ln {
    display: inline-block;
    width: 38px;
    margin-right: 17px;
    color: rgba(62,160,255,.45);
    text-align: right;
    user-select: none;
}
[data-theme="dark"] .pxh-bg-ln { color: rgba(139,233,253,.42); }
.pxh-lang-php .pxh-bg-text { color: rgba(96, 130, 202, .83); }
.pxh-lang-html .pxh-bg-text { color: rgba(46, 133, 171, .82); }
.pxh-lang-css .pxh-bg-text { color: rgba(126, 101, 181, .84); }
.pxh-lang-js .pxh-bg-text { color: rgba(49, 137, 115, .84); }
.pxh-bg-line.is-comment .pxh-bg-text { color: rgba(87, 148, 128, .64); }
[data-theme="dark"] .pxh-lang-php .pxh-bg-text { color: rgba(160, 184, 255, .86); }
[data-theme="dark"] .pxh-lang-html .pxh-bg-text { color: rgba(125, 211, 252, .86); }
[data-theme="dark"] .pxh-lang-css .pxh-bg-text { color: rgba(196, 181, 253, .86); }
[data-theme="dark"] .pxh-lang-js .pxh-bg-text { color: rgba(134, 239, 172, .83); }
[data-theme="dark"] .pxh-bg-line.is-comment .pxh-bg-text { color: rgba(167, 243, 208, .59); }

/* The front page remains above the code, with transparent glass surfaces. */
.pxh-home > section, .pxh-home > footer { position: relative; z-index: 1; }
.pxh-container { position: relative; z-index: 2; }
.pxh-hero {
    background:
        radial-gradient(circle at 74% 18%, rgba(62,160,255,.16), transparent 27%),
        radial-gradient(circle at 12% 82%, rgba(133,134,255,.12), transparent 31%),
        linear-gradient(110deg, rgba(8,17,31,.82), rgba(8,17,31,.65));
}
.pxh-intro { background: transparent !important; }
.pxh-tools { background: linear-gradient(180deg, rgba(62,160,255,.018), rgba(255,255,255,.006) 54%, transparent); }
.pxh-downloads { background: linear-gradient(180deg, rgba(85,225,255,.016), transparent 65%); }
.pxh-community { background: transparent !important; }
.pxh-tool-card, .pxh-download-card, .pxh-feature, .pxh-community-panel {
    -webkit-backdrop-filter: blur(12px) saturate(128%);
    backdrop-filter: blur(12px) saturate(128%);
}
[data-theme="dark"] .pxh-home .pxh-tool-card,
[data-theme="dark"] .pxh-home .pxh-download-card,
[data-theme="dark"] .pxh-home .pxh-feature,
[data-theme="dark"] .pxh-home .pxh-community-panel {
    background-color: rgba(10, 21, 36, .48);
}
[data-theme="light"] .pxh-home .pxh-tool-card,
[data-theme="light"] .pxh-home .pxh-download-card,
[data-theme="light"] .pxh-home .pxh-feature,
[data-theme="light"] .pxh-home .pxh-community-panel {
    background-color: rgba(255, 255, 255, .50);
}
[data-theme="dark"] .pxh-home .pxh-community-panel {
    background-image: linear-gradient(110deg, rgba(62,160,255,.07), rgba(133,134,255,.03) 55%, rgba(10,21,36,.48));
}
[data-theme="light"] .pxh-home .pxh-community-panel {
    background-image: linear-gradient(110deg, rgba(62,160,255,.065), rgba(133,134,255,.025) 55%, rgba(255,255,255,.50));
}
body.a11y-contrast .pxh-code-backdrop { opacity: .12 !important; }
body.a11y-no-animations .pxh-code-plane { transform: none !important; will-change: auto; }
body.a11y-no-animations .pxh-bg-line, .pxh-bg-line.is-lit { opacity: .30 !important; transition: none !important; text-shadow: none !important; }
@media (max-width: 760px) {
    .pxh-code-plane-far { opacity: .58; }
    .pxh-code-plane-mid { opacity: .16; }
    .pxh-code-plane-near { opacity: .09; }
    .pxh-bg-code { width: 98vw; font-size: 8px; line-height: 1.54; }
    .pxh-bg-code-document { padding-left: 8px; }
    .pxh-bg-ln { width: 25px; margin-right: 9px; }
    .pxh-source-css { left: 14px; top: 6%; }
    .pxh-source-js { left: 5px; top: 13%; }
    .pxh-hero { background: linear-gradient(110deg, rgba(8,17,31,.91), rgba(8,17,31,.78)); }
}
@media (prefers-reduced-motion: reduce) {
    .pxh-code-plane { transform: none !important; }
    .pxh-bg-line { transition: none !important; }
}


/* ============================================================
   NAVIGATION / LINK INTERACTION PATCH
   - Dropdown can be opened by click, hover, or keyboard focus.
   - A transparent bridge prevents the menu collapsing while the
     pointer moves from the trigger into the submenu.
   - Explicit stacking keeps the header menu above the code layers.
   ============================================================ */
body.pxh-home-page .top-bar {
    z-index: 11000;
    overflow: visible;
}
body.pxh-home-page .desktop-nav {
    position: relative;
    z-index: 11001;
}
body.pxh-home-page .desktop-nav .dropdown {
    position: relative;
}
body.pxh-home-page .desktop-nav .dropdown:hover,
body.pxh-home-page .desktop-nav .dropdown:focus-within,
body.pxh-home-page .desktop-nav .dropdown.is-open {
    z-index: 11002;
}
body.pxh-home-page .desktop-nav .dropdown-trigger {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
body.pxh-home-page .desktop-nav .dropdown-content {
    z-index: 11003;
    top: calc(100% + 5px);
    pointer-events: auto;
}
body.pxh-home-page .desktop-nav .dropdown-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 12px;
    background: transparent;
}
body.pxh-home-page .desktop-nav .dropdown:hover .dropdown-content,
body.pxh-home-page .desktop-nav .dropdown:focus-within .dropdown-content,
body.pxh-home-page .desktop-nav .dropdown.is-open .dropdown-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
body.pxh-home-page .desktop-nav .dropdown-content .dropdown-item {
    position: relative;
    z-index: 1;
    min-height: 38px;
    cursor: pointer;
}
body.pxh-home-page .desktop-nav .nav-btn:focus-visible,
body.pxh-home-page .desktop-nav .dropdown-item:focus-visible {
    outline: 3px solid #ffeb3b;
    outline-offset: 2px;
}
@media (max-width: 920px) {
    body.pxh-home-page .top-bar { z-index: 11000; }
    body.pxh-home-page .pxh-mobile-toggle { position: relative; z-index: 11002; cursor: pointer; }
    body.pxh-home-page .pxh-mobile-menu { z-index: 10999; pointer-events: auto; }
}


/* SMOOTH CODE PARALLAX PERFORMANCE TUNE */
.pxh-code-backdrop { contain: paint; }
.pxh-code-plane { backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: none !important; }
.pxh-bg-code { font-variant-ligatures: none; text-rendering: geometricPrecision; }
.pxh-bg-ln { opacity: .8; }
.pxh-bg-line.is-lit .pxh-bg-ln { color: rgba(85,225,255,.82); }
.pxh-home .pxh-tool-card,
.pxh-home .pxh-download-card,
.pxh-home .pxh-feature,
.pxh-home .pxh-community-panel { background-color: var(--pxh-surface); }
.pxh-home .pxh-tool-card:hover { background-color: var(--pxh-surface-strong); }
[data-theme="dark"] .pxh-home .pxh-tool-card,
[data-theme="dark"] .pxh-home .pxh-download-card,
[data-theme="dark"] .pxh-home .pxh-feature,
[data-theme="dark"] .pxh-home .pxh-community-panel { background-color: var(--pxh-surface); }
[data-theme="dark"] .pxh-home .pxh-tool-card:hover { background-color: var(--pxh-surface-strong); }
body.a11y-no-animations .pxh-bg-line,
body.a11y-no-animations .pxh-bg-line.is-lit { opacity: .30 !important; transition: none !important; text-shadow: none !important; }
@media (prefers-reduced-motion: reduce) {
    .pxh-bg-line, .pxh-bg-line.is-lit { transition: none !important; text-shadow: none !important; }
}
