.qbt {
    --qbt-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    --qbt-mono: ui-monospace, SFMono-Regular, 'Cascadia Code', Consolas, Menlo, monospace;
    --qbt-ink: #1c1410;
    --qbt-muted: #6b5a52;
    --qbt-soft: #f3ece4;
    --qbt-rule: rgba(28, 20, 16, 0.08);
    --qbt-blue: #1e6fa8; /* deep BIM blue — the Revit side of the page, same role as the QGIS green */

    font-family: var(--qbt-sans);
    color: var(--qbt-ink);
    line-height: 1.6;
}

.qbt ::selection {
    background: var(--my-red);
    color: #fff;
}

.qbt code {
    font-family: var(--qbt-mono);
    color: inherit;
}

/* ─── PILL BADGE ─── */
.qbt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.45em 1em;
    background: var(--qbt-soft);
    color: var(--my-dark-red);
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.qbt-badge i {
    font-size: 1em;
}

/* ─── BUTTONS ─── */
.qbt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.85em 1.6em;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
}

.qbt-btn i {
    font-size: 1.05em;
    transition: transform 0.18s ease;
}

.qbt-btn:hover i.bi-arrow-right {
    transform: translateX(3px);
}

.qbt-btn-primary {
    background: var(--my-red);
    color: #fff;
    box-shadow: 0 6px 18px rgba(191, 67, 66, 0.25);
}

.qbt-btn-primary:hover {
    background: var(--my-dark-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(191, 67, 66, 0.32);
}

.qbt-btn-outline {
    background: #fff;
    color: var(--qbt-ink);
    border-color: rgba(28, 20, 16, 0.18);
}

.qbt-btn-outline:hover {
    border-color: var(--qbt-ink);
    color: var(--qbt-ink);
    transform: translateY(-2px);
}

.qbt-btn-on-dark {
    background: #fff;
    color: var(--qbt-ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.qbt-btn-on-dark:hover {
    background: var(--qbt-ink);
    color: #fff;
    transform: translateY(-2px);
}

.qbt-btn-ghost-on-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.qbt-btn-ghost-on-dark:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ─── HERO: the QGIS-page cream wash plus a faint point-dot grid ─── */
.qbt-hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
}

.qbt-hero::before {
    content: "";
    position: absolute;
    inset: -2rem 0 0;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--qbt-soft) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.qbt-hero::after {
    content: "";
    position: absolute;
    inset: -2rem 0 0;
    background-image: radial-gradient(circle, rgba(140, 28, 19, 0.1) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 0%, transparent 72%);
    z-index: -1;
    pointer-events: none;
}

.qbt-hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 1.5rem auto 1.25rem;
    max-width: 22ch;
    color: var(--qbt-ink);
    overflow-wrap: anywhere;
}

.qbt-hero h1 .accent {
    color: var(--qbt-blue);
}

.qbt-hero p.lead {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--qbt-muted);
    max-width: 44em;
    margin: 0 auto 2.25rem;
}

.qbt-hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── PIPELINE STRIP: platform → link → Revit ─── */
.qbt-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.9rem;
    margin: 3.25rem auto 0;
    max-width: 62em;
}

.qbt-flow-node {
    flex: 0 1 15em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.4rem 1.2rem;
    background: #fff;
    border: 1px solid var(--qbt-rule);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(28, 20, 16, 0.06);
}

/* Same wordmark styling as the big footer logo; also used for the plain-text "Autodesk Revit" */
.qbt-flow-logo {
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--qbt-ink);
    text-align: center;
    margin-bottom: 0.2rem;
}

.qbt-flow-logo-accent {
    color: var(--my-red);
}

.qbt-flow-node > span:last-child {
    font-size: 0.8125rem;
    color: var(--qbt-muted);
    line-height: 1.4;
}

.qbt-flow-node-link {
    flex: 0 1 21em;
}

.qbt-flow-node-link code {
    font-size: 0.8125rem;
    background: var(--qbt-soft);
    color: var(--qbt-ink);
    border-radius: 8px;
    padding: 0.5em 0.85em;
    overflow-wrap: anywhere;
}

.qbt-flow-node-link code b {
    color: var(--my-red);
}

.qbt-flow-arrow {
    align-self: center;
    font-size: 1.4rem;
    color: var(--my-red);
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .qbt-flow {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .qbt-flow-node,
    .qbt-flow-node-link {
        flex-basis: auto;
        width: min(100%, 26em);
    }

    .qbt-flow-arrow {
        transform: rotate(90deg);
    }
}

/* ─── SECTION ─── */
.qbt-section {
    padding: 3.5rem 0;
}

.qbt-section-head {
    text-align: center;
    max-width: 46em;
    margin: 0 auto 2.75rem;
}

.qbt-section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 1rem 0 0.75rem;
    line-height: 1.15;
    color: var(--qbt-ink);
}

.qbt-section-head p {
    font-size: 1.0625rem;
    color: var(--qbt-muted);
    margin: 0;
    line-height: 1.55;
}

/* ─── VIDEO ─── */
.qbt-video {
    max-width: 56em;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--qbt-rule);
    box-shadow: 0 20px 45px rgba(28, 20, 16, 0.14);
    background: var(--qbt-ink);
}

.qbt-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.qbt-video-poster {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    border: 0;
    cursor: pointer;
    background: linear-gradient(150deg, var(--qbt-ink) 0%, #4a1610 65%, var(--my-dark-red) 130%);
    background-color: var(--qbt-ink);
    position: relative;
}

.qbt-video-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.qbt-video-play {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    color: var(--my-dark-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    padding-left: 6px; /* optical centering of the triangle */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease;
}

.qbt-video-poster:hover .qbt-video-play {
    transform: scale(1.07);
}

.qbt-video-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

/* ─── WHY-STREAMING CARDS ─── */
.qbt-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.qbt-card {
    background: #fff;
    border: 1px solid var(--qbt-rule);
    border-radius: 16px;
    padding: 2rem;
}

.qbt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--qbt-soft);
    color: var(--my-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.qbt-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
    color: var(--qbt-ink);
}

.qbt-card p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--qbt-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .qbt-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ─── QUICK-START STEPS ─── */
.qbt-steps {
    list-style: none;
    counter-reset: qbt-step;
    padding: 0;
    max-width: 46em;
    margin: 0 auto;
}

.qbt-steps li {
    counter-increment: qbt-step;
    position: relative;
    padding: 0 0 1.9rem 3.6rem;
}

.qbt-steps li:last-child {
    padding-bottom: 0;
}

.qbt-steps li::before {
    content: counter(qbt-step);
    position: absolute;
    left: 0;
    top: -0.2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--qbt-soft);
    color: var(--my-dark-red);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qbt-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 2.5rem;
    bottom: 0.3rem;
    width: 1px;
    background: var(--qbt-rule);
}

.qbt-step-where {
    display: inline-block;
    font-family: var(--qbt-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--my-dark-red);
    background: var(--qbt-soft);
    border-radius: 5px;
    padding: 0.2em 0.7em;
    margin-bottom: 0.4rem;
}

.qbt-steps h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
    color: var(--qbt-ink);
}

.qbt-steps p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--qbt-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.qbt-steps p code {
    font-size: 0.85em;
    background: var(--qbt-soft);
    color: var(--qbt-ink);
    border-radius: 6px;
    padding: 0.2em 0.5em;
}

/* ─── DARK ENTWINE PANEL (deep warm ink, matching the palette) ─── */
.qbt-ept {
    margin: 1rem 0;
    padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
    background: var(--qbt-ink);
    border-radius: 24px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(28, 20, 16, 0.18);
}

.qbt-ept::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, #000 0%, transparent 75%);
    pointer-events: none;
}

.qbt-ept > * {
    position: relative;
}

.qbt-ept-eyebrow {
    display: inline-block;
    font-family: var(--qbt-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(243, 236, 228, 0.75);
    margin-bottom: 0.9rem;
}

.qbt-ept h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #fff;
}

.qbt-ept p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 46em;
    margin: 0 auto 1.9rem;
}

.qbt-ept-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.qbt-ept-chips code {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--qbt-soft);
    border-radius: 8px;
    padding: 0.4em 0.9em;
}

.qbt-ept-chips span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 0.3rem;
}

/* ─── CHECKLIST ─── */
.qbt-checks {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 60em;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 2.5rem;
}

.qbt-checks li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--qbt-ink);
}

.qbt-checks li::before {
    content: "\F26E"; /* bi-check-lg */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 22px;
    height: 22px;
    background: var(--qbt-soft);
    color: var(--my-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .qbt-checks {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ─── CTA BANNER ─── */
.qbt-cta-banner {
    margin: 4rem 0 3rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, var(--my-red) 0%, var(--my-dark-red) 100%);
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(140, 28, 19, 0.18);
}

.qbt-cta-banner h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}

.qbt-cta-banner p {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem;
    max-width: 38em;
}

.qbt-cta-banner .qbt-hero-cta {
    margin: 0;
}

@media (max-width: 768px) {
    .qbt-cta-banner,
    .qbt-ept {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 18px;
    }
}

/* ─── TRADEMARK FOOTNOTE ─── */
.qbt-footnote {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--qbt-muted);
    opacity: 0.75;
    margin: 0 0 2rem;
}
