/* Unvarnish site. Bonham Technologies visual language: dark ground, amber accent,
   Instrument Serif headings, DM Sans body, Geist Mono labels. */
:root {
    --bg: #0a0a0b;
    --bg-2: #111113;
    --bg-3: #18181b;
    --text: #fafafa;
    --text-2: #b4b4bc;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --border: #27272a;
    --border-2: #3f3f46;
    --critical: #f87171;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

code, pre, .eyebrow, .logo, .step-name, .stats dt {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

code { font-size: 0.9em; color: var(--text); }

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 760px; }

/* Header */
.top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); text-decoration: underline; }

/* Hero */
.hero { padding: 112px 0 96px; }
.eyebrow {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(44px, 7.5vw, 80px); line-height: 1.05; max-width: 900px; margin-bottom: 32px; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin-bottom: 20px; max-width: 820px; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.lede { font-size: 19px; color: var(--text-2); max-width: 680px; margin-bottom: 40px; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section.alt { background: rgba(17, 17, 19, 0.72); }
.section-lede { color: var(--text-2); font-size: 17px; max-width: 720px; margin-bottom: 40px; }
.section-lede a, .card a, .note a { color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}
.card p { color: var(--text-2); font-size: 15px; }

/* Scanner table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; background: var(--bg-3); }
td { color: var(--text-2); }
td:first-child { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li {
    counter-increment: step;
    min-width: 0;
    display: grid;
    grid-template-columns: 56px 220px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 20px 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'Geist Mono', ui-monospace, monospace;
    color: var(--accent);
    font-size: 14px;
}
.step-name { font-size: 15px; font-weight: 600; color: var(--text); }
.step-text { color: var(--text-2); font-size: 15px; }
.after-steps { margin-top: 28px; }

/* Terminal */
.term {
    margin-top: 36px;
    padding: 22px 24px;
    background: #050506;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}
.term .prompt { color: var(--accent); user-select: none; }
.term .out { color: var(--text-2); }
.note { margin-top: 16px; color: var(--text-2); font-size: 14px; }

/* Demo teaser */
.demo-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.stats dd { font-family: 'Instrument Serif', Georgia, serif; font-size: 48px; line-height: 1.1; color: var(--accent); }

/* Demo page */
.page-head { padding: 80px 0 40px; }
.walk { list-style: none; display: grid; gap: 28px; counter-reset: walk; }
.walk > li { counter-increment: walk; min-width: 0; }
.term.md { white-space: pre-wrap; overflow-wrap: anywhere; }
.walk h3::before { content: counter(walk) ". "; color: var(--accent); }
.walk p { color: var(--text-2); margin-bottom: 12px; max-width: 760px; }
.walk .term { margin-top: 0; }
.downloads { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.caveats { color: var(--text-2); padding-left: 20px; display: grid; gap: 8px; max-width: 780px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-2); font-size: 14px; }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
    .grid.three, .grid.two, .demo-teaser { grid-template-columns: 1fr; }
    .steps li { grid-template-columns: 40px 1fr; }
    .step-text { grid-column: 2; }
    .hero { padding: 72px 0 64px; }
    .section { padding: 64px 0; }
    td:first-child { white-space: normal; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .card { padding: 22px; }
    .term { font-size: 13px; padding: 18px; }
    .nav-links { gap: 16px; }
    .stats dd { font-size: 40px; }
}
