/* ============================================================
   Render BH — public-facing landing (quantxverse.com)
   Dark cosmic theme. NO secret-sauce terms. NO leaks of HOW it works.
   ============================================================ */

:root {
    /* medium-dark indigo theme — back to where the user originally approved.
       Dark enough to read as professional, light enough to keep the dark-blue
       identity without going pure cosmic-black. */
    --rbh-bg:        #1f2950;     /* deep indigo, professional */
    --rbh-bg-2:      #29345f;
    --rbh-card:      #344073;
    --rbh-card-2:    #3d4a82;
    --rbh-border:    #4f5a99;
    --rbh-border-2:  #6470b8;
    --rbh-text:      #ffffff;     /* pure white headlines */
    --rbh-text-2:    #ffffff;     /* per user: all body grey → white */
    --rbh-muted:     #e2e8f0;     /* near-white slate-200 for subtle text */

    --rbh-accent:    #a855f7;     /* punchier purple on dark */
    --rbh-accent-2:  #c084fc;
    --rbh-accent-3:  #818cf8;     /* indigo-400 reads brighter on the dark bg */
    --rbh-glow:      rgba(168, 85, 247, 0.40);
    --rbh-glow-2:    rgba(129, 140, 248, 0.30);

    --rbh-emerald:   #34d399;     /* brighter on dark */
    --rbh-amber:     #f59e0b;
    --rbh-red:       #f87171;

    --rbh-font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --rbh-mono:      'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--rbh-font);
    background: var(--rbh-bg);
    color: var(--rbh-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rbh-accent-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rbh-accent); }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.rbh-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.rbh-container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rbh-section {
    padding: 2.25rem 0;
    position: relative;
}

/* ----------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------- */
.rbh-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(31, 41, 80, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rbh-border);
}
.rbh-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rbh-brand {
    color: var(--rbh-text);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.rbh-brand strong {
    background: linear-gradient(135deg, var(--rbh-accent-3), var(--rbh-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}
.rbh-logo {
    display: inline-block;
    color: var(--rbh-accent);
    font-size: 1.4rem;
    line-height: 1;
    text-shadow: 0 0 18px var(--rbh-glow);
}
.rbh-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.rbh-nav-links a {
    color: var(--rbh-text-2);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}
.rbh-nav-links a:hover { color: var(--rbh-text); }
.rbh-nav-cta {
    background: var(--rbh-accent);
    color: #fff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
}
.rbh-nav-cta:hover { background: var(--rbh-accent-2); box-shadow: 0 0 18px var(--rbh-glow); }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.rbh-hero {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 50% 20%, rgba(168,85,247,0.18), transparent 70%),
        radial-gradient(700px 350px at 50% 100%, rgba(129,140,248,0.14), transparent 70%),
        var(--rbh-bg);
}
.rbh-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.35), transparent),
        radial-gradient(2px 2px at 50% 80%, rgba(255,255,255,0.30), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.30), transparent);
    background-size: 100% 100%;
    opacity: 0.6;
}

.rbh-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rbh-accent);
    background: rgba(124,58,237,0.10);
    border: 1px solid var(--rbh-border-2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.rbh-badge-coming {
    color: var(--rbh-amber);
    background: rgba(217,119,6,0.10);
    border-color: rgba(217,119,6,0.45);
}

.rbh-hero h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    color: var(--rbh-text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.rbh-accent {
    background: linear-gradient(135deg, #818cf8 0%, #a855f7 45%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 900;
}
.rbh-lede {
    font-size: 1.1rem;
    color: var(--rbh-text-2);
    max-width: 740px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
    font-weight: 500;
}
.rbh-lede strong { color: var(--rbh-text); font-weight: 800; }

.rbh-cta-row {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.rbh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: 1px solid transparent;
}
.rbh-btn-primary {
    background: linear-gradient(135deg, var(--rbh-accent-3), var(--rbh-accent));
    color: #fff !important;
    box-shadow: 0 8px 24px var(--rbh-glow);
}
.rbh-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px var(--rbh-glow);
}
.rbh-btn-ghost {
    background: transparent;
    color: var(--rbh-text-2) !important;
    border: 1px solid var(--rbh-border-2);
}
.rbh-btn-ghost:hover {
    color: var(--rbh-text) !important;
    border-color: var(--rbh-accent);
}

/* ----------------------------------------------------------------
   Headings
   ---------------------------------------------------------------- */
.rbh-section h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.75px;
    margin-bottom: 0.75rem;
    color: var(--rbh-text);
}
.rbh-section h2.rbh-h2-center,
.rbh-section .rbh-section-sub {
    text-align: center;
}
.rbh-section h2.rbh-h2-center {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin: 0 auto 0.6rem;
    color: var(--rbh-text);
}
.rbh-section .rbh-section-sub {
    color: var(--rbh-text-2);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.55;
}
.rbh-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rbh-text);
    margin-bottom: 0.5rem;
}

/* Center the badge above section h2 when both are present */
.rbh-section > .rbh-container > .rbh-badge,
.rbh-section > .rbh-container-narrow > .rbh-badge {
    display: block;
    width: max-content;
    margin: 0 auto 0.75rem;
}

/* ----------------------------------------------------------------
   Bar chart + canvas side-by-side section (mobile collapses to stacked)
   ---------------------------------------------------------------- */
.rbh-section-chart {
    background: var(--rbh-bg-2);
    border-top: 1px solid var(--rbh-border);
    border-bottom: 1px solid var(--rbh-border);
}
.rbh-side-by-side {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 1.25rem;
    align-items: stretch;
    margin-top: 0.75rem;
}
.rbh-side-card {
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border);
    border-radius: 14px;
    padding: 0.8rem 1.1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(79,70,229,0.06);
}
.rbh-side-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--rbh-accent);
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid rgba(124, 58, 237, 0.18);
}

.rbh-bars { display: flex; flex-direction: column; flex: 1; gap: 0.45rem; }
.rbh-bar { display: flex; flex-direction: column; }
.rbh-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.rbh-bar-label strong { font-size: 1rem; color: var(--rbh-text); font-weight: 800; }
.rbh-bar-label span {
    font-family: var(--rbh-mono);
    font-size: 0.7rem;
    color: var(--rbh-muted);
}
.rbh-bar-value {
    font-family: var(--rbh-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rbh-text);
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.rbh-mult {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
.rbh-bar-fill {
    height: 16px;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 14px;
}
/* SOLID bright bar colors per user — no gradient */
.rbh-bar-baseline .rbh-bar-fill {
    background: #ef4444;
    box-shadow: 0 2px 18px rgba(239, 68, 68, 0.55);
}
.rbh-bar-ours .rbh-bar-fill {
    background: #c084fc;
    box-shadow: 0 2px 22px rgba(192, 132, 252, 0.75);
}
.rbh-bar-caption {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--rbh-text-2);
    line-height: 1.45;
}
.rbh-bar-caption strong { color: var(--rbh-text); }

/* Bit-width scaling chart below the main bar chart */
.rbh-bitwidth-chart {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(165, 180, 252, 0.40);
}
.rbh-bw-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--rbh-accent);
    margin-bottom: 0.45rem;
    text-align: center;
}
.rbh-bw-bar {
    margin-bottom: 0.4rem;
}
.rbh-bw-bar:last-child { margin-bottom: 0; }
.rbh-bw-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    font-family: var(--rbh-mono);
    margin-bottom: 0.15rem;
}
.rbh-bw-tag {
    font-size: 0.85rem;
    color: var(--rbh-text);
    font-weight: 800;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 600px) {
    .rbh-bw-tag { white-space: normal; }
    .rbh-bw-tag span { display: block; margin-left: 0; font-size: 0.7rem; }
}
.rbh-bw-tag span {
    font-weight: 600;
    color: var(--rbh-accent-2);
    margin-left: 0.4rem;
}
.rbh-bw-win {
    font-size: 0.78rem;
    color: var(--rbh-text-2);
    text-align: right;
    white-space: nowrap;
}
.rbh-bw-win strong {
    color: #34d399;
    font-size: 1.05rem;
    font-weight: 800;
    margin-left: 0.25rem;
}
.rbh-bw-win strong::before {
    content: "\2B50\00A0";
    font-size: 0.85rem;
    margin-right: 0.1rem;
}
.rbh-bw-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(165, 180, 252, 0.15);
    border-radius: 4px;
    overflow: hidden;
}
.rbh-bw-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 5px;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.85);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}
.rbh-bw-bar-new .rbh-bw-fill {
    background: #4ade80;
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.95);
}
.rbh-bw-bar-new .rbh-bw-tag { color: #fef3c7; }
.rbh-bw-bar-new .rbh-bw-win strong { color: #fde68a; }

/* Paired softmax-vs-ours bars (per bit-width) */
.rbh-bw-pair {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.rbh-bw-pair-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 0.6rem;
}
.rbh-bw-pair-label {
    font-family: var(--rbh-mono);
    font-size: 0.72rem;
    text-align: right;
    white-space: nowrap;
}
.rbh-bw-pair-label-soft { color: #ffffff; }
.rbh-bw-pair-label-ours { color: #ffffff; font-weight: 700; }
.rbh-bw-track-soft {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-radius: 4px;
    overflow: hidden;
}
.rbh-bw-fill-soft {
    height: 100%;
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
    border-radius: 3px;
}
.rbh-bw-pair .rbh-bw-fill { min-width: 6px; }

@media (max-width: 600px) {
    .rbh-bw-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
    .rbh-bw-win { text-align: left; }
    .rbh-bw-pair-row { grid-template-columns: 1fr; gap: 0.15rem; }
    .rbh-bw-pair-label { text-align: left; font-size: 0.7rem; }
}

@media (max-width: 900px) {
    .rbh-side-by-side { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Animated canvas (lives inside .rbh-side-card on the right column)
   ---------------------------------------------------------------- */
.rbh-canvas-wrap {
    position: relative;
    flex: 1;
    /* MUCH lighter canvas wrap per user — soft indigo gradient,
       provides contrast vs the surrounding dark page theme */
    background: linear-gradient(180deg, #eef2ff 0%, #c7d2fe 100%);
    border: 1px solid #818cf8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.20);
    min-height: 280px;
}
#rbh-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

/* ----------------------------------------------------------------
   Energy section (Track B Layer 1 result)
   ---------------------------------------------------------------- */
.rbh-section-energy {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(6, 182, 212, 0.03) 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.20);
    border-bottom: 1px solid rgba(6, 182, 212, 0.20);
}
.rbh-energy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.rbh-energy-card {
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border);
    border-radius: 14px;
    padding: 1.4rem 1.25rem;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rbh-energy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.rbh-energy-card-win {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}
.rbh-energy-card-ratio {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.20);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
}
.rbh-energy-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rbh-accent);
    margin-bottom: 0.6rem;
}
.rbh-energy-num {
    font-size: 2.6rem;
    font-weight: 900;
    font-family: var(--rbh-mono);
    line-height: 1;
    margin: 0.3rem 0 0.7rem;
}
.rbh-energy-detail {
    font-size: 0.85rem;
    color: var(--rbh-text-2);
    line-height: 1.55;
}
.rbh-energy-detail strong {
    color: var(--rbh-text);
}
@media (max-width: 760px) {
    .rbh-energy-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Credibility row
   ---------------------------------------------------------------- */
.rbh-cred-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.rbh-cred {
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border);
    border-radius: 12px;
    padding: 1.1rem 1rem;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}
.rbh-cred:hover {
    border-color: var(--rbh-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
}
.rbh-cred-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--rbh-accent);
    font-family: var(--rbh-mono);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.rbh-cred strong {
    display: block;
    color: var(--rbh-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.rbh-cred span {
    display: block;
    color: var(--rbh-text-2);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Future-proof callout
   ---------------------------------------------------------------- */
.rbh-section-future {
    text-align: center;
    background:
        radial-gradient(800px 400px at 50% 50%, rgba(124,58,237,0.10), transparent 70%),
        var(--rbh-bg);
    border-bottom: 1px solid var(--rbh-border);
}
.rbh-section-future h2 {
    background: linear-gradient(135deg, var(--rbh-accent-3) 0%, var(--rbh-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.rbh-section-future p {
    font-size: 1.1rem;
    color: var(--rbh-text-2);
    line-height: 1.6;
}
.rbh-section-future p strong { color: var(--rbh-text); font-weight: 600; }

/* ----------------------------------------------------------------
   Arty A7 placeholder section
   ---------------------------------------------------------------- */
.rbh-section-arty {
    background: var(--rbh-bg-2);
    text-align: center;
}
.rbh-section-arty p {
    color: var(--rbh-text-2);
    max-width: 760px;
    margin: 0 auto 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
}
.rbh-arty-placeholder {
    max-width: 800px;
    margin: 0 auto;
    background: var(--rbh-card);
    border: 1px dashed var(--rbh-border-2);
    border-radius: 14px;
    padding: 1.4rem 1.25rem;
}
.rbh-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}
.rbh-placeholder-item {
    background: var(--rbh-bg);
    border: 1px solid var(--rbh-border);
    border-radius: 8px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.rbh-placeholder-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rbh-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.rbh-placeholder-value {
    display: block;
    font-family: var(--rbh-mono);
    font-size: 1.6rem;
    color: var(--rbh-amber);
    font-weight: 700;
}
.rbh-placeholder-caption {
    margin-top: 1.25rem !important;
    font-size: 0.78rem !important;
    color: var(--rbh-muted) !important;
    font-style: italic;
}

/* ----------------------------------------------------------------
   Math results section
   ---------------------------------------------------------------- */
.rbh-section-math {
    background: var(--rbh-bg);
}
.rbh-math-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.rbh-math-card {
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border);
    border-radius: 12px;
    padding: 1.25rem 1.15rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(79,70,229,0.05);
}
.rbh-math-card:hover {
    border-color: var(--rbh-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124,58,237,0.15);
}
.rbh-math-num {
    font-family: var(--rbh-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rbh-accent);
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
}
.rbh-math-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.rbh-math-card p {
    font-size: 0.9rem;
    color: var(--rbh-text-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.rbh-math-card p strong { color: var(--rbh-text); font-weight: 600; }
.rbh-math-meta {
    font-family: var(--rbh-mono);
    font-size: 0.72rem;
    color: var(--rbh-muted);
    padding-top: 0.85rem;
    border-top: 1px solid var(--rbh-border);
}

/* ----------------------------------------------------------------
   Patents
   ---------------------------------------------------------------- */
.rbh-section-patents {
    background: var(--rbh-bg-2);
    text-align: center;
}
.rbh-patent-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}
.rbh-patent-stat { flex: 0 1 240px; }
.rbh-patent-stat {
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border);
    border-radius: 12px;
    padding: 1.1rem 0.85rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(79,70,229,0.05);
}
.rbh-patent-stat strong {
    display: block;
    font-family: var(--rbh-mono);
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rbh-accent-3), var(--rbh-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.rbh-patent-stat span {
    font-size: 0.78rem;
    color: var(--rbh-text-2);
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
.rbh-section-contact {
    background:
        radial-gradient(900px 500px at 50% 50%, rgba(124,58,237,0.12), transparent 70%),
        var(--rbh-bg);
    text-align: center;
    border-top: 1px solid var(--rbh-border);
}
.rbh-section-contact p {
    color: var(--rbh-text-2);
    max-width: 540px;
    margin: 0 auto 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}
.rbh-contact-email {
    display: inline-block;
    font-family: var(--rbh-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rbh-accent) !important;
    background: var(--rbh-card);
    border: 1px solid var(--rbh-border-2);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
    box-shadow: 0 2px 10px rgba(79,70,229,0.06);
}
.rbh-contact-email:hover {
    border-color: var(--rbh-accent);
    box-shadow: 0 6px 22px var(--rbh-glow);
    color: var(--rbh-accent-3) !important;
    transform: translateY(-1px);
}
.rbh-contact-meta {
    font-size: 0.8rem !important;
    color: var(--rbh-muted) !important;
    font-family: var(--rbh-mono);
    margin: 0 !important;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.rbh-footer {
    padding: 1.25rem 0;
    background: var(--rbh-bg-2);
    border-top: 1px solid var(--rbh-border);
}
.rbh-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.rbh-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rbh-text-2);
    font-weight: 600;
    font-size: 0.95rem;
}
.rbh-footer-brand strong { color: var(--rbh-accent-2); font-weight: 800; }
.rbh-footer-legal {
    flex: 1;
    text-align: right;
    font-size: 0.75rem;
    color: var(--rbh-muted);
    line-height: 1.5;
    max-width: 700px;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
    .rbh-cred-grid,
    .rbh-math-grid,
    .rbh-patent-strip { grid-template-columns: 1fr 1fr; }
    .rbh-placeholder-grid { grid-template-columns: 1fr 1fr; }
    .rbh-hero-pillars { width: 92% !important; grid-template-columns: 1fr !important; }
    .rbh-side-by-side { width: 92% !important; }
}
@media (max-width: 640px) {
    .rbh-nav-links { gap: 0.85rem; }
    .rbh-nav-links a:not(.rbh-nav-cta) { display: none; }
    .rbh-cred-grid,
    .rbh-math-grid,
    .rbh-patent-strip,
    .rbh-placeholder-grid { grid-template-columns: 1fr; }
    .rbh-bar-value { font-size: 1rem; }
    .rbh-mult { font-size: 1.3rem; }
    .rbh-section { padding: 3rem 0; }
    .rbh-hero { padding-top: 7rem; padding-bottom: 4rem; }
    .rbh-footer-row { flex-direction: column; align-items: center; text-align: center; }
    .rbh-footer-legal { text-align: center; }
    .rbh-energy-grid { grid-template-columns: 1fr; }
    .rbh-side-card-title { letter-spacing: 1px; font-size: 0.7rem; }
    .rbh-side-card { padding: 0.7rem 0.85rem; }
}

/* Side-card overflow safety on mobile */
.rbh-side-card {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
.rbh-bw-pair-row { min-width: 0; }
.rbh-bw-track,
.rbh-bw-track-soft { min-width: 0; }

/* Proof-stack table: stacks per-row on mobile */
@media (max-width: 780px) {
    .rbh-proof-wrap { overflow-x: visible !important; }
    .rbh-proof-table { min-width: 0 !important; display: block; }
    .rbh-proof-table thead { display: none; }
    .rbh-proof-table tbody { display: block; }
    .rbh-proof-table tr {
        display: block;
        margin-bottom: 0.85rem;
        border: 1px solid var(--rbh-border);
        border-radius: 8px;
        padding: 0.7rem 0.85rem;
        background: rgba(15, 23, 42, 0.30);
    }
    .rbh-proof-table td {
        display: block;
        padding: 0.3rem 0 !important;
        border: none !important;
    }
    .rbh-proof-table td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--rbh-mono);
        font-size: 0.62rem;
        letter-spacing: 1.5px;
        color: #10b981;
        margin-bottom: 0.2rem;
        text-transform: uppercase;
        font-weight: 700;
    }
    .rbh-proof-table td:nth-child(1)::before { content: "Layer"; }
    .rbh-proof-table td:nth-child(2)::before { content: "What it measures"; }
    .rbh-proof-table td:nth-child(3)::before { content: "Result"; }
    .rbh-proof-table td:nth-child(4)::before { content: "Status"; }
}
