/* ===========================================================================
   fresh-pages.css — bold / editorial redesign for Playground, Materials, Profile.
   Reuses the theme tokens from the site (index-new.css) so light/dark still
   work, then layers a brutalist treatment on top: oversized display type,
   monospace eyebrows, hard offset shadows, slight rotations, broken grid.
   Scoped under .fx-page so nothing leaks into other pages.
   ======================================================================== */

.fx-page {
    --fx-line: var(--border, #2a2a38);
    --fx-surface: var(--bg-card, var(--bg-secondary, #15151d));
    --fx-ink: var(--text-primary, #e8e8f0);
    --fx-dim: var(--text-secondary, #8a8a9a);
    --fx-acc: var(--primary, #6366f1);
    --fx-acc2: var(--accent, #34d399);
    --fx-shadow: 6px 6px 0 var(--fx-acc);

    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    color: var(--fx-ink);
}

/* --- shared bits ------------------------------------------------------------ */
.fx-eyebrow {
    font-family: "Fira Mono", "JetBrains Mono", Consolas, monospace;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fx-acc2);
    display: inline-block;
    margin-bottom: .6rem;
}

.fx-display {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}

.fx-display .fx-mark {
    background: var(--fx-acc2);
    color: #0b0b12;
    padding: 0 .12em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.fx-card {
    background: var(--fx-surface);
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    box-shadow: var(--fx-shadow);
}

.fx-btn {
    font-family: "Fira Mono", Consolas, monospace;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .65rem 1.1rem;
    border: 2px solid var(--fx-ink);
    border-radius: 4px;
    background: transparent;
    color: var(--fx-ink);
    cursor: pointer;
    transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.fx-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fx-ink); }
.fx-btn:active { transform: translate(0, 0); box-shadow: none; }
.fx-btn--go { background: var(--fx-acc2); color: #0b0b12; border-color: var(--fx-acc2); }
.fx-btn--go:hover { box-shadow: 4px 4px 0 var(--fx-acc); }

/* =========================================================================
   PLAYGROUND
   ========================================================================= */
.pg-playground .pg-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.pg-playground .pg-runner-chip {
    font-family: "Fira Mono", monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 2px solid var(--fx-acc2);
    color: var(--fx-acc2);
    padding: .35rem .7rem;
    border-radius: 999px;
}

.pg-playground .pg-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.4rem;
}
@media (max-width: 940px) {
    .pg-playground .pg-grid { grid-template-columns: 1fr; }
}

.pg-playground .pg-aside { display: flex; flex-direction: column; gap: 1rem; }
.pg-playground .pg-tip {
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    padding: .8rem .9rem;
    background: var(--fx-surface);
}
.pg-playground .pg-tip:nth-child(odd) { transform: rotate(-.6deg); }
.pg-playground .pg-tip:nth-child(even) { transform: rotate(.6deg); }
.pg-playground .pg-tip strong { display: block; font-size: .9rem; margin-bottom: .3rem; }
.pg-playground .pg-tip pre,
.pg-playground .pg-tip code {
    font-family: "Fira Mono", Consolas, monospace;
    font-size: .76rem;
    color: var(--fx-dim);
    white-space: pre-wrap;
    margin: 0;
}
.pg-playground .pg-tip ul { margin: .2rem 0 0; padding-left: 1.1rem; font-size: .78rem; color: var(--fx-dim); }

.pg-playground .pg-editor-wrap {
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    box-shadow: var(--fx-shadow);
    overflow: hidden;
}
.pg-playground #monaco { width: 100%; height: 440px; }

.pg-playground .pg-io {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}
@media (max-width: 720px) {
    .pg-playground .pg-io { grid-template-columns: 1fr; }
}
.pg-playground .pg-io label {
    font-family: "Fira Mono", monospace;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-acc2);
    display: block;
    margin-bottom: .4rem;
}
.pg-playground #stdin-field {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    background: var(--fx-surface);
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    color: var(--fx-ink);
    font-family: "Fira Mono", Consolas, monospace;
    font-size: .85rem;
    padding: .7rem;
}
.pg-playground .pg-output {
    min-height: 120px;
    background: #0b0b12;
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    color: #b8f24d;
    font-family: "Fira Mono", Consolas, monospace;
    font-size: .85rem;
    padding: .7rem;
    white-space: pre-wrap;
    overflow: auto;
}

.pg-playground .pg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.2rem;
}
.pg-playground .pg-actions button {
    font-family: "Fira Mono", Consolas, monospace;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .6rem 1rem;
    border: 2px solid var(--fx-ink);
    border-radius: 4px;
    background: transparent;
    color: var(--fx-ink);
    cursor: pointer;
    transition: transform .1s, box-shadow .1s;
}
.pg-playground .pg-actions button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fx-ink); }
.pg-playground .pg-actions button:disabled { opacity: .4; cursor: not-allowed; }
.pg-playground .pg-actions #run-btn {
    background: var(--fx-acc2); color: #0b0b12; border-color: var(--fx-acc2);
}
.pg-playground .pg-actions #run-btn:hover { box-shadow: 4px 4px 0 var(--fx-acc); }

/* =========================================================================
   MATERIALS
   ========================================================================= */
.pg-materials .mat-head { margin-bottom: 2rem; }

.pg-materials .mat-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 1.6rem;
}
@media (max-width: 820px) {
    .pg-materials .mat-grid { grid-template-columns: 1fr; }
}

.pg-materials .mat-courses { display: flex; flex-direction: column; gap: .7rem; }
.pg-materials .mat-course {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    background: var(--fx-surface);
    text-decoration: none;
    color: var(--fx-ink);
    font-weight: 700;
    transition: transform .1s, box-shadow .1s;
}
.pg-materials .mat-course:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--fx-acc); }
.pg-materials .mat-course.is-active {
    background: var(--fx-acc2);
    color: #0b0b12;
    border-color: var(--fx-acc2);
    box-shadow: 5px 5px 0 var(--fx-acc);
}
.pg-materials .mat-course .mat-c-icon { font-size: 1.15rem; }
.pg-materials .mat-course .mat-c-name { flex: 1; }
.pg-materials .mat-course .mat-c-count {
    font-family: "Fira Mono", monospace;
    font-size: .75rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 0 .5rem;
}

.pg-materials .mat-panel {
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    box-shadow: var(--fx-shadow);
    padding: 1.6rem;
    min-height: 320px;
}
.pg-materials .mat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--fx-line);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}
.pg-materials .mat-panel-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }

.pg-materials .mat-list { display: flex; flex-direction: column; }
.pg-materials .mat-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem .4rem;
    border-bottom: 1px dashed var(--fx-line);
    text-decoration: none;
    color: var(--fx-ink);
    transition: padding-left .12s, color .12s;
}
.pg-materials .mat-item:hover { padding-left: 1.1rem; color: var(--fx-acc2); }
.pg-materials .mat-item .mat-num {
    font-family: "Fira Mono", monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--fx-dim);
}
.pg-materials .mat-item .mat-title { font-weight: 600; font-size: 1.02rem; }
.pg-materials .mat-item .mat-go { font-size: 1.3rem; }

.pg-materials .mat-empty,
.pg-materials .mat-welcome {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--fx-dim);
}
.pg-materials .mat-empty span,
.pg-materials .mat-welcome span { font-size: 2.4rem; display: block; margin-bottom: .6rem; }

/* =========================================================================
   PROFILE
   ========================================================================= */
.pg-profile .pf-hero {
    position: relative;
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    box-shadow: var(--fx-shadow);
    padding: 2rem;
    overflow: hidden;
    margin-bottom: -1.4rem;
}
.pg-profile .pf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(139, 92, 246, .06) 14px 28px);
    pointer-events: none;
}
.pg-profile .pf-hero-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.pg-profile .pf-avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--fx-acc2);
    color: #0b0b12;
    border: 3px solid var(--fx-ink);
    box-shadow: 5px 5px 0 var(--fx-acc);
    transform: rotate(-3deg);
}
.pg-profile .pf-name-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.pg-profile .pf-name-row h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.pg-profile .pf-role {
    font-family: "Fira Mono", monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 2px solid var(--fx-acc);
    color: var(--fx-acc);
    padding: .2rem .55rem;
    border-radius: 999px;
}
.pg-profile .pf-edit {
    border: 2px solid var(--fx-line);
    background: transparent;
    color: var(--fx-ink);
    width: 34px; height: 34px;
    border-radius: 4px;
    cursor: pointer;
}
.pg-profile .pf-bio { position: relative; margin: .6rem 0 .5rem; color: var(--fx-dim); max-width: 52ch; }
.pg-profile .pf-meta { position: relative; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--fx-dim); }
.pg-profile .pf-meta .pf-rank { color: var(--fx-acc2); font-weight: 700; }

.pg-profile .pf-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 700px) { .pg-profile .pf-stats { grid-template-columns: repeat(2, 1fr); } }
.pg-profile .pf-stat {
    background: var(--fx-surface);
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    padding: 1.1rem;
    text-align: left;
}
.pg-profile .pf-stat:nth-child(2) { transform: translateY(-.6rem); }
.pg-profile .pf-stat:nth-child(4) { transform: translateY(-.6rem); }
.pg-profile .pf-stat .pf-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}
.pg-profile .pf-stat .pf-lbl {
    font-family: "Fira Mono", monospace;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-dim);
}

.pg-profile .pf-section { margin-bottom: 2rem; }
.pg-profile .pf-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    display: flex;
    align-items: baseline;
    gap: .6rem;
}
.pg-profile .pf-section h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--fx-line);
}

.pg-profile .pf-ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .8rem;
}
.pg-profile .achievement-item {
    display: flex;
    gap: .7rem;
    align-items: center;
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    padding: .8rem;
    background: var(--fx-surface);
}
.pg-profile .achievement-item.locked { opacity: .45; }
.pg-profile .achievement-item.earned { border-color: var(--fx-acc2); }
.pg-profile .achievement-item .ach-icon { font-size: 1.6rem; }
.pg-profile .achievement-item .ach-title { font-weight: 700; font-size: .9rem; display: block; }
.pg-profile .achievement-item .ach-desc { font-size: .76rem; color: var(--fx-dim); }
.pg-profile .achievement-item .ach-check { margin-left: auto; color: var(--fx-acc2); font-weight: 800; }

.pg-profile .pf-subs { display: flex; flex-direction: column; }
.pg-profile .pf-sub {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: .85rem .3rem;
    border-bottom: 1px dashed var(--fx-line);
}
.pg-profile .pf-sub .sub-task { font-weight: 600; display: block; }
.pg-profile .pf-sub .sub-course { font-size: .78rem; color: var(--fx-dim); }
.pg-profile .pf-sub .sub-right { text-align: right; font-size: .78rem; color: var(--fx-dim); }
.pg-profile .pf-sub .sub-points { color: var(--fx-acc2); font-weight: 700; margin-right: .5rem; }
.pg-profile .pf-sub.failed .sub-task { color: var(--fx-dim); }

.pg-profile .pf-empty { text-align: center; padding: 2.5rem 1rem; color: var(--fx-dim); }
.pg-profile .pf-empty span { font-size: 2rem; display: block; margin-bottom: .4rem; }

/* Edit modal (bold variant) */
.pg-profile .pf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}
.pg-profile .pf-modal.open { display: flex; }
.pg-profile .pf-modal-card {
    width: min(460px, 100%);
    background: var(--fx-surface);
    border: 3px solid var(--fx-ink);
    box-shadow: 10px 10px 0 var(--fx-acc2);
    border-radius: 4px;
    padding: 1.4rem;
}
.pg-profile .pf-modal-card h3 { margin: 0 0 1rem; font-weight: 800; }
.pg-profile .pf-modal-card label {
    font-family: "Fira Mono", monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-dim);
    display: block;
    margin-bottom: .3rem;
}
.pg-profile .pf-modal-card input,
.pg-profile .pf-modal-card textarea {
    width: 100%;
    background: #0b0b12;
    border: 2px solid var(--fx-line);
    border-radius: 4px;
    color: var(--fx-ink);
    padding: .6rem;
    margin-bottom: .9rem;
    font-family: inherit;
}
.pg-profile .pf-modal-actions { display: flex; gap: .6rem; justify-content: flex-end; }

/* =========================================================================
   HOME
   ========================================================================= */
.pg-home .hp-hero { position: relative; padding: 1rem 0 2rem; }
.pg-home .hp-symbols {
    position: absolute; inset: -2rem 0 0; overflow: hidden; pointer-events: none;
    opacity: .12; font-family: "Fira Mono", monospace;
}
.pg-home .hp-symbols span {
    position: absolute; top: var(--y, 20%); left: var(--x, 10%);
    font-size: clamp(1.4rem, 4vw, 3rem);
    animation: hp-float 9s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes hp-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }

.pg-home .hp-badge {
    display: inline-block;
    font-family: "Fira Mono", monospace;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    border: 2px solid var(--fx-acc2); color: var(--fx-acc2);
    padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.pg-home .hp-title {
    font-size: clamp(2.6rem, 7vw, 5rem); line-height: .95;
    font-weight: 800; letter-spacing: -.04em; margin: 0; position: relative;
}
.pg-home .typewriter-container { display: inline; position: relative; }
.pg-home .typewriter-text {
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pg-home .typewriter-cursor {
    display: inline-block; width: 4px; height: 1.05em;
    background: var(--fx-acc2); margin-left: 3px; vertical-align: middle;
    animation: hp-blink .8s step-end infinite;
}
.pg-home .typewriter-cursor.finished { animation: hp-blink 1.2s step-end infinite; }
@keyframes hp-blink { 50% { opacity: 0 } }

.pg-home .hp-desc { max-width: 56ch; color: var(--fx-dim); font-size: 1.05rem; margin: 1.2rem 0 1.6rem; }
.pg-home .hp-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.pg-home .hp-actions a {
    font-family: "Fira Mono", monospace; font-weight: 700; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .04em;
    padding: .8rem 1.4rem; border: 2px solid var(--fx-ink); border-radius: 4px;
    text-decoration: none; color: var(--fx-ink);
    transition: transform .1s, box-shadow .1s;
}
.pg-home .hp-actions a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fx-ink); }
.pg-home .hp-actions a.is-primary { background: var(--fx-acc2); color: #0b0b12; border-color: var(--fx-acc2); }
.pg-home .hp-actions a.is-primary:hover { box-shadow: 4px 4px 0 var(--fx-acc); }

.pg-home .hp-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pg-home .hp-stat .stat-number { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pg-home .hp-stat .stat-label {
    font-family: "Fira Mono", monospace; font-size: .68rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--fx-dim);
}

.pg-home .hp-note {
    display: flex; align-items: center; gap: .7rem;
    border: 2px dashed var(--fx-line); border-radius: 4px;
    padding: .8rem 1rem; margin-top: 2.5rem;
    font-size: .88rem; color: var(--fx-dim);
}

.pg-home .hp-section { margin-top: 4rem; }
.pg-home .hp-section > .fx-eyebrow { margin-bottom: .4rem; }
.pg-home .hp-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .3rem; }
.pg-home .hp-section .hp-sub { color: var(--fx-dim); margin: 0 0 1.6rem; }

.pg-home .hp-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.pg-home .hp-course {
    display: flex; flex-direction: column; gap: .7rem;
    background: var(--fx-surface); border: 2px solid var(--fx-line);
    border-radius: 4px; padding: 1.3rem; box-shadow: var(--fx-shadow);
    transition: transform .12s, box-shadow .12s;
}
.pg-home .hp-course:nth-child(2n) { transform: translateY(.7rem); }
.pg-home .hp-course:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--fx-acc); }
.pg-home .hp-course.is-locked { opacity: .55; box-shadow: none; }
.pg-home .hp-course-top { display: flex; align-items: center; justify-content: space-between; }
.pg-home .hp-course-icon { font-size: 1.9rem; }
.pg-home .hp-course-badge {
    font-family: "Fira Mono", monospace; font-size: .62rem; letter-spacing: .1em;
    text-transform: uppercase; border: 2px solid var(--fx-acc2); color: var(--fx-acc2);
    padding: .1rem .45rem; border-radius: 999px;
}
.pg-home .hp-course h3 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.pg-home .hp-course p { margin: 0; font-size: .86rem; color: var(--fx-dim); flex: 1; }
.pg-home .hp-progress-line { font-family: "Fira Mono", monospace; font-size: .74rem; color: var(--fx-dim); }
.pg-home .hp-bar { height: 8px; border: 2px solid var(--fx-line); border-radius: 2px; overflow: hidden; }
.pg-home .hp-bar > i { display: block; height: 100%; background: var(--fx-acc2); }
.pg-home .hp-course .card-btn {
    margin-top: .3rem; text-align: center; text-decoration: none;
    font-family: "Fira Mono", monospace; font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .04em;
    padding: .6rem 1rem; border: 2px solid var(--fx-ink); border-radius: 4px;
    color: var(--fx-ink); background: transparent; cursor: pointer;
}
.pg-home .hp-course a.card-btn:hover { background: var(--fx-ink); color: var(--fx-surface); }
.pg-home .hp-course .card-btn[disabled] { opacity: .5; cursor: not-allowed; }

.pg-home .hp-mat-list { display: flex; flex-direction: column; }
.pg-home .hp-mat-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
    padding: .9rem .3rem; border-bottom: 1px dashed var(--fx-line);
    text-decoration: none; color: var(--fx-ink); transition: padding-left .12s, color .12s;
}
.pg-home .hp-mat-item:hover { padding-left: 1rem; color: var(--fx-acc2); }
.pg-home .hp-mat-item .m-ico { font-size: 1.3rem; }
.pg-home .hp-mat-item .m-course { font-size: .76rem; color: var(--fx-dim); display: block; }

.pg-home .hp-cta {
    margin-top: 4rem; border: 3px solid var(--fx-ink);
    box-shadow: 12px 12px 0 var(--fx-acc2); border-radius: 4px;
    padding: 2.2rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center;
}
@media (max-width: 820px) { .pg-home .hp-cta { grid-template-columns: 1fr; } }
.pg-home .hp-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .6rem; }
.pg-home .hp-cta p { color: var(--fx-dim); margin: 0 0 1.2rem; }

.pg-home .code-preview { background: #0b0b12; border: 2px solid var(--fx-line); border-radius: 4px; overflow: hidden; }
.pg-home .code-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem .8rem; border-bottom: 2px solid var(--fx-line);
}
.pg-home .code-header .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.pg-home .dot.red { background: #ff5f56 } .pg-home .dot.yellow { background: #ffbd2e } .pg-home .dot.green { background: #27c93f }
.pg-home .language-label { font-family: "Fira Mono", monospace; font-size: .7rem; color: var(--fx-dim); }
.pg-home .code-body {
    padding: 1rem; font-family: "Fira Mono", Consolas, monospace; font-size: .82rem;
    color: #b8f24d; white-space: pre; min-height: 170px; overflow: auto;
}
