/* ── Reset & base ──────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #030712;
    --bg-raised: #0d1117;
    --bg-card: #111827;
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.14);

    --text: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --green: #10b981;
    --orange: #f59e0b;

    --grad-text: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    --grad-btn: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font: "Plus Jakarta Sans", system-ui, sans-serif;

    --section-gap: 120px;
    --container: 1160px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
}
code {
    font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
    font-size: 0.88em;
}

.pm-desktop-only {
    display: none;
}
@media (min-width: 768px) {
    .pm-desktop-only {
        display: inline;
    }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.pm-btn--lg {
    font-size: 15px;
    padding: 13px 24px;
}
.pm-btn--xl {
    font-size: 16px;
    padding: 16px 32px;
}

.pm-btn--primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}
.pm-btn--primary:hover {
    box-shadow: 0 6px 32px rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}

.pm-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-bright);
}
.pm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── Section typography ────────────────────────────────────────────────── */

.pm-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
}

.pm-section-title--left {
    text-align: left;
}

.pm-section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    text-align: center;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.pm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.pm-nav__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.pm-nav__logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pm-nav__logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(1.15);
}

.pm-nav__logo-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text);
}

.pm-nav__links {
    display: none;
    align-items: center;
    gap: 32px;
    flex: 1;
}

@media (min-width: 768px) {
    .pm-nav__links {
        display: flex;
    }
}

.pm-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
}
.pm-nav__link:hover {
    color: var(--text);
}

.pm-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.pm-nav__btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.18s;
    border: none;
}

.pm-nav__btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}
.pm-nav__btn--ghost:hover {
    color: var(--text);
}

.pm-nav__btn--primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 2px 16px rgba(124, 58, 237, 0.25);
}
.pm-nav__btn--primary:hover {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* ── Page ───────────────────────────────────────────────────────────────── */

.pm-main {
    padding-top: 64px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.pm-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 24px 100px;
    text-align: center;
}

.pm-hero__glow {
    position: absolute;
    width: 800px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.pm-hero__glow--left {
    background: rgba(124, 58, 237, 0.18);
    top: -200px;
    left: -200px;
}

.pm-hero__glow--right {
    background: rgba(59, 130, 246, 0.12);
    top: -100px;
    right: -250px;
}

.pm-hero__container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--violet-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    background: rgba(124, 58, 237, 0.08);
}

.pm-hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.pm-hero__title {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--text);
}

.pm-hero__gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.pm-hero__subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 580px;
}

.pm-hero__subtitle strong {
    color: var(--text);
    font-weight: 600;
}

.pm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pm-hero__fine {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Metrics bar ────────────────────────────────────────────────────────── */

.pm-metrics {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.pm-metrics__container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pm-metrics__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 32px 20px;
    text-align: center;
}

/* Separators are item borders (not standalone elements), so they always align to
   the grid and never strand on a wrapped row. */
.pm-metrics__item + .pm-metrics__item {
    border-left: 1px solid var(--border);
}

.pm-metrics__value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-metrics__label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Portrait / narrow: 2×2 grid with a clean cross separator and no stray lines. */
@media (max-width: 768px) {
    .pm-metrics__container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Reset the row's left borders, then redraw only between the two columns
       and between the two rows — forming a tidy "+" instead of stranded lines. */
    .pm-metrics__item + .pm-metrics__item {
        border-left: none;
    }
    .pm-metrics__item:nth-child(2n) {
        border-left: 1px solid var(--border);
    }
    .pm-metrics__item:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }
}

/* ── Demo ───────────────────────────────────────────────────────────────── */

.pm-demo {
    padding: var(--section-gap) 24px;
}

.pm-demo__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.pm-demo__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pm-demo__workspace {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(124, 58, 237, 0.06);
}

.pm-demo__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    gap: 12px;
    flex-wrap: wrap;
}

/* Game selector — a dropdown stays compact and scales to any number of games. */
.pm-demo__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pm-demo__select {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 7px 36px 7px 14px; /* right padding leaves room for the caret */
    max-width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 0.18s,
        background 0.18s;
}

.pm-demo__select:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-bright);
}

.pm-demo__select:focus-visible {
    outline: none;
    border-color: var(--violet);
}

/* Dark option list where the browser allows styling it (Chromium / Firefox). */
.pm-demo__select option {
    background: var(--bg-card);
    color: var(--text);
}

.pm-demo__select-caret {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.pm-demo__topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-demo__live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pm-demo__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

.pm-demo__reset-btn {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.pm-demo__reset-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.pm-demo__stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(124, 58, 237, 0.06), transparent);
}

.pm-demo__viewport {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    max-height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-bright);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    background: #0a0f1a;
}

.pm-demo__canvas {
    width: 100%;
    height: 100%;
}

/* ── How It Works ───────────────────────────────────────────────────────── */

.pm-how {
    padding: var(--section-gap) 24px;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pm-how__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.pm-how__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pm-how__steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pm-how__step {
    flex: 1;
    min-width: 220px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pm-how__step-num {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-how__step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.pm-how__step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.pm-how__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--text-muted);
    align-self: center;
    flex-shrink: 0;
}

@media (max-width: 840px) {
    .pm-how__connector {
        display: none;
    }
    .pm-how__steps {
        gap: 12px;
    }
    .pm-how__step {
        max-width: 100%;
    }
}

/* ── Code section ───────────────────────────────────────────────────────── */

.pm-code {
    padding: var(--section-gap) 24px;
}

.pm-code__container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 860px) {
    .pm-code__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.pm-code__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* allow the grid column to shrink instead of overflowing */
}

.pm-code__text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pm-code__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-code__list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.pm-code__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-light);
}

.pm-code__list code {
    color: var(--violet-light);
    background: rgba(167, 139, 250, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.pm-code__visual {
    width: 100%;
    min-width: 0; /* so the long code line scrolls/wraps inside the window, not the page */
}

.pm-code__window {
    background: #0d1117;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(124, 58, 237, 0.05);
}

.pm-code__window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.pm-code__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.pm-code__dot--red {
    background: #ff5f57;
}
.pm-code__dot--yellow {
    background: #febc2e;
}
.pm-code__dot--green {
    background: #28c840;
}

.pm-code__window-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 500;
}

.pm-code__pre {
    padding: 24px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.75;
}

.pm-code__comment {
    color: #6b7280;
}
.pm-code__keyword {
    color: #60a5fa;
}
.pm-code__fn {
    color: #a78bfa;
}
.pm-code__str {
    color: #34d399;
}
.pm-code__prop {
    color: #f9fafb;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.pm-features {
    padding: var(--section-gap) 24px;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border);
}

.pm-features__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.pm-features__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pm-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .pm-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .pm-features__grid {
        grid-template-columns: 1fr;
    }
}

.pm-feat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}

.pm-feat:hover {
    border-color: var(--border-bright);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.pm-feat__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-feat__icon svg {
    width: 22px;
    height: 22px;
}

.pm-feat__icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-light);
}
.pm-feat__icon--purple {
    background: rgba(124, 58, 237, 0.12);
    color: var(--violet-light);
}
.pm-feat__icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}
.pm-feat__icon--orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
}

.pm-feat h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.pm-feat p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Locked preview callout ─────────────────────────────────────────────── */

.pm-locked-callout {
    padding: var(--section-gap) 24px;
    border-top: 1px solid var(--border);
}

.pm-locked-callout__container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 860px) {
    .pm-locked-callout__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .pm-locked-callout__visual {
        order: -1;
    }
}

.pm-locked-callout__visual {
    display: flex;
    justify-content: center;
}

.pm-locked-callout__mock {
    position: relative;
    width: 280px;
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-bright);
    background: repeating-conic-gradient(rgba(124, 58, 237, 0.04) 0% 25%, transparent 0% 50%) 0 0 / 24px 24px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-locked-callout__mock-blur {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pm-locked-callout__mock-card {
    position: relative;
    z-index: 1;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 220px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pm-locked-callout__mock-lock {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-light);
}

.pm-locked-callout__mock-lock svg {
    width: 22px;
    height: 22px;
}

.pm-locked-callout__mock-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.pm-locked-callout__mock-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.pm-locked-callout__mock-btn {
    background: var(--grad-btn);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    margin-top: 4px;
    width: 100%;
    font-family: var(--font);
}

.pm-locked-callout__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pm-locked-callout__tag {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
}

.pm-locked-callout__content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.pm-locked-callout__content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pm-locked-callout__content code {
    color: var(--violet-light);
    background: rgba(167, 139, 250, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */

.pm-cta {
    position: relative;
    overflow: hidden;
    padding: var(--section-gap) 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.pm-cta__glow {
    position: absolute;
    width: 900px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2), transparent 70%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.pm-cta__container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pm-cta__title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

.pm-cta__subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.pm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pm-cta__fine {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.pm-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
}

.pm-footer__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.pm-footer__logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-footer__logo-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.7;
}

.pm-footer__logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.pm-footer__copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Portrait / mobile refinements ──────────────────────────────────────── */

/* Safety net: never let a stray wide element (long code line, glow) give the
   whole page a horizontal scrollbar — that's what makes portrait feel broken. */
html,
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    :root {
        --section-gap: 76px; /* tighter vertical rhythm on phones */
    }

    /* Nav: tighten spacing so the logo + CTA fit a phone's width. */
    .pm-nav__container {
        gap: 12px;
        padding: 0 16px;
    }
    .pm-nav__actions {
        gap: 8px;
    }
    .pm-nav__btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Pull section side padding in for more usable width. */
    .pm-hero,
    .pm-demo,
    .pm-how,
    .pm-code,
    .pm-features,
    .pm-locked-callout,
    .pm-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pm-hero {
        padding-top: 72px;
        padding-bottom: 64px;
    }

    /* Code block: wrap long lines (e.g. the CDN URL) instead of overflowing. */
    .pm-code__pre {
        font-size: 12.5px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    /* Full-width, stacked CTAs are easier to tap on a phone. */
    .pm-hero__actions,
    .pm-cta__actions {
        flex-direction: column;
        width: 100%;
    }
    .pm-hero__actions .pm-btn,
    .pm-cta__actions .pm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Very narrow phones: drop the secondary nav "Log In" so the primary CTA fits.
   (Login is still reachable from the final CTA section and the dashboard.) */
@media (max-width: 480px) {
    .pm-nav__btn--ghost {
        display: none;
    }
}
