:root {
    --bg: #07080b;
    --surface: #101218;
    --surface-2: #151821;
    --text: #f3f5f7;
    --muted: #a4a9b5;
    --dim: #6f7582;
    --line: #282d38;
    --accent: #41d5ff;
    --accent-hot: #a7ecff;
    --wordmark-tracking-nav: .08em;
    --wordmark-tracking-display: .055em;
    --max: 1280px;
    --band-inline: max(28px, calc((100% - var(--max)) / 2 + 28px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1:focus { outline: none; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(7,8,11,.84);
    backdrop-filter: blur(18px);
}
.navbar { padding: 0 28px; }
.navbar-container {
    max-width: var(--max);
    height: 68px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 760; }
.navbar-brand:hover, .navbar-brand:focus { color: #fff; }
.brand-icon { width: 27px; height: 27px; }
.brand-text { display: inline-flex; align-items: baseline; font-size: 1.15rem; }
.brand-text .tlbx-wordmark { color: #fff; letter-spacing: var(--wordmark-tracking-nav); }
.brand-text .brand-domain { color: #aeb6c4; font-weight: 650; letter-spacing: -.01em; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted); font-size: .9rem; transition: color .16s ease; }
.nav-link:hover { color: #fff; }
.nav-install { color: var(--accent-hot); }

.content { min-height: calc(100svh - 68px); }
.product-hero {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(560px, 1.18fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 76px);
    padding: clamp(48px, 6vw, 92px) var(--band-inline);
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 44%, rgba(65,213,255,.10), transparent 31%),
        linear-gradient(112deg, #07080b 0 46%, #0b0e14 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; min-width: 0; }
.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font: 650 .75rem/1.2 "Cascadia Code", monospace;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.product-hero h1 {
    margin: 0;
    max-width: 620px;
    color: #fff;
    font-size: clamp(2.5rem, 3.9vw, 4.35rem);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 720;
}
.product-hero h1 .hero-brand {
    display: inline-flex;
    align-items: baseline;
    color: var(--accent-hot);
    letter-spacing: 0;
}
.hero-brand .tlbx-wordmark { letter-spacing: var(--wordmark-tracking-display); }
.hero-brand .brand-domain { font-size: .64em; opacity: .78; }
.brand-reading {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin: 18px 0 0;
    color: var(--dim);
    font: 500 clamp(.82rem, 1.05vw, .95rem)/1.5 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    letter-spacing: .02em;
}
.brand-reading-expansion, .brand-reading-say { white-space: nowrap; }
.brand-reading-expansion b {
    color: var(--accent);
    font-weight: 700;
}
.hero-lede {
    max-width: 630px;
    margin: 30px 0 0;
    color: #c3c7d0;
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button-primary, .button-secondary {
    min-height: 48px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    font-weight: 700;
    font-size: .92rem;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button-primary { color: #041015; background: var(--accent); }
.button-secondary { color: #eef2f5; border-color: #3b414c; background: rgba(255,255,255,.025); }
.button-primary:hover, .button-secondary:hover { transform: translateY(-2px); }
.button-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }
.button-secondary:hover { border-color: #7c8492; }
.hero-note { margin: 17px 0 0; color: var(--dim); font-size: .86rem; }
.hero-visual { width: min(960px, 62vw); min-width: 0; perspective: 1600px; }
.hero-visual .browser-frame {
    transform: rotateY(-3deg) rotateX(1deg);
    transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.hero-visual:hover .browser-frame { transform: rotateY(0) rotateX(0) translateY(-6px); }

/* Browser chrome frame around product screenshots */
.browser-frame {
    border-radius: 11px;
    overflow: hidden;
    background: #1b1f27;
    border: 1px solid #303641;
    box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: linear-gradient(#22262f, #1a1d24);
    border-bottom: 1px solid #2b303a;
}
.browser-dots { display: flex; gap: 7px; flex: none; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1;
    min-width: 0;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 8px;
    padding: 0 12px;
    border-radius: 6px;
    background: #0e1116;
    color: #8a93a3;
    font: 500 .76rem/1 "Cascadia Code", monospace;
    letter-spacing: .01em;
}
.browser-url svg { width: 12px; height: 12px; flex: none; opacity: .7; }
.browser-frame img, .browser-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; box-shadow: none; transform: none; }

.content-band { max-width: var(--max); margin: auto; padding: clamp(48px, 6vw, 90px) 28px; }
.section-copy { max-width: 540px; }
.section-copy h2, .security-strip h2, .final-cta h2, .mobile-strip h2 {
    margin: 0;
    font-size: clamp(2.45rem, 4.7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.section-copy p, .security-strip p, .mobile-strip p {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}
.mobile-strip { max-width: none; text-align: center; border-top: 1px solid var(--line); }
.mobile-strip > * { max-width: 820px; }
.mobile-strip h2 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.mobile-strip .eyebrow, .mobile-strip h2, .mobile-strip p,
.security-strip .eyebrow, .security-strip h2, .security-strip p { margin-inline: auto; }
.machines-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 8vw; border-top: 1px solid var(--line); }
.machines-visual { width: 100%; height: auto; aspect-ratio: 1600 / 680; max-height: 520px; }
.proof-section { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(50px, 8vw, 110px); border-top: 1px solid var(--line); }
.proof-reverse .proof-media { order: 2; }
.proof-media .browser-frame { box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent-hot); font-weight: 700; }
.text-link:hover { color: #fff; }
.security-strip { max-width: none; text-align: center; background: var(--surface); border-block: 1px solid var(--line); }
.security-strip > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.security-strip p:last-child { max-width: 720px; }
.final-cta { text-align: center; }
.final-cta .hero-actions { justify-content: center; }

.detail-page { max-width: var(--max); margin: auto; padding: 0 28px 120px; }
.detail-hero { max-width: 970px; padding: clamp(85px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.detail-hero h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 7.5rem); line-height: .94; letter-spacing: -.065em; }
.detail-hero > p:last-child { max-width: 670px; margin: 30px 0 0; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.detail-lead-image { display: block; width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.install-notes h2, .technical-copy h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.install-notes p, .technical-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.technical-copy code, .install-notes code { color: var(--accent-hot); }

/* Features page: 200+ documented capabilities */
.features-page .detail-hero { padding-bottom: clamp(44px, 6vw, 72px); }
.feature-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 26px; border-top: 1px solid var(--line); }
.feature-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    transition: color .16s ease, border-color .16s ease;
}
.feature-nav a:hover { color: #fff; border-color: #7c8492; }
.feature-nav a i { font: 600 .72rem/1 "Cascadia Code", monospace; font-style: normal; color: var(--dim); }
.feature-cat { padding-top: clamp(46px, 6vw, 76px); scroll-margin-top: 86px; }
.feature-cat > header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.feature-cat > header h2 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.03em; }
.feature-cat > header p { margin: 8px 0 0; color: var(--dim); font-size: .95rem; line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 48px; }
.feature-grid > div { padding: 15px 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.feature-grid b { display: block; font-size: .95rem; font-weight: 680; letter-spacing: -.01em; }
.feature-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: .89rem; line-height: 1.58; }
.feature-grid code { color: var(--accent-hot); font-size: .85em; }
.page-cta { margin-top: 72px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

.install-block { border-top: 1px solid var(--line); }
.install-block > div { padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.platform { margin: 0 0 16px; color: var(--muted); font-size: .84rem; }
.install-block pre { margin: 0; padding: 22px; overflow-x: auto; background: var(--surface); border: 1px solid #2b313d; color: var(--accent-hot); font-size: clamp(.85rem, 1.6vw, 1.08rem); }
.install-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 70px; margin-top: 80px; }
.install-notes p { margin-top: 12px; }
.install-footnote { margin-top: 70px; color: var(--dim); font: .78rem/1.5 "Cascadia Code", monospace; }
.architecture-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-block: 1px solid var(--line); }
.architecture-flow > div { min-height: 260px; padding: 32px; border-right: 1px solid var(--line); }
.architecture-flow > div:last-child { border-right: 0; }
.architecture-flow span { color: var(--accent); font: .75rem "Cascadia Code", monospace; }
.architecture-flow h2 { margin: 65px 0 12px; }
.architecture-flow p { margin: 0; color: var(--muted); line-height: 1.6; }
.technical-copy { max-width: 820px; margin: 90px auto 0; }
.technical-copy h2 { margin-top: 52px; font-size: 2rem; }
.technical-copy p { margin-top: 16px; font-size: 1.05rem; }

.library-page { max-width: 1040px; min-height: calc(100svh - 68px); margin: auto; padding: clamp(70px, 12vw, 150px) 28px 100px; }
.library-parent { display: inline-block; margin-bottom: 70px; color: var(--muted); font-size: .86rem; }
.library-parent:hover { color: #fff; }
.library-page h1 { margin: 0; font-size: clamp(4.2rem, 10vw, 9rem); line-height: .9; letter-spacing: -.075em; }
.library-lede { max-width: 740px; margin: 38px 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.65; }
.library-actions { display: flex; gap: 12px; margin-top: 36px; }
.library-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-block: 1px solid var(--line); }
.library-facts > div { padding: 25px 24px; border-right: 1px solid var(--line); }
.library-facts > div:last-child { border-right: 0; }
.library-facts span, .library-facts strong { display: block; }
.library-facts span { margin-bottom: 10px; color: var(--dim); font: .72rem "Cascadia Code", monospace; text-transform: uppercase; letter-spacing: .1em; }
.library-facts strong { font-size: .93rem; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 28px; }
.footer-content { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; color: var(--dim); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: #fff; }

.legal { max-width: 820px; margin: auto; padding: 70px 28px 100px; color: var(--muted); line-height: 1.75; }
.legal h1, .legal h2 { color: var(--text); }
.legal h1 { margin-top: 48px; font-size: 2.2rem; }
.legal h1:first-child { margin-top: 0; }
.legal h2 { margin-top: 38px; font-size: 1.15rem; }
.legal a { color: var(--accent-hot); }
.legal hr { margin: 60px 0; border: 0; border-top: 1px solid var(--line); }

.reveal { animation: rise .72s cubic-bezier(.2,.75,.2,1) both; }
.reveal-late { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { animation: none; } .hero-visual img, .hero-visual video { transition: none; } }

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 100; padding: 12px 20px; background: #7b2020; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

@media (max-width: 900px) {
    .nav-menu { gap: 18px; }
    .nav-github { display: none; }
    .product-hero { min-height: auto; grid-template-columns: 1fr; padding: 78px 22px 70px; }
    .hero-visual { width: 110%; margin-left: 0; }
    .machines-section, .proof-section { grid-template-columns: 1fr; }
    .machines-visual { margin-top: 25px; }
    .proof-reverse .proof-media { order: 0; }
    .architecture-flow { grid-template-columns: 1fr; }
    .architecture-flow > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .architecture-flow > div:last-child { border-bottom: 0; }
    .architecture-flow h2 { margin-top: 30px; }
}
@media (max-width: 620px) {
    .navbar { padding: 0 18px; }
    .navbar-container { height: 60px; }
    .nav-menu { gap: 14px; }
    .nav-link { font-size: .78rem; }
    .nav-link:nth-child(2) { display: none; }
    .content-band, .detail-page { padding-left: 20px; padding-right: 20px; }
    .product-hero { padding-top: 52px; gap: 38px; }
    .product-hero h1 { font-size: clamp(2.75rem, 12.5vw, 3.45rem); }
    .hero-lede { margin-top: 22px; font-size: .98rem; line-height: 1.52; }
    .hero-actions { margin-top: 24px; flex-direction: row; align-items: stretch; }
    .hero-actions > * { flex: 1; padding-inline: 12px; }
    .hero-note { display: none; }
    .hero-visual { width: 100%; }
    .install-notes { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 18px; }
    .library-facts { grid-template-columns: 1fr; margin-top: 70px; }
    .library-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .library-facts > div:last-child { border-bottom: 0; }
}
