:root {
    color-scheme: dark;
    --bfc-blue: #00a4e4;
    --bfc-blue-dark: #4ac4f3;
    --bfc-blue-soft: #153a4a;
    --bfc-ink: #e7eef2;
    --bfc-muted: #a4b2b9;
    --bfc-canvas: #10181d;
    --bfc-panel: #172229;
    --bfc-surface: #18242a;
    --bfc-surface-alt: #202d34;
    --bfc-rail-surface: #131d22;
    --bfc-control-surface: #1e2b32;
    --bfc-control-border: #4a5c65;
    --bfc-hover: #233944;
    --bfc-pressed: #1d4b60;
    --bfc-line: #34444c;
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: var(--bfc-surface);
}

::selection {
    background: var(--bfc-blue-soft);
    color: #fff;
}

.shell {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-top: 4px solid var(--bfc-blue);
    border-bottom: 1px solid var(--bfc-line);
    background: rgba(24, 36, 42, .96);
    backdrop-filter: blur(14px);
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--bfc-control-border);
    background: rgba(16, 24, 29, .985);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .26);
}

.site-header .text-slate-300 {
    color: var(--bfc-muted);
}

.site-header .text-slate-300:hover {
    color: var(--bfc-blue-dark);
}

.nav-link {
    position: relative;
    display: block;
    padding: .65rem .85rem;
    border-radius: 2px;
    color: var(--bfc-muted);
    font-size: .8125rem;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease;
}

.nav-link:hover,
.nav-link-active {
    color: var(--bfc-ink);
    background: var(--bfc-blue-soft);
}

.nav-link-active::after {
    content: "";
    position: absolute;
    inset: auto .85rem .26rem;
    height: 2px;
    background: var(--bfc-blue);
}

.mobile-menu {
    border-top: 1px solid var(--bfc-line);
    background: rgba(24, 36, 42, .99);
}

.menu-toggle {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--bfc-control-border);
    border-radius: 2px;
    color: var(--bfc-ink);
    background: var(--bfc-surface);
}

.brand-mark {
    display: grid;
    width: 2.375rem;
    height: 2.375rem;
    place-items: center;
    border: 1px solid var(--bfc-blue);
    border-radius: 2px;
    color: #fff;
    background: var(--bfc-blue);
    font-size: .8rem;
    font-weight: 700;
}

.brand-mark-small {
    width: 2rem;
    height: 2rem;
    border-radius: 2px;
    font-size: .68rem;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(0, 159, 227, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 159, 227, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 25%, transparent 95%);
}

.hero-glow {
    position: absolute;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 159, 227, .14), rgba(0, 121, 174, .05) 40%, transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--bfc-blue-dark);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #4ac4f3;
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: .8125rem;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: none;
}

.button-small {
    min-height: 2.35rem;
    padding: .5rem .85rem;
}

.button-primary {
    color: #fff;
    border-color: var(--bfc-blue);
    background: var(--bfc-blue);
    box-shadow: none;
}

.button-primary:hover {
    border-color: var(--bfc-blue-dark);
    background: var(--bfc-blue-dark);
    box-shadow: none;
}

.button-dark {
    color: #fff;
    border-color: var(--bfc-blue);
    background: var(--bfc-blue);
}

.button-dark:hover {
    border-color: var(--bfc-blue-dark);
    background: var(--bfc-blue-dark);
}

.button-outline-light {
    color: #e7eef2;
    border-color: #4a5c65;
    background: rgba(255, 255, 255, .035);
}

.button-outline-light:hover {
    border-color: #00a4e4;
    background: #153a4a;
}

.button-outline {
    color: var(--bfc-ink);
    border-color: var(--bfc-control-border);
    background: var(--bfc-control-surface);
}

.button-outline:hover {
    border-color: var(--bfc-blue);
    background: var(--bfc-blue-soft);
}

.button-disabled {
    cursor: not-allowed;
    color: #64748b;
    border-color: var(--bfc-line);
    background: var(--bfc-surface-alt);
    box-shadow: none;
}

.button-disabled:hover {
    transform: none;
}

.section-title {
    color: var(--bfc-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.07;
}

.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bfc-line);
    border-radius: 2px;
    background: var(--bfc-surface);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--bfc-blue);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.feature-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid #387a96;
    border-radius: 2px;
    color: var(--bfc-blue-dark);
    background: var(--bfc-blue-soft);
}

.stat-chip {
    border-left: 1px solid var(--bfc-line);
    padding-left: 1.25rem;
}

.technical-card {
    border: 1px solid #34444c;
    border-radius: 2px;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.code-line {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 1rem;
    color: #cbd5e1;
}

.code-line > span:first-child {
    color: #475569;
    user-select: none;
}

.step-number {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #387a96;
    border-radius: 2px;
    color: var(--bfc-blue-dark);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: .75rem;
    background: var(--bfc-blue-soft);
}

.footer-link {
    transition: color .2s ease;
}

.footer-link:hover {
    color: #4ac4f3;
}

.product-hero {
    color: var(--bfc-ink) !important;
    border-bottom: 1px solid var(--bfc-line);
    background: var(--bfc-canvas) !important;
}

.product-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--bfc-blue);
}

.product-hero .hero-grid {
    opacity: .95;
    mask-image: linear-gradient(90deg, transparent 8%, black 55%, transparent 100%);
}

.product-hero .hero-glow {
    opacity: .85;
}

.product-hero .eyebrow-light {
    color: var(--bfc-blue-dark);
}

.product-hero .text-slate-300 {
    color: var(--bfc-muted);
}

.product-hero .button-outline-light {
    color: var(--bfc-ink);
    border-color: var(--bfc-control-border);
    background: var(--bfc-control-surface);
}

.product-hero .button-outline-light:hover {
    border-color: var(--bfc-blue);
    background: var(--bfc-blue-soft);
}

.product-hero .technical-card {
    color: #e7eef2;
    background: var(--bfc-panel);
}

.runtime-preview {
    border-top: 4px solid var(--bfc-blue);
    box-shadow: 0 24px 58px rgba(22, 43, 54, .20);
}

.bfc-dark .bg-white {
    background-color: var(--bfc-surface) !important;
}

.bfc-dark .bg-slate-50 {
    background-color: var(--bfc-panel) !important;
}

.bfc-dark .bg-slate-100 {
    background-color: var(--bfc-surface-alt) !important;
}

.bfc-dark .text-slate-950,
.bfc-dark .text-slate-900,
.bfc-dark .text-slate-800,
.bfc-dark .text-slate-700 {
    color: var(--bfc-ink) !important;
}

.bfc-dark .text-slate-600,
.bfc-dark .text-slate-500 {
    color: var(--bfc-muted) !important;
}

.bfc-dark .text-slate-400 {
    color: #82939c !important;
}

.bfc-dark .border-slate-100,
.bfc-dark .border-slate-200,
.bfc-dark .border-slate-300 {
    border-color: var(--bfc-line) !important;
}

.bfc-dark .bg-cyan-50 {
    background-color: var(--bfc-blue-soft) !important;
}

.bfc-dark .border-cyan-100,
.bfc-dark .border-cyan-200 {
    border-color: #387a96 !important;
}

.bfc-dark .text-cyan-700 {
    color: var(--bfc-blue-dark) !important;
}

.bfc-dark .bg-amber-50 {
    background-color: #2a251b !important;
}

.bfc-dark .bg-amber-100 {
    background-color: #3b321f !important;
}

.bfc-dark .border-amber-200 {
    border-color: #685a31 !important;
}

.bfc-dark .text-amber-950,
.bfc-dark .text-amber-900,
.bfc-dark .text-amber-800 {
    color: #f2d995 !important;
}

.bfc-dark code.bg-slate-100 {
    border: 1px solid var(--bfc-line);
    color: var(--bfc-blue-dark);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

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

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button,
    .feature-card {
        transition: none;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 1.25rem, 76rem);
    }
}
