:root {
    color-scheme: dark;
    --bg: #060608;
    --surface: #0d0c11;
    --surface-2: #121017;
    --surface-3: #18151f;
    --text: #f6f3fa;
    --muted: #b6afbe;
    --subtle: #877f91;
    --line: #292430;
    --line-strong: #40364d;
    --cyan: #a06cff;
    --blue: #7855dc;
    --violet: #9467f8;
    --violet-strong: #7245dd;
    --magenta: #c15cf4;
    --green: #47d69b;
    --amber: #efbc59;
    --red: #ef6b76;
    --radius: 8px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .12;
    background-image:
        linear-gradient(rgba(151, 104, 220, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(151, 104, 220, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: #060608;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { letter-spacing: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible {
    outline: 3px solid rgba(160, 108, 255, .78);
    outline-offset: 3px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 72px;
    border-bottom: 1px solid rgba(70, 59, 83, .68);
    background: rgba(7, 6, 10, .94);
    backdrop-filter: blur(14px);
}
.site-header-inner {
    width: min(calc(100% - 40px), var(--container));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.brand img { object-fit: contain; }
.brand strong { color: var(--cyan); font-weight: 700; }
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 12px;
    color: var(--muted);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(160, 108, 255, .13); }
.header-action { display: flex; justify-content: flex-end; }
.account-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 650;
}
.account-link img { border-radius: 50%; }
.nav-toggle { display: none; }
.button, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 10px 18px;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover, button:hover { transform: translateY(-1px); }
.button.primary, button.primary { background: var(--violet-strong); border-color: #8f65ef; }
.button.primary:hover, button.primary:hover { background: var(--violet); border-color: #a984ff; }
.button.primary:active, button.primary:active { background: #5c32c2; border-color: #7449d7; transform: none; }
.button.secondary, button.secondary { background: var(--surface); border-color: var(--line-strong); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-2); border-color: #62516f; }
.button.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--cyan); }
.button.compact { min-height: 38px; padding: 7px 14px; }
.button[aria-disabled="true"], button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section.compact { padding: 64px 0; }
.section-header {
    max-width: 720px;
    margin-bottom: 40px;
}
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 60px; max-width: 720px; }
h2 { font-size: 36px; }
h3 { font-size: 21px; }
p { margin: 0; color: var(--muted); }
.lead { max-width: 650px; font-size: 19px; line-height: 1.7; }
.hero {
    position: relative;
    min-height: 620px;
    height: min(760px, calc(100svh - 72px));
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #070609 url('/assets/nb-project-hero-v2.jpg') center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 8, .70);
}
.hero-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 span { color: var(--cyan); }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { padding-left: 13px; border-left: 2px solid var(--cyan); }
.hero-meta strong { display: block; font-size: 15px; }
.hero-meta span { color: var(--subtle); font-size: 13px; }
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.benefit {
    min-height: 188px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 12, 17, .94);
}
.benefit-index {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--cyan);
    font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.benefit h3 { margin-bottom: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.product-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #08070b;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-media:hover img { transform: scale(1.015); }
.product-status { position: absolute; top: 16px; left: 16px; }
.product-body { padding: 24px; }
.product-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 16px; }
.product-price { color: var(--text); text-align: right; font-size: 18px; font-weight: 750; white-space: nowrap; }
.product-price span { display: block; color: var(--subtle); font-size: 11px; font-weight: 600; }
.compact-list { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.compact-list li { color: var(--muted); padding-left: 18px; position: relative; }
.compact-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--cyan); }
.product-actions { display: flex; gap: 10px; margin-top: 24px; }
.product-actions > * { flex: 1; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 7, 11, .9);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}
.status-badge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.status-badge.success > span { background: var(--green); }
.status-badge.success { color: #a8f0d2; border-color: rgba(71, 214, 155, .32); }
.status-badge.warning > span { background: var(--amber); }
.status-badge.danger > span { background: var(--red); }
.cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 34px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #100d15;
}
.cta-band p { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); background: #08070b; padding: 56px 0 24px; }
.footer-grid {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}
.footer-grid h2 { margin-bottom: 12px; color: var(--text); font-size: 13px; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:not(.brand) { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: 14px; }
.footer-bottom {
    width: min(calc(100% - 40px), var(--container));
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--subtle);
    font-size: 12px;
}
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); background: #09080d; }
.page-hero p { margin-top: 16px; max-width: 700px; }
.breadcrumb { margin-bottom: 20px; color: var(--subtle); font-size: 13px; }
.breadcrumb a { color: var(--cyan); }
.detail-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.detail-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #08070b;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; }
.feature-columns { columns: 2; column-gap: 32px; margin: 24px 0 0; }
.feature-columns li { break-inside: avoid; margin-bottom: 10px; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.plan.featured { border-color: rgba(124, 92, 255, .7); }
.plan-price { margin: 16px 0 4px; color: var(--text); font-size: 34px; font-weight: 780; }
.plan-price span { color: var(--subtle); font-size: 14px; font-weight: 500; }
.plan form { margin-top: 24px; }
.plan form .button { width: 100%; }
.alternative-payments { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.alternative-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.alternative-grid a { padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 16px; color: var(--subtle); font-size: 13px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-list summary { cursor: pointer; padding: 18px 20px; font-weight: 700; }
.faq-list details p { padding: 0 20px 20px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 8px; }
.legal-nav a { color: var(--muted); font-size: 14px; }
.legal-content { max-width: 820px; }
.legal-content section { margin-bottom: 40px; }
.legal-content h2 { margin-bottom: 12px; font-size: 24px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-note { padding: 16px; border: 1px solid rgba(239, 188, 89, .42); border-radius: var(--radius); background: rgba(239, 188, 89, .07); color: #f4d99f; }
.dashboard-shell { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; padding: 48px 0 88px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.profile { display: flex; align-items: center; gap: 14px; }
.profile img, .avatar-placeholder { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); }
.avatar-placeholder { display: grid; place-items: center; background: var(--surface-2); color: var(--cyan); font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.dashboard-section { margin-top: 36px; }
.dashboard-section > h2 { margin-bottom: 16px; font-size: 23px; }
.license-list, .order-list { display: grid; gap: 10px; }
.license-row, .order-row {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.license-row { grid-template-columns: 1.35fr .8fr .8fr auto; }
.order-row { grid-template-columns: 1fr 1fr .7fr .7fr .8fr; }
.data-label { display: block; margin-bottom: 3px; color: var(--subtle); font-size: 11px; text-transform: uppercase; }
.license-key { color: var(--text); font: 600 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.empty-state { padding: 36px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.auth-state { min-height: calc(100svh - 72px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(100%, 520px); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 { font-size: 32px; }
.auth-card p { margin-top: 12px; }
.auth-card .button { width: 100%; margin-top: 24px; }
.notice { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); }
.notice.error { border-color: rgba(239, 107, 118, .45); color: #f5aab0; }
.notice.success { border-color: rgba(71, 214, 155, .38); color: #a8f0d2; }
.checkout-status { max-width: 680px; margin: 0 auto; }
.status-panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-panel[data-state="fulfilled"] { border-color: rgba(71, 214, 155, .5); }
.status-panel code { display: block; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #070609; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .site-header-inner { grid-template-columns: auto auto auto; gap: 12px; }
    .nav-toggle {
        display: grid;
        width: 40px;
        height: 40px;
        place-content: center;
        gap: 4px;
        padding: 0;
        border-color: var(--line);
        background: var(--surface);
    }
    .nav-toggle span:not(.sr-only) { width: 18px; height: 2px; background: var(--muted); }
    .primary-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        background: #09080d;
    }
    .primary-nav.open { display: flex; }
    .nav-link { padding: 11px 12px; }
    .hero::before { background: rgba(5, 4, 8, .82); }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .detail-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .license-row { grid-template-columns: 1fr 1fr; }
    .order-row { grid-template-columns: 1fr 1fr; }
    .row-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .site-header { height: 64px; }
    .site-header-inner, .container, .dashboard-shell { width: min(calc(100% - 28px), var(--container)); }
    .brand span { font-size: 14px; }
    .brand img { width: 40px; height: 28px; }
    .header-action .button { padding-inline: 11px; }
    .account-link span { display: none; }
    .hero {
        min-height: 0;
        height: auto;
        max-height: none;
        align-items: flex-start;
        padding: 44px 0 48px;
        background-position: 62% center;
    }
    .hero::before { background: rgba(5, 4, 8, .84); }
    h1 { font-size: 42px; }
    h2 { font-size: 30px; }
    .lead { font-size: 17px; }
    .hero-actions > * { width: 100%; }
    .hero-meta { gap: 16px; }
    .hero-meta div { width: calc(50% - 8px); }
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 28px; }
    .benefit-grid, .product-grid, .pricing-grid, .gallery-grid, .alternative-grid, .stat-grid { grid-template-columns: 1fr; }
    .product-body { padding: 20px; }
    .product-heading { flex-direction: column; gap: 8px; }
    .product-price { text-align: left; }
    .product-actions { flex-direction: column; }
    .cta-band { grid-template-columns: 1fr; padding: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .page-hero { padding: 64px 0 44px; }
    .feature-columns { columns: 1; }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-nav { position: static; display: flex; flex-wrap: wrap; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .license-row, .order-row { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
}

/* Customer portal */
.customer-portal {
    background: #08070b;
}
.customer-portal::before,
.customer-portal::after {
    display: none;
}
.customer-portal > .site-header,
.customer-portal > .site-footer {
    display: none;
}
.customer-portal main {
    min-height: 100svh;
}
.portal-layout {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
}
.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 20px;
    border-right: 1px solid var(--line);
    background: #0b0a0f;
}
.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}
.portal-brand img {
    width: 44px;
    height: 34px;
    object-fit: contain;
}
.portal-brand-logo-only {
    width: 56px;
    min-height: 44px;
    justify-content: center;
    margin: 0 auto 20px;
}
.portal-brand-logo-only img {
    width: 52px;
    height: 40px;
}
.portal-profile {
    display: grid;
    justify-items: center;
    margin: 0 0 36px;
    text-align: center;
}
.portal-profile img,
.portal-profile .avatar-placeholder {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
}
.portal-profile img {
    object-fit: cover;
    clip-path: circle(50%);
}
.portal-profile strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-profile > span:not(.avatar-placeholder) {
    max-width: 210px;
    overflow: hidden;
    color: var(--subtle);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-nav {
    display: grid;
    gap: 4px;
}
.portal-nav-label {
    margin: 20px 12px 6px;
    color: #6f6879;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.portal-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}
.portal-nav a:hover {
    color: var(--text);
    background: var(--surface);
}
.portal-nav a.active {
    color: var(--text);
    border-color: rgba(148, 103, 248, .4);
    background: rgba(114, 69, 221, .16);
}
.portal-nav b {
    min-width: 23px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--cyan);
    font-size: 10px;
    text-align: center;
}
.portal-nav .locked-label {
    color: var(--subtle);
}
.portal-sidebar-footer {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid var(--line);
}
.portal-sidebar-footer > span {
    display: block;
    color: var(--subtle);
    font-size: 10px;
    text-transform: uppercase;
}
.portal-sidebar-footer code {
    display: block;
    margin: 3px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
}
.portal-signout {
    min-height: 36px;
    width: 100%;
    padding: 6px 10px;
    border-color: var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}
.portal-main {
    width: min(100%, 1280px);
    padding: 48px clamp(28px, 5vw, 72px) 80px;
}
.portal-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 32px;
}
.portal-page-heading h1 {
    max-width: none;
    font-size: clamp(32px, 4vw, 44px);
}
.portal-page-heading p:not(.eyebrow) {
    margin-top: 8px;
}
.portal-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
}
.portal-notice.success {
    border-color: rgba(71, 214, 155, .35);
    background: rgba(20, 106, 73, .12);
    color: #b8ecd5;
}
.portal-notice.error {
    border-color: rgba(239, 107, 118, .38);
    background: rgba(130, 33, 44, .13);
    color: #f4b2b8;
}
.portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.portal-stats article {
    min-height: 120px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.portal-stats span,
.portal-stats small {
    display: block;
    color: var(--subtle);
    font-size: 12px;
}
.portal-stats strong {
    display: block;
    margin: 5px 0;
    font-size: 30px;
    line-height: 1.1;
}
.portal-section {
    margin-top: 40px;
}
.portal-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}
.portal-section-heading h2,
.claim-card h2,
.download-release h2,
.download-locked h2 {
    font-size: 23px;
}
.portal-section-heading p {
    margin-top: 5px;
    font-size: 14px;
}
.portal-empty,
.download-locked {
    padding: 48px 28px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}
.portal-empty p,
.download-locked p {
    margin: 8px auto 0;
    max-width: 560px;
}
.portal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.subscription-list,
.key-list,
.portal-order-list {
    display: grid;
    gap: 10px;
}
.subscription-card {
    display: grid;
    grid-template-columns: auto minmax(220px, 1.3fr) minmax(150px, .75fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 136px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.subscription-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 103, 248, .42);
    border-radius: 8px;
    background: rgba(114, 69, 221, .13);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 850;
}
.subscription-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.subscription-title h3 {
    font-size: 18px;
}
.subscription-copy > p {
    margin: 4px 0 10px;
    font-size: 13px;
}
.subscription-copy > strong,
.subscription-copy > span {
    display: block;
    font-size: 13px;
}
.subscription-copy > span {
    margin-top: 2px;
    color: var(--subtle);
}
.subscription-meta span,
.key-detail span {
    display: block;
    color: var(--subtle);
    font-size: 11px;
    text-transform: uppercase;
}
.subscription-meta code {
    display: block;
    margin: 4px 0;
    color: var(--muted);
    font-size: 12px;
}
.subscription-meta small {
    color: var(--subtle);
}
.subscription-actions {
    display: grid;
    gap: 8px;
    min-width: 132px;
}
.portal-order-list article {
    display: grid;
    grid-template-columns: 1.2fr 1fr .7fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.portal-order-list article div > * {
    display: block;
}
.portal-order-list article span,
.portal-order-list article small {
    color: var(--subtle);
    font-size: 12px;
}
.claim-card {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.2fr);
    gap: 48px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.claim-card > div p {
    margin-top: 8px;
    font-size: 14px;
}
.claim-card label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.claim-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.claim-form-row input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    outline: 0;
    background: #08070b;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.claim-form-row input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(148, 103, 248, .14);
}
.claim-card form > small {
    display: block;
    margin-top: 8px;
    color: var(--subtle);
    line-height: 1.45;
}
.key-list article {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) .5fr .5fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.key-main > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}
.key-main code {
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.key-detail strong {
    font-size: 13px;
}
.lock-mark,
.download-unavailable {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}
.download-locked h2 {
    margin-top: 16px;
}
.download-release {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px;
    border: 1px solid rgba(148, 103, 248, .42);
    border-radius: 8px;
    background: rgba(114, 69, 221, .09);
}
.download-release p {
    margin-top: 7px;
    font-size: 13px;
}
.release-checksum {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.release-checksum > span {
    color: var(--subtle);
    font-size: 11px;
    font-weight: 750;
}
.release-checksum code {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.setup-steps {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}
.setup-steps li {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.setup-steps li > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 103, 248, .4);
    border-radius: 50%;
    color: var(--cyan);
    font-weight: 800;
}
.setup-steps p {
    margin-top: 4px;
    font-size: 13px;
}
.setup-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.setup-support p {
    margin-top: 4px;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .portal-layout {
        grid-template-columns: 232px minmax(0, 1fr);
    }
    .portal-sidebar {
        padding-inline: 16px;
    }
    .portal-main {
        padding-inline: 28px;
    }
    .subscription-card {
        grid-template-columns: auto minmax(220px, 1fr) auto;
    }
    .subscription-meta {
        grid-column: 2;
    }
    .subscription-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
    .claim-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .key-list article {
        grid-template-columns: minmax(220px, 1fr) .5fr auto;
    }
    .key-list .key-detail:nth-of-type(2) {
        display: none;
    }
}

@media (max-width: 760px) {
    .portal-layout {
        display: block;
    }
    .portal-sidebar {
        position: static;
        width: auto;
        height: auto;
        padding: 0 16px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .portal-sidebar-footer,
    .portal-nav-label {
        display: none;
    }
    .portal-profile {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin: 0;
        text-align: left;
    }
    .portal-profile img,
    .portal-profile .avatar-placeholder {
        width: 40px;
        height: 40px;
        margin: 0;
        flex: 0 0 auto;
    }
    .portal-profile strong {
        font-size: 13px;
    }
    .portal-profile > span:not(.avatar-placeholder) {
        display: none;
    }
    .portal-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }
    .portal-nav a {
        min-width: 0;
        min-height: 40px;
        justify-content: center;
        padding-inline: 7px;
        font-size: 12px;
        white-space: nowrap;
    }
    .portal-nav a b {
        display: none;
    }
    .portal-nav a:nth-of-type(3) span {
        font-size: 0;
    }
    .portal-nav a:nth-of-type(3) span::after {
        content: "Download";
        font-size: 12px;
    }
    .portal-nav a:nth-of-type(4),
    .portal-nav a:nth-of-type(5) {
        display: none;
    }
    .portal-main {
        width: auto;
        padding: 0 16px 56px;
    }
    .portal-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin: 24px 0;
    }
    .portal-page-heading .button {
        width: 100%;
    }
    .portal-stats {
        grid-template-columns: 1fr;
    }
    .portal-stats article {
        min-height: 0;
    }
    .subscription-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }
    .subscription-meta {
        grid-column: 2;
    }
    .subscription-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
    }
    .portal-order-list article,
    .key-list article {
        grid-template-columns: 1fr auto;
    }
    .portal-order-list article > div:nth-child(2),
    .portal-order-list article > strong,
    .key-list .key-detail {
        display: none;
    }
    .claim-form-row {
        grid-template-columns: 1fr;
    }
    .download-release,
    .setup-support {
        align-items: stretch;
        flex-direction: column;
    }
    .release-checksum {
        grid-template-columns: 1fr auto;
    }
    .release-checksum > span {
        grid-column: 1 / -1;
    }
    .download-release .button,
    .setup-support .button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .portal-main,
    .portal-sidebar {
        padding-inline: 12px;
    }
    .portal-page-heading h1 {
        font-size: 32px;
    }
    .subscription-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .subscription-mark {
        width: 40px;
        height: 40px;
    }
    .subscription-meta,
    .subscription-actions {
        grid-column: 1;
    }
    .subscription-actions {
        grid-template-columns: 1fr;
    }
    .claim-card,
    .download-release,
    .portal-empty,
    .download-locked {
        padding: 20px;
    }
    .portal-order-list article,
    .key-list article {
        grid-template-columns: 1fr;
    }
    .portal-order-list .status-badge {
        width: max-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Storefront refresh */
body::before {
    opacity: .28;
    background: linear-gradient(135deg, rgba(124, 58, 237, .12), transparent 30%, rgba(82, 45, 140, .06) 72%, transparent);
    mask-image: none;
}
.site-header {
    height: 92px;
    padding: 14px 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
}
.site-header-inner {
    width: min(calc(100% - 32px), var(--container));
    height: 64px;
    padding: 0 12px 0 16px;
    border: 1px solid rgba(167, 110, 255, .2);
    border-radius: 8px;
    background: rgba(9, 8, 13, .9);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .32);
    backdrop-filter: blur(16px);
}
.brand-mark {
    width: 48px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.brand-mark img {
    width: 42px;
    height: 32px;
    object-fit: contain;
}
.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.discord-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.discord-link:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: var(--surface-2);
}
.primary-nav {
    width: max-content;
    justify-self: center;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}
.nav-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
}

.hero {
    min-height: 620px;
    height: min(780px, calc(100svh - 92px));
    border-bottom: 1px solid var(--line);
    background: #060608;
}
.hero::before {
    background:
        linear-gradient(90deg, rgba(6, 6, 8, .98) 0%, rgba(6, 6, 8, .86) 46%, rgba(6, 6, 8, .36) 100%),
        url('/assets/nb-project-hero-v2.jpg') center right / cover no-repeat;
    opacity: .26;
}
.hero-content {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
    align-items: center;
    gap: 72px;
}
.hero-copy {
    position: relative;
    z-index: 2;
}
.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hero-meta div {
    min-width: 0;
}
.hero h1 {
    max-width: 620px;
    font-size: 72px;
}
.hero h1 span {
    display: block;
    color: #b983ff;
}
.hero .lead {
    max-width: 600px;
}
.hero-preview {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(167, 110, 255, .24);
    border-radius: 8px;
    background: #09080d;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52), 0 0 70px rgba(100, 54, 190, .1);
    transform: perspective(1100px) rotateY(-4deg);
}
.hero-preview > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .92;
}
.hero-preview-label {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 6, 10, .88);
    backdrop-filter: blur(12px);
}
.hero-preview-label > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-preview-label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-preview-label button {
    min-height: 40px;
    padding: 8px 14px;
    border-color: rgba(167, 110, 255, .38);
    background: rgba(124, 58, 237, .18);
    white-space: nowrap;
}
.product-grid.single {
    grid-template-columns: minmax(0, 860px);
}

.project-showcase {
    padding: 38px 0 72px;
}
.project-showcase .breadcrumb {
    margin-bottom: 24px;
}
.project-purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .8fr);
    gap: 28px;
    align-items: start;
}
.project-media-column {
    min-width: 0;
}
.media-gallery {
    min-width: 0;
}
.media-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #09080d;
}
.media-stage-button {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.media-stage-button:hover {
    transform: none;
}
.media-stage-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #09080d;
    transition: opacity .16s ease;
}
.media-status {
    position: absolute;
    top: 16px;
    right: 16px;
    pointer-events: none;
}
.media-expand-label {
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 5px;
    background: rgba(6, 6, 8, .8);
    color: var(--muted);
    font-size: 11px;
    pointer-events: none;
}
.media-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.media-thumbnail {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
}
.media-thumbnail:hover {
    transform: none;
    border-color: var(--line-strong);
}
.media-thumbnail.selected,
.media-thumbnail[aria-pressed="true"] {
    border-color: var(--violet);
    box-shadow: inset 0 0 0 1px rgba(148, 103, 248, .45);
}
.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
}
.media-thumbnail.selected img,
.media-thumbnail:hover img {
    opacity: 1;
}
.video-thumbnail span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(6, 6, 8, .84);
    color: var(--text);
    font-size: 11px;
}

.purchase-panel {
    position: sticky;
    top: 106px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 12, 17, .97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .36);
}
.purchase-heading,
.purchase-description,
.project-meta,
.starting-price,
.feature-tags,
.purchase-form,
.other-payments {
    margin: 0;
    padding: 20px;
}
.purchase-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
}
.purchase-heading h1 {
    font-size: 30px;
}
.purchase-heading .eyebrow {
    margin-bottom: 5px;
}
.purchase-description {
    padding-top: 0;
    font-size: 14px;
}
.project-meta {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.project-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.project-meta dt {
    color: var(--subtle);
    font-size: 12px;
}
.project-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}
.starting-price {
    padding-bottom: 12px;
}
.starting-price span,
.starting-price small {
    display: block;
    color: var(--subtle);
    font-size: 11px;
}
.starting-price strong {
    display: block;
    margin: 2px 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.1;
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 0;
}
.feature-tags span {
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 10px;
}
.purchase-form {
    border-top: 1px solid var(--line);
}
.plan-selector {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.plan-selector legend {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}
.plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.plan-option {
    position: relative;
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0a090e;
    cursor: pointer;
}
.plan-option:hover {
    border-color: var(--line-strong);
}
.plan-option:has(input:checked) {
    border-color: var(--violet);
    background: rgba(124, 58, 237, .1);
}
.plan-option:has(input:focus-visible) {
    outline: 3px solid rgba(160, 108, 255, .5);
    outline-offset: 2px;
}
.plan-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.plan-option-copy {
    min-width: 0;
}
.plan-option-copy strong,
.plan-option-copy small {
    display: block;
}
.plan-option-copy strong {
    color: var(--text);
    font-size: 13px;
}
.plan-option-copy small {
    margin-top: 3px;
    color: var(--subtle);
    font-size: 9px;
    line-height: 1.35;
}
.plan-option-price {
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}
.plan-option.unavailable {
    opacity: .5;
    cursor: not-allowed;
}
.payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.payment-summary strong,
.payment-summary span {
    display: block;
}
.payment-summary strong {
    font-size: 12px;
}
.payment-summary div span {
    color: var(--subtle);
    font-size: 10px;
}
.selected-plan-price {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.purchase-submit {
    width: 100%;
}
.purchase-note {
    margin-top: 10px;
    color: var(--subtle);
    font-size: 10px;
    text-align: center;
}
.other-payments {
    border-top: 1px solid var(--line);
}
.other-payments h2 {
    font-size: 14px;
}
.other-payments p {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
}
.other-payment-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.other-payment-links a {
    flex: 1;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.other-payment-links a:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: var(--surface-2);
}
.project-information {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 8, 13, .72);
}
.product-information-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 72px;
    align-items: start;
}
.compatibility-panel {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}
.compatibility-panel h2 {
    margin-bottom: 22px;
    font-size: 24px;
}
.compatibility-panel dl {
    margin: 0;
}
.compatibility-panel dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.compatibility-panel dt {
    color: var(--subtle);
    font-size: 12px;
}
.compatibility-panel dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.media-dialog {
    width: min(calc(100% - 32px), 1060px);
    max-width: none;
    max-height: calc(100svh - 32px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
}
.media-dialog::backdrop {
    background: rgba(3, 3, 5, .88);
    backdrop-filter: blur(8px);
}
.dialog-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #09080d;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}
.dialog-heading {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.dialog-heading .eyebrow {
    margin-bottom: 3px;
}
.dialog-heading h2 {
    font-size: 20px;
}
.dialog-close {
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border-color: var(--line);
    background: var(--surface);
    font-size: 24px;
    font-weight: 400;
}
.video-frame {
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.dialog-external-link {
    display: block;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}
.image-dialog {
    width: min(calc(100% - 32px), 1280px);
}
.image-dialog .dialog-shell {
    min-height: 120px;
}
.image-dialog .dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(9, 8, 13, .9);
}
.image-dialog img {
    width: 100%;
    max-height: calc(100svh - 34px);
    object-fit: contain;
}
body.dialog-open {
    overflow: hidden;
}

@media (max-width: 1040px) {
    .hero-content {
        grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
        gap: 40px;
    }
    .project-purchase-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .site-header-inner {
        grid-template-columns: auto 1fr auto;
    }
    .nav-toggle {
        justify-self: end;
        order: 2;
    }
    .primary-nav {
        width: auto;
        top: 72px;
        left: 16px;
        right: 16px;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
    }
    .header-tools {
        order: 3;
    }
    .discord-link {
        display: none;
    }
    .hero {
        height: auto;
        min-height: 0;
        padding: 72px 0;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-preview {
        transform: none;
    }
    .project-purchase-layout {
        grid-template-columns: 1fr;
    }
    .purchase-panel {
        position: static;
    }
    .product-information-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .compatibility-panel {
        padding: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 80px;
        padding: 8px 0;
    }
    .site-header-inner {
        width: min(calc(100% - 16px), var(--container));
        height: 64px;
        padding-left: 10px;
    }
    .brand-mark {
        width: 44px;
    }
    .brand-mark img {
        width: 38px;
    }
    .header-action .button {
        min-height: 38px;
        font-size: 12px;
    }
    .nav-toggle {
        width: 38px;
        height: 38px;
    }
    .hero {
        padding: 48px 0 56px;
    }
    .hero-meta {
        grid-template-columns: 1fr;
    }
    .hero-meta div {
        width: auto;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero-preview-label {
        position: static;
        padding: 14px;
    }
    .hero-preview-label .status-badge {
        display: none;
    }
    .hero-preview-label button {
        padding-inline: 10px;
        font-size: 11px;
    }
    .project-showcase {
        padding: 24px 0 52px;
    }
    .media-status {
        top: 10px;
        right: 10px;
    }
    .media-expand-label {
        display: none;
    }
    .media-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .purchase-heading,
    .purchase-description,
    .project-meta,
    .starting-price,
    .feature-tags,
    .purchase-form,
    .other-payments {
        padding-left: 16px;
        padding-right: 16px;
    }
    .purchase-heading h1 {
        font-size: 26px;
    }
    .purchase-heading {
        flex-direction: column;
    }
    .plan-options {
        grid-template-columns: 1fr;
    }
    .plan-option {
        min-height: 72px;
    }
    .other-payment-links {
        flex-wrap: wrap;
    }
    .other-payment-links a {
        min-width: calc(50% - 4px);
    }
    .dialog-heading {
        min-height: 64px;
        padding: 12px;
    }
    .dialog-heading h2 {
        font-size: 16px;
    }
}
