/* ═══════════════════════════════════════════════════════
   BOT V3 — Circle LEFT, cards RIGHT on arc
   CiscoSans only. Warm #f0ede8.
═══════════════════════════════════════════════════════ */

:root {
    --bg:    #f0ede8;
    --ink:   #1a1714;
    --muted: #726e6a;
    --blue:  #0A60FF;
    --sans:  'CiscoSans', system-ui, sans-serif;
    --mono:  'CiscoSans', 'Courier New', monospace;
    --card-w: clamp(260px, 36vw, 480px);
}

body.bot-v3-body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg) !important;
    color: var(--ink);
    overflow-x: hidden;
}

/* ══════════════ LOADER ══════════════ */
#loader {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .5s, visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo  { width: 72px; height: 72px; object-fit: contain; margin-bottom: .875rem; }
.loader-label { font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); margin-bottom: 1.5rem; }
.loader-bar-wrap { width: 180px; height: 2px; background: rgba(0,0,0,.1); border-radius: 2px; margin: 0 auto .625rem; overflow: hidden; }
#loader-bar   { height: 100%; width: 0; background: var(--blue); transition: width .1s linear; }
#loader-percent { font-size: .7rem; letter-spacing: .1em; color: var(--muted); }

/* ══════════════ HEADER ══════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    display: flex; align-items: center; padding: 0 2rem;
    background: rgba(240,237,232,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; z-index: 100; transition: border-color .25s;
}
.site-header.scrolled { border-color: rgba(0,0,0,.09); }
.site-nav { width: 100%; max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo-text { font-size: 1rem; font-weight: 700; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-back {
    font-size: .8125rem; color: var(--muted); text-decoration: none;
    padding: .35rem .75rem; border-radius: 8px; border: 1px solid rgba(0,0,0,.12);
    transition: background .2s, color .2s; letter-spacing: .01em;
}
.nav-back:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav-link { font-size: .875rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-cta { font-size: .8125rem; font-weight: 700; color: #fff; background: var(--blue); text-decoration: none; padding: .45rem 1rem; border-radius: 100px; transition: opacity .2s; }
.nav-cta:hover { opacity: .85; }

/* ══════════════ HERO ══════════════ */
.hero-standalone {
    position: relative; height: 100vh; background: var(--bg);
    display: flex; align-items: center; justify-content: center; z-index: 10;
}
.hero-inner { text-align: center; padding: 0 2rem; }
.hero-logo { width: 264px; height: 264px; object-fit: contain; display: block; margin: 0 auto 1.5rem; }
.hero-heading {
    font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900;
    line-height: .9; letter-spacing: -.02em; color: var(--ink); margin: 0 0 1rem;
}
.hero-word { display: inline-block; margin-right: .1em; }
.hero-accent { color: var(--blue); font-weight: 300; font-style: italic; }
.hero-sub {
    font-size: 1rem; line-height: 1.7; color: var(--muted);
    margin: 0 0 2.5rem; max-width: 580px; margin-left: auto; margin-right: auto;
}
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .375rem; }
.scroll-cue span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scroll-arrow { font-size: 1.125rem; color: var(--muted); animation: arrowBounce 1.8s ease-in-out infinite; }
@keyframes arrowBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ══════════════ CANVAS — LEFT-anchored circle ══════════════ */
.canvas-wrap {
    position: fixed; inset: 0; z-index: 5;
    /* clip-path set by JS: circle(Rpx at Xpx 50%) */
    clip-path: circle(0px at 0px 50%);
    will-change: clip-path;
}
#canvas { width: 100%; height: 100%; display: block; }

/* shadow ring */
#circle-shadow {
    position: fixed;
    border-radius: 50%;
    box-shadow: 0 8px 48px 12px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06);
    z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s;
    /* size + position set by JS */
}
#circle-shadow.visible { opacity: 1; }

/* ══════════════ SCROLL CONTAINER ══════════════ */
#scroll-container {
    position: relative;
    /* height set by JS */
    z-index: 15; pointer-events: none;
}

/* ══════════════ SCROLL SECTIONS ══════════════ */
.scroll-section {
    position: absolute;
    /* top, left, width set by JS */
    pointer-events: none; opacity: 0;
    will-change: opacity, transform;
}

/* ── Arc wrapper ── */
.arc-card-wrap { will-change: transform, opacity; }

/* ── Card — white, no-left-radius, colored left border ── */
.section-card {
    background: #fff;
    border-radius: 0 16px 16px 0;
    border-left: 4px solid var(--accent, #0A60FF);
    box-shadow: 0 6px 32px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.05);
    padding: 1.375rem 1.625rem 1.375rem 1.375rem;
    pointer-events: auto;
}

/* Image panel — floats to the right of the card, full image visible */
.card-img-panel {
    position: absolute;
    left: calc(100% + 24px);
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    max-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.16);
    background: #fff;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    cursor: zoom-in;
    transition: box-shadow .2s, transform .2s;
}
.card-img-panel:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
    transform: translateY(-50%) scale(1.02);
}
.card-img-panel img {
    width: 100%;
    height: auto;
    max-height: 396px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* Arc notch removed — was cutting the left border */

/* Meta row: number + category pill */
.card-meta {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .625rem;
}
.card-num {
    font-size: .62rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--blue);
}
.card-cat-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    padding: .18rem .6rem; border-radius: 100px;
}

/* Eyebrow for CTA card */
.card-eyebrow {
    font-size: .65rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}

/* Title — big and bold */
.card-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -.015em;
    color: var(--ink); margin: 0 0 .625rem;
}

/* Description — readable */
.card-desc {
    font-size: .9375rem; line-height: 1.65; color: var(--muted);
    margin: 0 0 .875rem;
}
.card-desc code {
    font-family: var(--mono); font-size: .85em;
    background: rgba(10,96,255,.08); color: var(--blue);
    padding: .1em .38em; border-radius: 4px;
}

/* Command — prominent pill, clearly visible */
.card-cmd {
    display: inline-flex; align-items: center;
    background: var(--accent, #0A60FF); color: #fff;
    font-family: var(--mono); font-size: .875rem; font-weight: 700;
    letter-spacing: .06em; padding: .4rem 1rem; border-radius: 100px;
    box-shadow: 0 2px 10px rgba(10,96,255,.25);
}

.card-example {
    font-size: .75rem; color: var(--muted); margin-top: .5rem;
}
.card-example code {
    font-family: var(--mono); background: rgba(0,0,0,.05);
    padding: .1em .4em; border-radius: 4px; color: var(--ink);
}

/* CTA */
.cta-row { display: flex; gap: .625rem; flex-wrap: wrap; margin-top: .5rem; }
.cta-btn {
    display: inline-flex; align-items: center;
    padding: .625rem 1.25rem; border-radius: 100px;
    font-size: .8125rem; font-weight: 700; text-decoration: none;
    letter-spacing: .02em; transition: opacity .2s, transform .2s;
}
.cta-btn:hover { opacity: .85; transform: translateY(-2px); }
.cta-btn--blue { background: var(--blue); color: #fff; }
.cta-btn--ghost { background: rgba(26,23,20,.07); color: var(--ink); border: 1px solid rgba(26,23,20,.15); }

/* ══════════════ SUMMARY SECTION ══════════════ */
.summary-section {
    position: relative; z-index: 20;
    background: #fff; padding: 4.5rem 2rem 4rem;
    border-top: 1px solid rgba(0,0,0,.07);
}
.summary-inner { max-width: 1100px; margin: 0 auto; }
.summary-intro { margin-bottom: 2.5rem; }
.summary-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.summary-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5rem; }
.summary-sub { font-size: .9rem; color: var(--muted); margin: 0; }

.feat-category-block { margin-bottom: 2rem; }
.feat-category-header { margin-bottom: .875rem; }
.feat-category-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    padding: .3rem .8rem; border-radius: 100px;
}
.feat-category-pill span { opacity: .55; font-weight: 400; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .875rem; }
.feat-item {
    background: #fff; border: 1px solid rgba(0,0,0,.07); border-left: 3px solid #ccc;
    border-radius: 0 12px 12px 0; padding: 1rem 1.125rem;
    display: flex; gap: .75rem; align-items: flex-start;
    transition: box-shadow .2s, transform .2s;
}
.feat-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.feat-item-icon { font-size: 1.375rem; flex-shrink: 0; line-height: 1.2; }
.feat-item-body { flex: 1; min-width: 0; }
.feat-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.feat-item-name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.feat-item-cmd { font-family: var(--mono); font-size: .7rem; font-weight: 600; background: rgba(10,96,255,.1); color: var(--blue); padding: .1em .45em; border-radius: 5px; }
.feat-item-role { font-size: .65rem; font-weight: 700; padding: .1em .45em; border-radius: 5px; }
.feat-item-desc { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.feat-item-ex { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.feat-item-ex code { font-family: var(--mono); background: rgba(0,0,0,.05); padding: .1em .35em; border-radius: 4px; color: var(--ink); }

.feat-loading { display: flex; justify-content: center; padding: 3rem 0; }
.feat-spinner { width: 28px; height: 28px; border: 2px solid rgba(0,0,0,.1); border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-heading { font-size: clamp(2.75rem, 13vw, 4rem); }
    .section-card { max-width: calc(100vw - 2rem); }
    .feat-list { grid-template-columns: 1fr; }
}
