/* ============================================================================
   ZeroLedger — site design system (shared by index.html + knowledge-base.html)
   Dark, glass, institutional-fintech. Mobile-first, responsive, reduced-motion
   aware. All page styles live here so the two pages stay visually identical.
   ============================================================================ */

:root {
    /* palette */
    --bg: #05080f;
    --bg-2: #070c16;
    --surface: rgba(0, 0, 0, 0.501);
    --surface-2: rgba(0, 0, 0, 0.501);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f4f7fb;
    --text-dim: #9aa6b6;
    --text-mute: #6b7688;

    --teal: #00d2ff;
    --blue: #3b82f6;
    --gold: #c5a059;
    --green: #00e676;
    --red: #ef5350;

    --grad-accent: linear-gradient(120deg, #00d2ff 0%, #3b82f6 100%);
    --grad-gold: linear-gradient(120deg, #e6c988 0%, #c5a059 100%);
    --glow-teal: 0 0 40px rgba(0, 210, 255, 0.22);

    /* type + rhythm */
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --maxw: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 700px at 80% -10%, rgb(0 39 48), #0208137d 60%), radial-gradient(1000px 600px at 0% 10%, rgba(59, 130, 246, 0.06), transparent 55%), linear-gradient(180deg, rgba(5, 8, 15, 0.35) 0%, rgba(5, 8, 15, 0.96) 100%), url('/high.def.company.background.png');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 210, 255, 0.28); color: #fff; }

/* ---- layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 84px; }
.section-alt { background: rgba(3, 6, 11, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 {
    font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08;
}
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }
.gradient-text {
    background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
    letter-spacing: 0.3px; cursor: pointer; border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #04121a; box-shadow: var(--glow-teal); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 55px rgba(0, 210, 255, 0.4); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.btn-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-gold:hover { background: var(--grad-gold); color: #150f02; box-shadow: 0 0 28px rgba(197, 160, 89, 0.32); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

.pill {
    min-width: 77px;
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    background: rgba(0, 210, 255, 0.08); border: 1px solid rgba(0, 210, 255, 0.22); color: var(--teal);
}
.pill-gold { background: rgba(197, 160, 89, 0.1); border-color: rgba(197, 160, 89, 0.28); color: var(--gold); }
.pill-green { background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.26); color: var(--green); }

/* ============================ NAV ============================ */
.nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px 0; background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img.icon { height: 38px; width: auto; }
.logo img.mark { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
    color: var(--text-dim); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 1.4px;
    font-weight: 700; transition: color 0.25s; position: relative;
}
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad-accent); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; display: flex; align-items: center; min-height: 82vh; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; z-index: 0; perspective: 1100px; }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.18); transform-origin: center; will-change: transform; pointer-events: none; background: var(--bg);
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(to right, rgba(5, 8, 15, 0.95) 38%, rgba(5, 8, 15, 0.25) 100%),
        linear-gradient(180deg, rgba(5, 8, 15, 0) 52%, rgba(5, 8, 15, 0.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 20px; }
.hero p { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---- trust strip ---- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(3, 6, 11, 0.5); }
.trust .item { text-align: center; }
.trust .num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; }
.trust .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-mute); margin-top: 4px; }

/* ============ RISK FRAMEWORK STRIP (firm-wide, one place) ============ */
.risk-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.risk-strip .cell { background: var(--bg-2); padding: 26px 20px; text-align: center; }
.risk-strip .v { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.02em; }
.risk-strip .v.teal { color: var(--teal); } .risk-strip .v.gold { color: var(--gold); } .risk-strip .v.green { color: var(--green); }
.risk-strip .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-mute); margin-top: 6px; }

/* ============================ CHALLENGE CARDS (slim) ============================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.ch-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 26px; position: relative; overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.ch-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-accent); opacity: 0; transition: opacity 0.35s; }
.ch-card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--border-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.ch-card:hover::before { opacity: 1; }
.ch-card.featured { border-color: rgba(197, 160, 89, 0.45); background: rgba(0, 0, 0, 0.521); }
.ch-card.featured::before { background: var(--grad-gold); opacity: 1; }
.ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ch-name { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.01em; }
.ch-size { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.02em; margin: 10px 0 2px; }
.ch-size small { font-size: 0.8rem; font-weight: 600; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.ch-metrics { list-style: none; margin: 22px 0; border-top: 1px solid var(--border); }
.ch-metrics li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-dim); }
.ch-metrics li b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.ch-price .amt { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; }
.ch-price .cur { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; }
.ch-price.has-promo .orig { font-size: 1rem; font-weight: 700; color: var(--text-mute); text-decoration: line-through; text-decoration-color: rgba(239, 83, 80, 0.7); }
.ch-price.has-promo .amt { color: var(--green); }

/* promo: per-card discount badge */
.ch-card.has-promo { position: relative; }
.ch-off {
    position: absolute;
    top: -2px;
    right: -5px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #04121a;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--grad-accent);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.28);
}

/* promo: banner above the challenge grid */
.promo-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(0, 210, 255, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(0, 210, 255, 0.32); box-shadow: var(--glow-teal, 0 0 40px rgba(0, 210, 255, 0.12)); }
.promo-banner .promo-spark { font-size: 1.15rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6)); }
.promo-banner .promo-text { color: var(--text); font-size: 0.95rem; }
.promo-banner .promo-text b { color: #eafaff; font-weight: 800; }
.promo-banner .promo-code { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem; font-weight: 700; color: #eafaff; padding: 4px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(0, 210, 255, 0.5); letter-spacing: 0.06em; }
@media (max-width: 560px) { .promo-banner .promo-code { margin-left: 0; } }

/* loaders + states */
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 420px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.notice { grid-column: 1 / -1; padding: 28px; border-radius: var(--radius-sm); background: rgba(239, 83, 80, 0.06); border: 1px solid rgba(239, 83, 80, 0.22); color: #ffb4b2; }

/* ============================ WHY / FEATURES ============================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0, 210, 255, 0.2); font-size: 1.3rem; margin-bottom: 16px; }
.feature h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

/* ============================ FAQ ============================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-q { width: 100%; background: transparent; border: none; padding: 22px 26px; text-align: left; font-family: var(--font); font-size: 1.02rem; font-weight: 700; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q:hover { background: rgba(0, 210, 255, 0.05); }
.faq-ico { font-size: 1.4rem; font-weight: 300; color: var(--teal); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.active .faq-ico { transform: rotate(45deg); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); padding: 0 26px; color: var(--text-dim); }
.faq-item.active .faq-a { max-height: 720px; padding: 0 26px 24px; border-top: 1px solid var(--border); }
.faq-a p { margin-top: 18px; font-size: 0.95rem; }
.faq-a ul { margin: 12px 0 0 18px; } .faq-a li { margin: 8px 0; font-size: 0.93rem; }
.faq-a strong { color: var(--text); }

/* ============================ KB TEASER (on home) ============================ */
.kb-cta { background: linear-gradient(120deg, rgba(0, 210, 255, 0.08), rgba(59, 130, 246, 0.05)); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: clamp(34px, 6vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.kb-cta h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; }
.kb-cta p { color: var(--text-dim); margin-top: 10px; max-width: 560px; }

/* ============================ FOOTER ============================ */
footer { border-top: 1px solid var(--border); background: #03060b; padding: 60px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.foot-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; max-width: 320px; }
.foot-col h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-mute); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 6px 0; transition: color 0.25s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 0.82rem; }
.foot-disclaimer { color: var(--text-mute); font-size: 0.76rem; line-height: 1.7; margin-top: 20px; max-width: 900px; }

/* ============================ KNOWLEDGE BASE ============================ */
.kb-hero { padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 5vw, 50px); text-align: center; }
.kb-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; }
.kb-hero p { color: var(--text-dim); margin-top: 14px; font-size: 1.08rem; }
.kb-search { max-width: 640px; margin: 30px auto 0; position: relative; }
.kb-search input {
    width: 100%; padding: 16px 18px 16px 50px; font-size: 1rem; font-family: var(--font);
    color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.kb-search input:focus { border-color: var(--teal); box-shadow: var(--glow-teal); }
.kb-search input::placeholder { color: var(--text-mute); }
.kb-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-mute); font-size: 1.1rem; }

.kb-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 8px; }
.kb-chip { padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: all 0.25s; }
.kb-chip:hover { color: var(--text); border-color: var(--border-strong); }
.kb-chip.active { color: #04121a; background: var(--grad-accent); border-color: transparent; }

.kb-group { margin-top: 44px; }
.kb-group h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-mute); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kb-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; cursor: pointer; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.kb-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.kb-card .cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--teal); font-weight: 800; }
.kb-card h3 { font-size: 1.2rem; font-weight: 800; margin: 10px 0 8px; letter-spacing: -0.01em; }
.kb-card p { color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; }
.kb-card .meta { margin-top: 16px; font-size: 0.76rem; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.kb-empty { text-align: center; color: var(--text-dim); padding: 60px 20px; }

/* reader */
.kb-reader { max-width: 800px; margin: 0 auto; }
.kb-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 26px; cursor: pointer; transition: color 0.25s; }
.kb-back:hover { color: var(--teal); }
.kb-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-mute); font-size: 0.8rem; margin: 6px 0 30px; }
.kb-content { color: var(--text-dim); font-size: 1.02rem; line-height: 1.8; }
.kb-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; color: var(--text); line-height: 1.12; margin: 0 0 6px; }
.kb-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 42px 0 14px; letter-spacing: -0.01em; }
.kb-content h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 30px 0 10px; }
.kb-content p { margin: 16px 0; }
.kb-content ul, .kb-content ol { margin: 16px 0 16px 22px; }
.kb-content li { margin: 9px 0; }
.kb-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.kb-content strong { color: var(--text); }
.kb-content code { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-size: 0.88em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal); }
.kb-content pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 20px 0; }
.kb-content pre code { background: none; border: none; padding: 0; color: var(--text-dim); }
.kb-content blockquote { border-left: 3px solid var(--teal); background: rgba(0, 210, 255, 0.05); padding: 12px 20px; margin: 20px 0; border-radius: 0 10px 10px 0; color: var(--text); }
.kb-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.92rem; }
.kb-content th, .kb-content td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.kb-content th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.kb-content hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
.kb-content img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); margin: 20px 0; }
.kb-content figure.kb-figure { margin: 32px 0; }
.kb-content figure.kb-figure img { display: block; width: 100%; height: auto; margin: 0; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); }
.kb-content figure.kb-figure figcaption { margin-top: 11px; font-size: 0.9rem; line-height: 1.5; color: var(--text-mute); text-align: center; font-style: italic; }
.kb-content figure.kb-hero { margin: 8px 0 38px; }
.kb-content figure.kb-hero img { border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .trust { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 760px) {
    .nav-links, .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5, 8, 15, 0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 24px 22px;
    }
    .nav.open .nav-links a { padding: 12px 0; font-size: 0.9rem; }
    .nav.open .nav-links a::after { display: none; }
    .hero-actions .btn { flex: 1 1 auto; }
    .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .hero-video { transform: scale(1.04); }
}
