:root {
    --bg: #07080b;
    --surface: #101218;
    --surface-2: #151821;
    --text: #f3f5f7;
    --muted: #a4a9b5;
    --dim: #6f7582;
    --line: #282d38;
    --accent: #41d5ff;
    --accent-hot: #a7ecff;
    --max: 1180px;
}

* { 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; letter-spacing: -.02em; }
.brand-icon { width: 27px; height: 27px; }
.brand-text { font-size: 1.15rem; }
.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 {
    min-height: calc(100svh - 68px);
    display: grid;
    grid-template-columns: minmax(340px, .78fr) minmax(540px, 1.22fr);
    align-items: center;
    gap: clamp(28px, 5vw, 82px);
    padding: clamp(64px, 8vw, 120px) max(28px, calc((100vw - var(--max))/2));
    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: 610px; 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: 760px;
    color: #fff;
    font-size: clamp(3rem, 5.4vw, 6.4rem);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 720;
}
.product-hero h1 span { color: var(--accent-hot); }
.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(920px, 60vw); min-width: 0; perspective: 1200px; }
.hero-visual img {
    display: block;
    width: 100%;
    border: 1px solid #303641;
    box-shadow: 0 40px 100px rgba(0,0,0,.55);
    transform: rotateY(-3deg) rotateX(1deg);
    transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.hero-visual:hover img { transform: rotateY(0) rotateX(0) translateY(-6px); }

.content-band { max-width: var(--max); margin: auto; padding: clamp(90px, 12vw, 165px) 28px; }
.section-copy { max-width: 540px; }
.section-copy h2, .security-strip h2, .final-cta h2 {
    margin: 0;
    font-size: clamp(2.45rem, 4.7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.section-copy p, .security-strip p {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}
.machines-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 8vw; }
.machines-visual { width: 100%; 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 img { width: 100%; display: block; border: 1px solid var(--line); 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); }
.feature-lines { margin-top: 80px; border-top: 1px solid var(--line); }
.feature-lines > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.feature-lines h2, .install-notes h2, .technical-copy h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.feature-lines p, .install-notes p, .technical-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.feature-lines code, .technical-copy code, .install-notes code { color: var(--accent-hot); }
.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 { 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; }
    .feature-lines > div { grid-template-columns: 1fr; gap: 12px; }
    .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; }
}
