/* ═══════════════════════════════════ HERO ═══════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #1a2540 0%, #0d1117 55%, #060a10 100%);
}

/* Soft background blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.28;
    animation: blobDrift 18s ease-in-out infinite;
    pointer-events: none;
}

.blob-1 {
    width: 650px; height: 650px; top: -220px; left: -180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.7), transparent);
    animation-delay: 0s;
}

.blob-2 {
    width: 550px; height: 550px; bottom: -120px; right: -120px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.6), transparent);
    animation-delay: 6s;
}

.blob-3 {
    width: 420px; height: 420px; top: 35%; right: 8%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.5), transparent);
    animation-delay: 12s;
}

.blob-4 {
    width: 480px; height: 480px; top: 15%; left: 28%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent);
    animation-delay: 4s;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.2); }
    66% { transform: translate(-40px, 60px) scale(0.88); }
}

/* Canvas */
#canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* Floating orbs (bubbles) */
.floating-orb {
    position: absolute; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    z-index: 100; pointer-events: auto !important; cursor: pointer !important;
    box-shadow: 0 0 36px currentColor, inset 0 0 18px rgba(255, 255, 255, 0.08);
    animation: orbPulse 2.2s ease-in-out infinite;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-orb:hover {
    box-shadow: 0 0 60px currentColor, 0 0 90px currentColor !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    filter: brightness(1.35);
}

@keyframes f1 { 0%,100%{transform:translate(0,0) scale(1)} 20%{transform:translate(26px,-40px) scale(1.07)} 55%{transform:translate(-16px,28px) scale(0.93)} 80%{transform:translate(10px,-18px) scale(1.04)} }
@keyframes f2 { 0%,100%{transform:translate(0,0) scale(1)} 25%{transform:translate(-32px,22px) scale(1.1)} 60%{transform:translate(20px,-36px) scale(0.91)} 80%{transform:translate(-8px,15px) scale(1.05)} }
@keyframes f3 { 0%,100%{transform:translate(0,0) scale(1)} 30%{transform:translate(38px,28px) scale(0.9)} 65%{transform:translate(-22px,-42px) scale(1.13)} 85%{transform:translate(14px,10px) scale(0.97)} }
@keyframes f4 { 0%,100%{transform:translate(0,0) scale(1)} 15%{transform:translate(-18px,-32px) scale(1.08)} 50%{transform:translate(30px,25px) scale(0.89)} 75%{transform:translate(-12px,-15px) scale(1.06)} }
@keyframes f5 { 0%,100%{transform:translate(0,0) scale(1)} 35%{transform:translate(30px,-25px) scale(1.12)} 65%{transform:translate(-25px,35px) scale(0.92)} 90%{transform:translate(6px,-8px) scale(1.02)} }

@keyframes orbPulse {
    0%, 100% { box-shadow: 0 0 36px currentColor, inset 0 0 18px rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
    50% { box-shadow: 0 0 65px currentColor, 0 0 90px currentColor, inset 0 0 28px rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.75); }
}

.orb-1 { width:115px;height:115px;top:14%;left:9%; background:linear-gradient(135deg,rgba(56,189,248,0.35),rgba(45,212,191,0.15)); color:rgba(56,189,248,0.65); animation:f1 6s ease-in-out infinite,orbPulse 2s ease-in-out infinite; animation-delay:0s,0s; }
.orb-2 { width:78px;height:78px;top:58%;left:4%; background:linear-gradient(135deg,rgba(244,114,182,0.35),rgba(167,139,250,0.15)); color:rgba(244,114,182,0.65); animation:f2 7.8s ease-in-out infinite,orbPulse 2.4s ease-in-out infinite; animation-delay:1.2s,0.5s; }
.orb-3 { width:96px;height:96px;top:22%;right:7%; background:linear-gradient(135deg,rgba(251,146,60,0.35),rgba(251,191,36,0.15)); color:rgba(251,146,60,0.65); animation:f3 5.6s ease-in-out infinite,orbPulse 1.9s ease-in-out infinite; animation-delay:2.5s,1s; }
.orb-4 { width:58px;height:58px;bottom:19%;right:14%; background:linear-gradient(135deg,rgba(167,139,250,0.35),rgba(244,114,182,0.15)); color:rgba(167,139,250,0.65); animation:f4 8.2s ease-in-out infinite,orbPulse 2.7s ease-in-out infinite; animation-delay:0.7s,1.5s; }
.orb-5 { width:88px;height:88px;bottom:33%;left:19%; background:linear-gradient(135deg,rgba(251,191,36,0.35),rgba(251,146,60,0.15)); color:rgba(251,191,36,0.65); animation:f5 7s ease-in-out infinite,orbPulse 2.3s ease-in-out infinite; animation-delay:3.6s,0.8s; }

/* Pop & particle effects */
.pop-ring {
    position: fixed; border-radius: 50%; border: 2px solid currentColor;
    pointer-events: none; z-index: 200; animation: popRing 0.6s ease-out forwards;
}
@keyframes popRing { 0%{transform:scale(0.4);opacity:1} 100%{transform:scale(3.5);opacity:0} }

.spark {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 200;
    animation: sparkFly 1.2s ease-out forwards;
}
@keyframes sparkFly { 0%{transform:translate(0,0) scale(1);opacity:1} 100%{transform:translate(var(--tx),var(--ty)) scale(0);opacity:0} }

/* ─── Clio floating card ─── */
.clio-card {
    position: fixed; z-index: 800; padding: 16px 20px;
    background: rgba(13, 17, 23, 0.95);
    border: 1.5px solid rgba(45, 212, 191, 0.5);
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(45, 212, 191, 0.3), 0 0 80px rgba(45, 212, 191, 0.12);
    backdrop-filter: blur(20px);
    max-width: min(300px, 82vw); min-width: 200px;
    pointer-events: none; opacity: 0;
    transform-origin: top left;
    transform: scale(0.7) translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.clio-card.visible { opacity: 1; transform: scale(1) translateY(0); }
.clio-card.hiding { opacity: 0; transform: scale(0.88) translateY(-10px); transition: opacity 0.28s ease, transform 0.28s ease; }

/* ─── Click-origin tether dot ─── */
.clio-tether {
    position: fixed; width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 14px var(--teal), 0 0 28px rgba(45, 212, 191, 0.5);
    pointer-events: none; z-index: 799;
    transform: translate(-50%, -50%) scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}
.clio-tether.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; animation: tetherPulse 1.6s ease-in-out infinite; }
@keyframes tetherPulse { 0%,100%{box-shadow:0 0 10px var(--teal),0 0 20px rgba(45,212,191,0.4)} 50%{box-shadow:0 0 20px var(--teal),0 0 40px rgba(45,212,191,0.7)} }

/* ─── Clio typing indicator ─── */
.clio-typing { display: none; align-items: center; gap: 4px; padding: 4px 0 2px; }
.clio-typing.active { display: flex; }
.clio-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: 0.4; animation: typingDot 1.2s ease-in-out infinite; }
.clio-typing span:nth-child(2) { animation-delay: 0.2s; }
.clio-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,80%,100%{opacity:0.2;transform:scale(0.8)} 40%{opacity:1;transform:scale(1.2)} }

/* ─── Session token status ─── */
.clio-session-bar {
    position: fixed; top: 18px; right: 20px; z-index: 900;
    display: flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 50px; background: rgba(13, 17, 23, 0.75);
    border: 1px solid rgba(45, 212, 191, 0.2); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.clio-session-bar.visible { opacity: 1; }
.clio-session-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transition: background 0.3s ease, opacity 0.3s ease; }
.clio-session-pip.spent { background: rgba(255, 255, 255, 0.15); }
.clio-session-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-dim); }

.clio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.clio-face {
    width: 80px; height: 80px; border-radius: 50%; background: #0a1520;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.55), 0 0 50px rgba(45, 212, 191, 0.2);
    flex-shrink: 0; animation: faceGlow 2.4s ease-in-out infinite;
    overflow: hidden; position: relative;
}
.clio-video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: opacity 0.2s ease; }
#clioEyeCanvas { display: none; }
@keyframes faceGlow { 0%,100%{box-shadow:0 0 22px rgba(45,212,191,0.55),0 0 50px rgba(45,212,191,0.2)} 50%{box-shadow:0 0 40px rgba(45,212,191,0.85),0 0 80px rgba(56,189,248,0.4)} }
.clio-face.react { animation: faceGlow 2.4s ease-in-out infinite, faceBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes faceBounce { 0%{transform:scale(1)} 40%{transform:scale(1.2)} 70%{transform:scale(0.94)} 100%{transform:scale(1)} }

.clio-label { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 0.04em; }
.clio-msg { font-size: 14px; line-height: 1.55; color: var(--text); font-weight: 400; }

/* ─── Hero overlay — split layout ─── */
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center; padding: 0 5%;
    pointer-events: none;
}
.hero-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; max-width: 1100px; width: 100%; pointer-events: none;
}

/* ─── Left: Clio intro text ─── */
.hero-intro {
    display: flex; flex-direction: column; gap: 22px; pointer-events: auto;
    position: relative; padding: 32px 36px; border-radius: 24px;
    background: rgba(6, 10, 16, 0.48); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards; }
.hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 8px var(--teal)} 50%{box-shadow:0 0 22px var(--teal),0 0 40px rgba(45,212,191,0.5)} }
.hero-eyebrow-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }

.hero-headline { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -1.5px; color: var(--text); opacity: 0; animation: fadeUp 0.7s ease 0.4s forwards; }
.hero-headline .hl { background: linear-gradient(125deg, #38bdf8 0%, #2dd4bf 40%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200% auto; animation: gradShift 4s ease-in-out 1s infinite; }
@keyframes gradShift { 0%,100%{background-position:0% center} 50%{background-position:100% center} }

.hero-desc { font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 400; color: rgba(226, 234, 243, 0.68); line-height: 1.7; max-width: 460px; opacity: 0; animation: fadeUp 0.7s ease 0.6s forwards; }
.hero-tagline { font-size: clamp(0.75rem, 1.2vw, 0.88rem); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0; animation: fadeUp 0.7s ease 0.28s forwards; margin-bottom: 2px; }

.hero-personas { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: fadeUp 0.7s ease 0.75s forwards; }
.hero-persona-chip { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 50px; border: 1.5px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); backdrop-filter: blur(8px); transition: border-color 0.2s, color 0.2s, background 0.2s; cursor: default; }
.hero-persona-chip:hover { border-color: rgba(45, 212, 191, 0.45); color: var(--teal); background: rgba(45, 212, 191, 0.06); }

/* ─── AI badge pill ─── */
.hero-ai-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px;
    background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(45,212,191,0.08));
    border: 1px solid rgba(45, 212, 191, 0.28);
    color: var(--teal);
    opacity: 0; animation: fadeUp 0.6s ease 0.15s forwards;
    width: fit-content;
}

.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s ease 0.92s forwards; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #06101a; font-size: 0.98rem; font-weight: 700; border-radius: 50px; border: none; cursor: pointer; font-family: var(--font); transition: transform 0.22s ease, box-shadow 0.22s ease; box-shadow: 0 8px 32px rgba(45, 212, 191, 0.4); }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 48px rgba(45, 212, 191, 0.6); }
.hero-cta-note { font-size: 0.8rem; color: var(--text-dim); }

/* ─── Right: Clio hero avatar + chat bubbles ─── */
.hero-clio-col { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; pointer-events: none; opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards; }
.hero-avatar-wrap { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.hero-avatar-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(45, 212, 191, 0.2); animation: ringPulse 3s ease-in-out infinite; }
.hero-avatar-ring-2 { animation-delay: 1.5s; inset: -28px; border-color: rgba(45, 212, 191, 0.1); }
@keyframes ringPulse { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.04)} }

.hero-avatar-video { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(45, 212, 191, 0.35); box-shadow: 0 0 50px rgba(45, 212, 191, 0.45), 0 0 100px rgba(45, 212, 191, 0.15); animation: avatarGlow 2.5s ease-in-out infinite; background: #0a1520; }
@keyframes avatarGlow { 0%,100%{box-shadow:0 0 40px rgba(45,212,191,0.4),0 0 80px rgba(45,212,191,0.12)} 50%{box-shadow:0 0 70px rgba(45,212,191,0.65),0 0 130px rgba(56,189,248,0.3)} }

/* ─── Single cycling message slot ─── */
.hero-bubble-slot { background: rgba(10, 18, 30, 0.88); border: 1.5px solid rgba(45, 212, 191, 0.3); border-radius: 16px 16px 16px 4px; padding: 12px 18px; font-size: 0.82rem; line-height: 1.5; color: var(--text); backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); max-width: 320px; width: 100%; min-height: 58px; transition: opacity 0.5s ease; pointer-events: auto; }
.hbub-name { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.hbub-text { display: block; }

/* ─── Connection pulse ─── */
.conn-pulse { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); animation: cpulse 1.8s ease-out forwards; pointer-events: none; z-index: 1; }
@keyframes cpulse { 0%{transform:scale(0.5);opacity:1} 50%{transform:scale(4);opacity:0.5} 100%{transform:scale(8);opacity:0} }

/* ═══════════════════ CLIO MOOD OVERLAY ═══════════════════ */
#clio-mood-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9990; transition: background 0.8s ease, box-shadow 0.8s ease; background: transparent; box-shadow: none; }
#clio-mood-overlay.mood-happy { background: rgba(255, 210, 185, 0.04); }
#clio-mood-overlay.mood-excited { background: rgba(45, 212, 191, 0.04); }
#clio-mood-overlay.mood-curious { box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.05); }

.clio-pulse-ring { position: fixed; border-radius: 50%; border: 1.5px solid rgba(45, 212, 191, 0.35); pointer-events: none; z-index: 9991; animation: clioRingExpand 1.2s ease-out forwards; }
@keyframes clioRingExpand { 0%{width:80px;height:80px;opacity:0.7} 100%{width:180vw;height:180vw;opacity:0} }
