/* =========================================================
   TetraGammaTron Labs — main stylesheet
   Modeled on the TankOdds theme: dark analytical look,
   card-based homepage, faint hero background image.
   ========================================================= */

@font-face {
    font-family: "Sloan CMEye Fixed";
    src: url("../fonts/Sloan-CMEye-Fixed.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Skip-to-content link: invisible until keyboard focused */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-to-content:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 99999;
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

/* Visually hidden — present in DOM for screen readers, not visible */
.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;
}

:root {
    --bg: #0b0f14;
    --panel: #121821;
    --border: #1e2733;
    --text: #e5e7eb;
    --muted: #8a93a3;
    --accent: #3b82f6;
    --accent-bright: #5bbcff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent);
}

main {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(91, 188, 255, 0.95);
    outline-offset: 3px;
}

/* =========================
   HEADER
========================= */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    background-color: var(--bg);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-right: 24px;
    flex-shrink: 0;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

/* Header text, shadowed like the TankOdds hero text */
.logo-text {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    overflow: visible;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--text);
}

/* =========================
   HOMEPAGE — background image
   (replaces the TankOdds matrix background)
========================= */

.main-layout {
    position: relative;
}

/* Full-width band behind the top of the page. The image sits up near the
   header, and a soft single fade at the bottom blends it into the page. */
/*
 * Background art rules:
 *   - always full viewport width  (background-size: 100% auto)
 *   - always anchored to its top   (background-position: top center)
 *   => resizing only scales the image; the top edge never clips, ever.
 * `tetragammatron-bg-top.png` is the source PNG with its tall pure-black sky
 * margin trimmed off, so anchoring to the top puts the artwork up high
 * instead of below a slab of black. The wrap's aspect-ratio matches that
 * trimmed image so it fills the band exactly at every width; min-height keeps
 * a sensible band on narrow screens (extra space below just stays transparent).
 */
.tgt-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 1672 / 488;
    min-height: 460px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.tgt-bg-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/tetragammatron-bg-top.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.tgt-bg-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 20, 0) 62%, var(--bg) 100%);
}

/* Mobile-only: drop the 460px min-height so the bg-wrap sizes to the
   image's natural aspect ratio (1672/488) instead of bloating into a
   tall block on iPhone. Desktop styles above are untouched. */
@media (max-width: 600px) {
    .tgt-bg-wrap {
        min-height: 0;
    }
}

/* Everything else sits above the background */
.home-banner,
.hero,
.home-cards-section,
.home-explainer-section,
.page-content {
    position: relative;
    z-index: 1;
}

/* =========================
   HOMEPAGE — logo + name banner
========================= */

.home-banner {
    padding: 24px 0 14px;
    text-align: center;
}

.home-banner-img {
    width: min(540px, 82%);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

/* =========================
   HERO
========================= */

.hero {
    padding: 0;
    text-align: center;
}

.hero-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-pill {
    display: inline-block;
    background: #182030;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 44px;
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.accent {
    color: var(--accent);
}

.hero-sub {
    max-width: 720px;
    margin: 0 auto 28px;
    color: var(--muted);
    line-height: 2;
}

/* Per-line highlight — background hugs only the rendered text on each row */
.hero-sub span {
    display: inline;
    background: rgba(18, 24, 32, 0.72);
    padding: 3px 10px;
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ── Homepage hub tweaks ─────────────────────────────────── */
.home-hub-hero {
    padding-top: 6px;
    padding-bottom: 6px;
}

.home-hub-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-top: 0;
    margin-bottom: 10px;
}

.home-title-white {
    color: #fff;
}

/* Home hero title colors, sampled from the banner logo above it:
   cream wordmark (#feeec3), gold subtitle (#fec304), red separator dots. */
.home-title-dot {
    color: #ef4444;
}

.home-title-cream {
    color: #feeec3;
}

.home-title-gold {
    color: #fec304;
}

.home-hero-sub span {
    font-size: 18px !important;
    color: var(--muted) !important;
    line-height: 1.5;
    background: rgba(4, 7, 11, 0.58);
    padding: 4px 11px;
    border-radius: 8px;
}

/* =========================
   HOMEPAGE — card rows
========================= */

.home-cards-section {
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.home-cards-section--gapped {
    padding-top: 30px;
    padding-bottom: 28px;
}

/* ── Shared image card ───────────────────────────────────── */
main .home-card {
    display: flex;
    flex-direction: column;
    background-color: var(--panel) !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
    transition: border-color 0.18s, transform 0.16s;
}

main .home-card:hover {
    border-color: rgba(91, 188, 255, 0.4);
    transform: translateY(-2px);
}

main .home-card:focus-visible,
.home-text-card:focus-visible {
    border-color: rgba(91, 188, 255, 0.65);
    transform: translateY(-2px);
}

/* Text on top — explicit dark bg so the page background never shows through.
   Fixed min-height reserves the same text-area height on every card so all the
   logos below start at the same line (longest copy is ~111px at 4-up). This
   panel-colored block reads as a "tab" above the black image area. */
.home-card-body {
    padding: 10px 12px 8px;
    background-color: var(--panel) !important;
    min-height: 128px;
}

.home-card-body h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #fe7f03; /* trial: logo flame orange title */
    line-height: 1.25;
}

.home-card-body p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: #feeec3; /* trial: logo cream off-white body */
}

/* Image area — black backdrop for every logo, contain, centered both ways */
.home-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #000 !important;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-card-img img,
.home-card-img video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 12px;
    background-color: transparent !important;
}

/* Fade at the bottom of the image, blending into the black */
.home-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(transparent, #000);
    pointer-events: none;
}

/* ── Card grid ───────────────────────────────────────────── */
.home-sims-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1080px) {
    .home-sims-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-sims-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Optional "featured" card variant (kept from the TankOdds look) */
.home-card-game-badge {
    display: inline-block;
    background: #f5c842;
    color: #050a0f;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 6px;
}

main .home-card--featured .home-card-body h3 {
    color: #f5c842;
    margin: 0;
}

.home-card-game-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.home-card-game-title-row .home-card-game-badge {
    margin-bottom: 0;
}

/* ── Text-only clickable cards ───────────────────────────── */
.home-text-row {
    padding-top: 2px;
    padding-bottom: 36px;
}

.home-text-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-text-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

a.home-text-card {
    display: block;
    background-color: var(--panel) !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, transform 0.16s;
}

a.home-text-card:hover {
    border-color: rgba(91, 188, 255, 0.4);
    transform: translateY(-2px);
}

a.home-text-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text);
}

a.home-text-card p {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* =========================
   HOMEPAGE — SEO explainer
========================= */

.home-explainer-section {
    padding: 30px 0 56px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.seo-explainer-inner {
    max-width: 860px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 14px 0 22px;
    color: var(--muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.footer-left a {
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.footer-left a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    color: var(--muted);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.footer-social a:hover {
    color: var(--text);
}

.footer-disclaimer {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding: 10px 16px 0;
    text-align: center;
    font-size: 11px;
    color: #4a5264;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .main-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .home-text-grid,
    .home-text-grid--four {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 30px;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .home-sims-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PAGE CONTENT — privacy / support / contact / static pages
   Mirrors the TankOdds page styling so the family of sites looks
   coherent. Keep this block in sync with tankodds-theme/main.css
   .page-content / .content-section / .faq-item rules.
========================= */

.page-content {
    padding: 60px 0 80px;
}

.page-content .container {
    max-width: 820px;
}

.page-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: -24px 0 32px;
}

.page-content h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 40px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.content-section {
    margin-bottom: 36px;
}

.content-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.content-section p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 12px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    padding-left: 20px;
    margin: 0 0 14px;
    color: var(--muted);
}

.content-section li {
    line-height: 1.75;
    margin: 0 0 10px;
}

.content-section li:last-child {
    margin-bottom: 0;
}

.content-section a {
    color: var(--accent);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.content-section strong {
    color: var(--text);
}

.page-content code {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent);
    font-family: monospace;
}

/* FAQ-style Q&A blocks used inside .content-section for setup /
   troubleshooting / per-question sections — same aesthetic as
   tankodds-theme .faq-item. */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.faq-item p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 10px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-section-heading {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* =========================
   CONTACT / SUPPORT — direct line
   Intentionally NOT shrunk (tankodds shrinks this to 13px; on a support
   page the email is the thing users came for, so it inherits body size
   and the address itself is bold + accent so it reads as the primary CTA).
========================= */

.contact-direct {
    margin: 12px 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-direct a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-direct a:hover {
    text-decoration: underline;
}

/* =========================
   SUGGESTION / SUPPORT FORM
========================= */

.suggestion-form {
    max-width: 560px;
    margin-top: 8px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-optional {
    font-weight: 400;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.form-required {
    color: var(--accent);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    padding: 10px 12px;
    width: 100%;
    transition: border-color 0.15s;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-actions {
    margin-top: 8px;
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.btn-submit:hover {
    opacity: 0.85;
}

.suggestion-feedback {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.suggestion-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.suggestion-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.suggestion-error a {
    color: var(--accent);
}

/* =========================
   COOKIE BANNER
   Ported verbatim from tankodds-theme so the family of sites stays
   visually consistent.
========================= */

.cookie-banner {
    display: none; /* shown by JS if not dismissed */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(11, 15, 20, 0.68);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 12px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 10px;
    color: #4a5264;
}
.cookie-banner a {
    color: var(--accent);
    text-decoration: none;
}
.cookie-banner a:hover {
    text-decoration: underline;
}
.cookie-dismiss {
    background: transparent;
    border: 1px solid #1a222e;
    border-radius: 2px;
    color: #4a5264;
    font-size: 10px;
    font-family: inherit;
    padding: 1px 5px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.3;
}
.cookie-dismiss:hover {
    border-color: #2e3d4f;
    color: var(--muted);
}

/* =========================
   GRANTS PAGE — credential & portfolio tables
   Scoped under .grants-page so they don't leak to other templates.
========================= */

.grants-page .grants-table-wrap {
    overflow-x: auto;
    margin: 16px 0 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.grants-page .grants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    min-width: 640px;
}

.grants-page .grants-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--panel);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.grants-page .grants-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.grants-page .grants-table tbody tr:last-child td {
    border-bottom: none;
}

.grants-page .grants-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.grants-page .grants-table tbody td:first-child {
    color: var(--text);
    font-weight: 500;
    white-space: normal;
}

.grants-page .grants-table th:first-child,
.grants-page .grants-table td:first-child {
    width: 65%;
}

.grants-page .grants-table th:nth-child(2),
.grants-page .grants-table td:nth-child(2) {
    width: 35%;
}

@media (max-width: 720px) {
    .grants-page .grants-table {
        font-size: 13px;
    }
    .grants-page .grants-table thead th,
    .grants-page .grants-table tbody td {
        padding: 10px 12px;
    }
}

.grants-page .grants-publication {
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 16px;
    margin: 18px 0 22px;
}

.grants-page .grants-publication:last-child {
    margin-bottom: 0;
}

.grants-page .grants-pub-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}

.grants-page .grants-pub-citation {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 8px;
}

.grants-page .grants-pub-citation strong {
    color: var(--text);
}

.grants-page .grants-pub-links {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.grants-page .grants-pub-links a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.grants-page .grants-pub-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   CMEYE — product landing / sales page
   Scoped under .cmeye-page so nothing leaks to other templates.
   Dark analytical look consistent with the rest of the site;
   screenshots presented in browser-style frames with a subtle
   ambient zoom (hero) and scroll-reveal (feature shots).
   ========================================================= */

.cmeye-page {
    --cme-blue: #2447d8;        /* CMEye app primary (sidebar/launch) */
    --cme-green: #1f7a3d;       /* CMEye app "Continue/Run" green */
    --cme-amber: #f5c842;       /* CMEye app accent */
    overflow-x: clip;
}

.cmeye-page .container {
    max-width: 1180px;
}

/* ── Shared section rhythm ───────────────────────────────── */
.cmeye-section {
    padding: 56px 0;
    position: relative;
    z-index: 1;
}

.cmeye-narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cmeye-center {
    text-align: center;
}

/* Centered prose blocks. Higher specificity than `.cmeye-page .cmeye-section p`
   (which sets margin:0 0 16px) so the auto side-margins actually win and the
   text-align inherited from the centered parent isn't fighting a left-pinned box. */
.cmeye-page .cmeye-center-p,
.cmeye-page .cmeye-section p.cmeye-center-p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cmeye-h2 {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.cmeye-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 14px;
}

/* ── Buttons (primary CTAs — intentionally prominent) ────── */
.cmeye-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 10px;
    transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
    border: 1px solid transparent;
    line-height: 1;
}

.cmeye-btn-primary {
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    color: #fff;
    box-shadow: 0 8px 26px rgba(59, 130, 246, 0.32);
}

.cmeye-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(59, 130, 246, 0.45);
}

.cmeye-btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
    color: var(--text);
}

.cmeye-btn-ghost:hover {
    border-color: rgba(91, 188, 255, 0.55);
    transform: translateY(-2px);
}

.cmeye-btn-lg {
    font-size: 17px;
    padding: 17px 34px;
}

.cmeye-btn-arrow {
    font-size: 1.05em;
    transition: transform 0.16s;
}

.cmeye-btn-primary:hover .cmeye-btn-arrow {
    transform: translateX(3px);
}

/* ── Browser-style screenshot frame ──────────────────────── */
.cmeye-frame {
    margin: 0;
    background: #0e141c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.cmeye-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: #121a24;
    border-bottom: 1px solid var(--border);
}

.cmeye-frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a3543;
}

.cmeye-frame-bar span:nth-child(1) { background: #e0625b; }
.cmeye-frame-bar span:nth-child(2) { background: #e3b341; }
.cmeye-frame-bar span:nth-child(3) { background: #3fb950; }

.cmeye-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ambient Ken-Burns zoom on the hero shot */
.cmeye-frame--kenburns img {
    animation: cmeye-kenburns 26s ease-in-out infinite alternate;
    transform-origin: 60% 38%;
}

@keyframes cmeye-kenburns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.07); }
}

/* Scroll-reveal: slide + fade as the frame enters the viewport */
.cmeye-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmeye-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.cmeye-reveal.is-visible img {
    animation: cmeye-settle-zoom 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cmeye-settle-zoom {
    0%   { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ── HERO ────────────────────────────────────────────────── */
.cmeye-hero {
    padding: 46px 0 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Soft glow behind the hero */
.cmeye-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 50%;
    width: 1100px;
    height: 540px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cmeye-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 44px;
    align-items: start;
}

/* Logo sits to the right of the wordmark; baseline-ish alignment with the
   big "CMEye" type so the two read as one lockup. */
.cmeye-brand-row {
    align-items: center;
}

/* Logo + wordmark lockup */
.cmeye-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
}

.cmeye-mark {
    width: clamp(72px, 8.4vw, 92px);
    height: auto;
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

/* "CMEye" wordmark in solid iVista green. #0e7a2b is the app brand color;
   #1f9d3d is the brighter --brand-soft shade the app uses on its dark
   sidebar, used here for legibility on the dark hero. Solid fill (no
   gradient/clip) so it always renders green, never washes out. */
.cmeye-hero-copy h1 {
    font-size: clamp(44px, 6.4vw, 68px);
    font-weight: 400;
    line-height: 0.94;
    margin: 0;
    display: block;
}

.cmeye-wordmark {
    display: block;
    font-family: "Sloan CMEye Fixed", sans-serif;
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0;
    color: #feeec3;
    text-shadow: 0 2px 20px rgba(254, 238, 195, 0.12);
    transform: translateY(-0.01em);
    transform-origin: left center;
}

.cmeye-tagline {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.45;
    color: var(--text);
    margin: 0 0 14px;
}

.cmeye-tagline strong {
    color: var(--accent-bright);
}

.cmeye-subline {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 26px;
}

.cmeye-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.cmeye-hero-note {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.cmeye-hero-shot {
    position: relative;
}

/* ── STAT STRIP ──────────────────────────────────────────── */
.cmeye-stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(18, 24, 33, 0.5);
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.cmeye-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.cmeye-stat {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.cmeye-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-bright);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cmeye-stat-label {
    display: block;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* ── INTRO / generic prose in CMEye sections ─────────────── */
.cmeye-page .cmeye-section p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
    margin: 0 0 16px;
}

.cmeye-page .cmeye-section p:last-child {
    margin-bottom: 0;
}

.cmeye-page .cmeye-section strong {
    color: var(--text);
}

.cmeye-page code {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.86em;
    color: var(--accent-bright);
    font-family: monospace;
}

/* ── FEATURE SHOWCASES (alternating) ─────────────────────── */
.cmeye-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.cmeye-feature:last-child {
    margin-bottom: 0;
}

.cmeye-feature--reverse .cmeye-feature-copy {
    order: 2;
}

.cmeye-feature--reverse .cmeye-frame {
    order: 1;
}

.cmeye-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.28);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.cmeye-feature-copy h3 {
    font-size: clamp(21px, 2.6vw, 27px);
    font-weight: 700;
    line-height: 1.22;
    margin: 0 0 14px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.cmeye-checks {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.cmeye-checks li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.cmeye-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.cmeye-checks li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    width: 5px;
    height: 9px;
    border: solid #4ade80;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

/* ── DELIVERABLES GRID ───────────────────────────────────── */
.cmeye-deliverables .cmeye-narrow {
    margin-bottom: 38px;
}

.cmeye-deliv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cmeye-deliv-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
    transition: border-color 0.18s, transform 0.16s;
}

.cmeye-deliv-card:hover {
    border-color: rgba(91, 188, 255, 0.4);
    transform: translateY(-3px);
}

.cmeye-deliv-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 9px;
    border-radius: 5px;
    margin-bottom: 13px;
}

.cmeye-deliv-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.cmeye-deliv-card p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: var(--muted);
    margin: 0 !important;
}

/* ── LIBRARY section reuses .cmeye-feature ───────────────── */

/* ── DARK-THEME showcase (single centered wide frame) ────── */
.cmeye-darktheme {
    border-top: 1px solid var(--border);
    background: rgba(8, 11, 16, 0.55);
}

.cmeye-darktheme .cmeye-narrow {
    margin-bottom: 32px;
}

.cmeye-frame--wide {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ── BETA CTA ────────────────────────────────────────────── */
.cmeye-beta {
    border-top: 1px solid var(--border);
    background:
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.12), transparent 65%),
        rgba(18, 24, 33, 0.4);
}

.cmeye-beta-contact {
    font-size: 18px !important;
    color: var(--text) !important;
    margin-top: 22px !important;
}

.cmeye-beta-contact a {
    color: var(--accent-bright);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 188, 255, 0.4);
}

.cmeye-beta-contact a:hover {
    border-bottom-color: var(--accent-bright);
}

/* ── FINAL LAUNCH ────────────────────────────────────────── */
.cmeye-final {
    text-align: center;
    padding-bottom: 80px;
}

.cmeye-final .cmeye-btn {
    margin-top: 8px;
}

.cmeye-final-url {
    margin-top: 18px !important;
    font-family: monospace;
    font-size: 13px !important;
    color: var(--muted) !important;
    letter-spacing: 0.02em;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .cmeye-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cmeye-hero-shot {
        order: 2;
    }
    .cmeye-feature {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 52px;
    }
    /* On a single column, image always sits below the copy */
    .cmeye-feature--reverse .cmeye-feature-copy { order: 1; }
    .cmeye-feature--reverse .cmeye-frame { order: 2; }
    .cmeye-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    .cmeye-deliv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .cmeye-section { padding: 40px 0; }
    .cmeye-stats-grid,
    .cmeye-deliv-grid {
        grid-template-columns: 1fr;
    }
    .cmeye-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Respect reduced-motion: no ambient zoom, instant reveal */
@media (prefers-reduced-motion: reduce) {
    .cmeye-frame--kenburns img,
    .cmeye-reveal.is-visible img {
        animation: none;
    }
    .cmeye-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── CLICK-TO-ENLARGE LIGHTBOX ───────────────────────────── */
.cmeye-page .cmeye-frame img {
    cursor: zoom-in;
}

.cmeye-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 7, 11, 0.93);
    cursor: zoom-out;
    animation: cmeye-lb-fade 0.18s ease;
}

.cmeye-lightbox.is-open {
    display: flex;
}

@keyframes cmeye-lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cmeye-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    cursor: default;
}

.cmeye-lightbox-close {
    position: fixed;
    top: 14px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.cmeye-lightbox-close:hover {
    opacity: 1;
}

/* =========================================================
   BURNGAUGE — macOS app landing page (/burngauge/)
   Modeled on the TankOdds app page; flame-orange + battery
   (green/yellow/red) accents over the site's dark theme.
========================================================= */
.bg-landing {
    --bg-flame: #fe7f03;
    --bg-cream: #feeec3;
    --bg-green: #22c55e;
    --bg-yellow: #f5c842;
    --bg-red: #ef4444;
    padding-bottom: 40px;
}

.bg-landing .bg-section {
    padding: 30px 0;
}

.bg-section-head {
    max-width: 760px;
    margin: 0 0 26px;
}
.bg-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.bg-section-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--bg-flame);
}
.bg-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

/* ── Hero ──────────────────────────────────────────────── */
.bg-hero {
    padding: 34px 0 18px;
}
.bg-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
}
.bg-hero-pill {
    display: inline-block;
    background: rgba(254, 127, 3, 0.12);
    border: 1px solid rgba(254, 127, 3, 0.4);
    color: var(--bg-flame);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}
.bg-hero-title {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--bg-cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.bg-hero-title-accent {
    display: block;
    color: var(--bg-flame);
}
.bg-hero-sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 26px;
    max-width: 560px;
}
.bg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.bg-hero-note {
    font-size: 13.5px;
    color: var(--muted);
}

/* App Store button */
.bg-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    transition: transform 0.16s, box-shadow 0.16s;
}
.bg-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.bg-store-btn-icon {
    width: 30px;
    height: 30px;
}
.bg-store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}
.bg-store-btn-eyebrow {
    font-size: 11px;
    letter-spacing: 0.02em;
}
.bg-store-btn-label {
    font-size: 19px;
    font-weight: 700;
}

/* Mac-style window frame around the hero demo video */
.bg-window {
    border-radius: 14px;
    overflow: hidden;
    background: #0a0d12;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.bg-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    background: #1b222c;
    border-bottom: 1px solid var(--border);
}
.bg-window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.bg-window-dot--red { background: #ff5f57; }
.bg-window-dot--yellow { background: #febc2e; }
.bg-window-dot--green { background: #28c840; }
.bg-window-media {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* ── Quick feature cards ───────────────────────────────── */
.bg-features-quick {
    padding: 18px 0 8px;
}
.bg-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.bg-quick-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--bg-flame);
    border-radius: 10px;
    padding: 18px 16px;
}
.bg-quick-card--green { border-top-color: var(--bg-green); }
.bg-quick-card--orange { border-top-color: var(--bg-flame); }
.bg-quick-card--yellow { border-top-color: var(--bg-yellow); }
.bg-quick-card--neon { border-top-color: var(--accent-bright); }
.bg-quick-card-tag {
    font-size: 15px;
    font-weight: 700;
    color: var(--bg-cream);
    margin-bottom: 8px;
}
.bg-quick-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

/* ── At-a-glance status chips ──────────────────────────── */
.bg-glance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bg-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--panel);
}
.bg-status-chip::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.bg-status-chip--green { color: var(--bg-green); border-color: rgba(34,197,94,0.4); }
.bg-status-chip--green::before { background: var(--bg-green); }
.bg-status-chip--yellow { color: var(--bg-yellow); border-color: rgba(245,200,66,0.4); }
.bg-status-chip--yellow::before { background: var(--bg-yellow); }
.bg-status-chip--red { color: var(--bg-red); border-color: rgba(239,68,68,0.4); }
.bg-status-chip--red::before { background: var(--bg-red); }

/* ── Screenshot gallery ────────────────────────────────── */
.bg-shots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.bg-shot-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bg-zoom-trigger {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #1a1206;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    display: block;
    transition: border-color 0.16s, transform 0.16s;
}
.bg-zoom-trigger:hover,
.bg-zoom-trigger:focus-visible {
    border-color: rgba(254, 127, 3, 0.55);
    transform: translateY(-3px);
}
.bg-zoom-trigger img {
    display: block;
    width: 100%;
    height: auto;
}
.bg-shot-card figcaption {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.bg-shot-card figcaption strong {
    display: block;
    color: var(--bg-cream);
    font-size: 15px;
    margin-bottom: 2px;
}

/* Wide menu-bar hover screenshot */
.bg-hover-card {
    margin: 26px auto 0;
    max-width: 760px;
    text-align: center;
}
.bg-zoom-trigger--bare {
    background: transparent;
    border-color: var(--border);
}
.bg-hover-card figcaption {
    margin-top: 12px;
    font-size: 14.5px;
    color: var(--muted);
}
.bg-hover-card figcaption strong {
    color: var(--bg-cream);
}

/* ── Feature list ──────────────────────────────────────── */
.bg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}
.bg-feature-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}
.bg-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--bg-flame);
}

/* ── Privacy + specs ───────────────────────────────────── */
.bg-privacy-section .bg-section-head p { margin-bottom: 12px; }
.bg-privacy-section a { color: var(--accent-bright); }

.bg-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.bg-spec-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 22px 24px;
}
.bg-spec-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    color: var(--bg-flame);
}
.bg-spec-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
}
.bg-spec-card li { margin-bottom: 6px; line-height: 1.5; }
.bg-spec-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.bg-spec-card strong { color: var(--bg-cream); }

/* ── Bottom promo video ────────────────────────────────── */
.bg-promo-section { padding-top: 14px; }
.bg-promo-link {
    display: block;
    max-width: 420px;
    margin: 0 auto;
    text-decoration: none;
}
.bg-promo-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s, box-shadow 0.18s;
}
.bg-promo-link:hover .bg-promo-frame {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(254, 127, 3, 0.28);
}
.bg-promo-media {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}
.bg-promo-cta {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--bg-flame);
}

/* ── FAQ ───────────────────────────────────────────────── */
.bg-faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.bg-faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    margin-bottom: 12px;
    overflow: hidden;
}
.bg-faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--bg-cream);
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.bg-faq-item summary::-webkit-details-marker { display: none; }
.bg-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--bg-flame);
    line-height: 1;
}
.bg-faq-item[open] summary::after { content: '\2013'; }
.bg-faq-answer {
    padding: 0 20px 16px;
    color: var(--muted);
}
.bg-faq-answer p { margin: 0 0 8px; line-height: 1.6; }
.bg-faq-answer p:last-child { margin-bottom: 0; }
.bg-faq-answer a { color: var(--accent-bright); }
.bg-faq-answer code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 13.5px;
    color: var(--bg-flame);
}
.bg-faq-footer {
    text-align: center;
    color: var(--muted);
    margin-top: 18px;
}
.bg-faq-footer a { color: var(--accent-bright); }

/* ── Disclaimer ────────────────────────────────────────── */
.bg-disclaimer {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.bg-disclaimer p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ── Lightbox ──────────────────────────────────────────── */
html.bg-zoom-open { overflow: hidden; }
.bg-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 11, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.bg-zoom-overlay[hidden] { display: none; }
.bg-zoom-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
.bg-zoom-close {
    position: fixed;
    top: 14px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 0.15s;
}
.bg-zoom-close:hover { opacity: 1; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
    .bg-hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .bg-hero-visual { max-width: 620px; margin: 0 auto; }
    .bg-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bg-shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .bg-quick-grid,
    .bg-shots-grid,
    .bg-feature-list,
    .bg-specs-grid { grid-template-columns: 1fr; }
    .bg-hero-title { font-size: 32px; }
}
