/* ==================== BM DESIGN SYSTEM ==================== */
/* Extracted from alpha-v2.html — shared across all upgraded pages */

@font-face {
    font-family: 'Eurostile';
    src: url('assets/fonts/Eurostile_Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --text: #e8e8e8;
    --text-secondary: #9a9a9a;
    --text-muted: #666666;
    --accent: #cc0000;
    --green: #22c55e;
    --border: #1e1e1e;
    --border-mid: #2a2a2a;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

/* ==================== UTILITIES ==================== */
.mono { font-family: 'IBM Plex Mono', monospace; }
.label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
/* Label entrance when inside a revealed section */
.reveal.revealed .label {
    animation: label-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes label-enter {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.stagger-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-child.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .stagger-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==================== TOPBAR ==================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    transition: border-color 0.3s, background 0.3s;
}
.topbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 10, 0.9);
}
.topbar-logo img { height: 50px; opacity: 0.75; transition: opacity 0.2s; }
.topbar-logo:hover img { opacity: 1; }
.topbar-cta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-mid);
    padding: 8px 20px;
    transition: color 0.2s, border-color 0.2s;
}
.topbar-cta:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ==================== CONTAINERS ==================== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==================== SECTIONS ==================== */
.section { padding: 100px 24px; }
.section-dark { background: var(--bg); }
.section-alt { background: var(--bg-elevated); }

.section-head h2 {
    font-family: 'Eurostile', 'IBM Plex Sans', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--white);
}
.section-head p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--border-mid) 30%, rgba(255,255,255,0.08) 50%, var(--border-mid) 70%, transparent 95%);
}

/* Ticker divider — scrolling keywords as section break */
.ticker-divider {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.ticker-divider-track {
    display: flex;
    width: max-content;
    animation: ticker-div-scroll 40s linear infinite;
}
.ticker-divider-track span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0 16px;
}
@keyframes ticker-div-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Elevated alt sections */
.section-elevated {
    background: var(--bg-elevated);
}

/* ==================== BUTTONS ==================== */
.btn-apply {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Eurostile', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--white);
    color: var(--bg);
    border: 1px solid var(--white);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-apply:hover {
    background: transparent;
    color: var(--text);
    box-shadow: 0 0 30px rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
.btn-apply:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.btn-ghost {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Eurostile', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ghost:hover {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255,255,255,0.06);
}
.btn-ghost:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.btn-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-link:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ==================== BENTO GRID ==================== */
.bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
}
.bento-item {
    padding: 36px 32px;
    border: 1px solid var(--border);
    position: relative;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-item:hover {
    border-color: var(--border-mid);
    box-shadow: 0 8px 40px rgba(255,255,255,0.02);
}
.bento-item-tall {
    grid-row: span 2;
}
.bento-idx {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.bento-item h3 {
    font-family: 'Eurostile', 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.bento-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==================== TELEMETRY ==================== */
.telemetry {
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.telemetry-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pulse {
    width: 6px;
    height: 6px;
    background: var(--green);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.telemetry-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
}
.telemetry-cell {
    padding: 24px 20px;
    border-right: 1px solid var(--border);
}
.telemetry-cell:last-child { border-right: none; }
.telemetry-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    white-space: nowrap;
}
.telemetry-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}
.telemetry-value.neg { color: var(--accent); }
.telemetry-value.pos { color: var(--green); }
.telemetry-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* ==================== FAQ ==================== */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--white); }
.faq-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 28px;
}
.faq-text {
    font-family: 'Eurostile', 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}
.faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 0 0 44px;
}
.faq-item.open .faq-answer {
    max-height: 600px;
    padding-bottom: 24px;
}

/* ==================== FOOTER ==================== */
.bm-footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.bm-footer-brand {
    margin-bottom: 12px;
}
.bm-footer-brand img {
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.bm-footer-brand:hover img {
    opacity: 1;
}
.bm-footer-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.bm-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}
.bm-footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.bm-footer-links a:hover { color: var(--white); }
.disclaimer {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-elevated);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section { padding: 60px 20px; }
    .bento { grid-template-columns: 1fr; }
    .bento-item-tall { grid-row: span 1; }
    .telemetry-grid { grid-template-columns: 1fr 1fr; }
    .telemetry-cell { border-bottom: 1px solid var(--border); }
    .topbar-cta { display: none; }
}

@media (max-width: 480px) {
    .telemetry-grid { grid-template-columns: 1fr; }
    .telemetry-value { font-size: 18px; }
}
