/* Original animated scan, framed by the refreshed landing page. */
.hero { position: relative; isolation: isolate; }
.animated-preview { padding: 12px 0 60px; min-width: 0; }
.animated-preview::before { inset: 60px -20px 28px 10px; background: #e7eddfb8; }
.animated-preview .hb-stage { position: relative; }
.animation-caption { position: relative; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .035em; margin-bottom: 18px; }
.animated-preview .floating-note { left: 0; bottom: 0; max-width: 310px; }
.hb-stage .fas { display: inline-block; width: 1em; height: 1em; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; flex-shrink: 0; }
.hb-stage .fa-person { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Cpath d='M4 9h16M12 8v7m0 0-5 7m5-7 5 7'/%3E%3C/svg%3E"); }
.hb-stage .fa-fingerprint { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 0 1 16 0v3M7 18c1-2 1-4 1-6a4 4 0 0 1 8 0v3c0 3-1 5-2 7M12 12c0 4-1 7-3 10M3 16v-2m17 5-1 3'/%3E%3C/svg%3E"); }
.hb-stage .fa-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E"); }
.hb-stage .fa-eye-slash { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m3 3 18 18M9 5c6-2 11 4 13 7l-3 4M6 6c-2 2-3 4-4 6 4 6 9 9 15 5M10 10a3 3 0 0 0 4 4'/%3E%3C/svg%3E"); }
.hb-stage .fa-wave-square { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16h5V6h10v10h5'/%3E%3C/svg%3E"); }
@keyframes pulsarBlink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hb-demo { margin-top: 44px; }
.hb-stage.hb-phone-only { display: block; background: transparent; min-height: 0; color: #fff; }
.hb-stage.hb-phone-only .hb-phone-wrap { background: transparent; border: none; padding: 0; }
.hb-stage.hb-phone-only .hb-phone { box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }
.hb-stage.hb-phone-only .hb-console { display: none !important; }
.hb-demo .demo-cap { text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hb-credit { position: absolute; right: 12px; bottom: 60px; z-index: 3; font-size: 9px; color: rgba(255,255,255,0.42); background: rgba(0,0,0,0.3); padding: 3px 8px; border-radius: 100px; display: none; }
.hb-credit a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.hb-stage[data-step="0"] .hb-cam.has-3d .hb-credit { display: block; }
    /* ===== HABITUS BODY-SHAPE SIMULATION ===== */
    .hb-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%); }
    .hb-showcase { margin-top: 8px; }
    .hb-stage { display: grid; grid-template-columns: 0.95fr 1.05fr; background: #0E1626; color: #fff; min-height: 600px; }
    .hb-phone-wrap {
      display: flex; align-items: center; justify-content: center; padding: 28px;
      background: radial-gradient(ellipse at 50% 30%, rgba(125,211,252,0.10), transparent 60%), #0B1220;
      border-right: 1px solid rgba(255,255,255,0.06);
    }
    .hb-phone {
      width: 300px; max-width: 100%; border-radius: 34px; padding: 12px 12px 16px;
      background: #0F1A2B; border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(0,0,0,0.6);
      display: flex; flex-direction: column; gap: 10px;
    }
    .hb-phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding: 4px 6px 0; }
    .hb-app { font-weight: 700; letter-spacing: 0.06em; color: #7DD3FC; display: inline-flex; gap: 6px; align-items: center; }
    .hb-secure { color: rgba(255,255,255,0.5); font-size: 9.5px; display: inline-flex; gap: 5px; align-items: center; }
    .hb-cam {
      position: relative; aspect-ratio: 9 / 13.5; border-radius: 22px; overflow: hidden;
      background: radial-gradient(ellipse at 50% 35%, #1B2A44 0%, #0B1220 75%);
      border: 1px solid rgba(255,255,255,0.08);
    }
    .hb-cam-grid {
      position: absolute; inset: 0;
      background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 26px 26px;
      -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%); mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
    }
    .hb-3d { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 1; display: block; transition: opacity 0.9s ease; }
    .hb-stage[data-step="3"] .hb-3d { opacity: 0; }                 /* the 3D body gives way to... */
    .hb-outline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; fill: none; stroke-linejoin: round; opacity: 0; transition: opacity 0.8s ease 0.25s; }
    .hb-stage[data-step="3"] .hb-outline { opacity: 1; }           /* ...the shape that was actually sent */
    .hb-stage:not([data-step="0"]) .hb-cam:not(.has-3d) .hb-outline { opacity: 1; } /* no WebGL: outline from framing onwards */
    .hb-stage[data-step="3"] .hb-labels span { opacity: 0 !important; }
    .hb-o-head { fill: rgba(125,211,252,0.14); stroke: rgba(125,211,252,0.95); stroke-width: 1.6; }
    .hb-o-body { fill: rgba(125,211,252,0.09); stroke: rgba(255,255,255,0.85); stroke-width: 1.5; }
    .hb-o-band { stroke: #7DD3FC; stroke-width: 1.2; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.4s ease; }
    .hb-stage[data-step="2"] .hb-o-band, .hb-stage[data-step="3"] .hb-o-band { opacity: 1; }
    .hb-o-label { font-family: 'Inter', sans-serif; font-size: 8.5px; font-weight: 600; fill: #7DD3FC; }
    .hb-o-cap { font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; fill: rgba(255,255,255,0.55); }
    .hb-o-note { font-family: 'Inter', sans-serif; font-size: 7.5px; fill: rgba(255,255,255,0.5); }
    .hb-corners { position: absolute; left: 18%; right: 18%; top: 9%; bottom: 20%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
    .hb-stage[data-step="0"] .hb-corners { opacity: 1; }
    .hb-corners i { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255,138,91,0.9); border-radius: 3px; }
    .hb-corners i:nth-child(1) { left: 0; top: 0; border-right: none; border-bottom: none; }
    .hb-corners i:nth-child(2) { right: 0; top: 0; border-left: none; border-bottom: none; }
    .hb-corners i:nth-child(3) { left: 0; bottom: 0; border-right: none; border-top: none; }
    .hb-corners i:nth-child(4) { right: 0; bottom: 0; border-left: none; border-top: none; }

    .hb-id {
      position: absolute; top: 12px; left: 12px; z-index: 3;
      display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600;
      color: #FF8A5B; background: rgba(255,138,91,0.14); border: 1px solid rgba(255,138,91,0.35);
      padding: 5px 9px; border-radius: 100px; transition: opacity 0.45s ease, visibility 0.45s;
    }
    .hb-id i { animation: pulsarBlink 1.4s ease-in-out infinite; }
    .hb-stage:not([data-step="0"]) .hb-id { opacity: 0; visibility: hidden; }
    .hb-id-ok {
      position: absolute; top: 12px; left: 12px; z-index: 3;
      display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600;
      color: #34d399; background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.3);
      padding: 5px 9px; border-radius: 100px; opacity: 0; transform: translateY(-6px); transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .hb-stage:not([data-step="0"]) .hb-id-ok { opacity: 1; transform: none; }
    .hb-stage[data-step="3"] .hb-id-ok { opacity: 0; } /* make room for the “what was sent” outline */
    .hb-labels span {
      position: absolute; z-index: 3; right: 0; top: 0; transform: translate(0, -50%);
      font-size: 9.5px; color: #fff; white-space: nowrap; text-align: right; line-height: 1.25;
      background: rgba(11,18,32,0.78); border: 1px solid rgba(125,211,252,0.4); border-right: 3px solid #7DD3FC;
      padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity 0.35s ease;
    }
    .hb-labels span.on { opacity: 1; }
    .hb-labels span b { display: block; font-weight: 600; font-size: 10px; }
    .hb-labels span small { display: block; font-size: 9px; color: rgba(255,255,255,0.6); }
    .hb-nophoto {
      position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
      display: flex; gap: 8px; align-items: center; font-size: 10px; line-height: 1.35; color: rgba(255,255,255,0.85);
      background: rgba(11,18,32,0.8); border: 1px solid rgba(125,211,252,0.3); border-radius: 10px; padding: 8px 10px;
    }
    .hb-nophoto i { color: #7DD3FC; font-size: 12px; flex-shrink: 0; }
    .hb-nophoto b { color: #fff; }
    .hb-prompt {
      display: flex; align-items: center; gap: 9px; padding: 10px 12px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
      font-size: 12px; font-weight: 500; color: #fff; min-height: 44px; margin: 0 2px;
    }
    .hb-prompt-icon { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; background: rgba(125,211,252,0.14); color: #7DD3FC; }
    .hb-stage[data-step="0"] .hb-prompt-icon { background: rgba(255,138,91,0.14); color: #FF8A5B; }
    .hb-stage[data-step="3"] .hb-prompt-icon { background: rgba(16,185,129,0.16); color: #34d399; }
    #hbPrompt { transition: opacity 0.25s ease; }
    #hbPrompt.swap { opacity: 0; }
    .hb-pips { display: flex; gap: 6px; padding: 0 4px; }
    .hb-pips span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.10); transition: background 0.3s ease; }
    .hb-pips span.on { background: #7DD3FC; }
    .hb-stage[data-step="3"] .hb-pips span { background: #34d399; }


@media (max-width: 768px) { .hb-phone { width: 280px; } .animated-preview { padding: 12px 0 64px; } .animated-preview::before { inset: 58px -8px 25px; } .animated-preview .floating-note { left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hb-id i { animation: none !important; } .hb-3d, .hb-outline { transition: none !important; } }
