/* ============================================================
   ZEN HOME HERO — clean, matches loader palette
   Colors: white, soft purple (#8c78ff), muted greys
   No teal/cyan/pink neon — minimal and elegant
   ============================================================ */

/* ── Hero reset — transparent, let body bg show through ── */
.hero.zen-home-hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 6, 14, 0.4) 0%, rgba(5, 6, 14, 0.88) 100%), url('../images/bg-hero-2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}

@media (min-width: 981px) {
    .hero.zen-home-hero {
        height: 100vh;
        overflow: hidden;
    }
    .zh-shell {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
    }
}

/* Particle canvas */
.zh-particles {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Shell: 3-col grid */
.zh-shell {
    position: relative;
    z-index: 10;
    width: min(1380px, 100%);
    padding: 130px 16px 70px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: flex-end;
    gap: clamp(8px, 1.8vw, 24px);
}

/* Center content */
.zh-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
}

/* ── Badge ── */
.zh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(140,120,255,0.06);
    border: 1px solid rgba(140,120,255,0.2);
    color: rgba(180,165,255,0.8);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

/* ── TITLE ── */
.zh-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 24px;
    /* Reset all global h1 overrides */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    filter: none !important;
    text-transform: none !important;
    text-align: center !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    font-size: unset !important;
}

/* ZEN — huge white */
.zh-title-zen {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 14vw, 10.5rem);
    letter-spacing: 14px;
    color: rgba(255,255,255,0.93);
    line-height: 0.9;
    /* subtle glow */
    text-shadow: 0 0 60px rgba(140,120,255,0.25), 0 0 120px rgba(140,120,255,0.1);
    /* reset any inherited gradient */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: rgba(255,255,255,0.93) !important;
    filter: none !important;
}

/* CLUB — visible, same weight, outlined */
.zh-title-club {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 4rem);
    letter-spacing: 20px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(140,120,255,0.7);
    line-height: 1;
    margin-top: 4px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: transparent !important;
}

/* Subtitle line */
.zh-title-full {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: clamp(0.42rem, 1.1vw, 0.62rem);
    letter-spacing: clamp(3px, 1.5vw, 9px);
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    margin-top: 10px;
    white-space: nowrap;
    background: none !important;
    -webkit-text-fill-color: rgba(255,255,255,0.28) !important;
    filter: none !important;
}

/* Glitch on ZEN */
.zh-title-zen.zh-glitch-active {
    animation: zhTitleGlitch 0.14s steps(2) forwards;
}
@keyframes zhTitleGlitch {
    0%   { text-shadow: -3px 0 rgba(140,120,255,0.6), 3px 0 rgba(255,255,255,0.2), 0 0 60px rgba(140,120,255,0.25); }
    50%  { text-shadow: 3px 0 rgba(140,120,255,0.6), -3px 0 rgba(255,255,255,0.2), 0 0 60px rgba(140,120,255,0.25); }
    100% { text-shadow: 0 0 60px rgba(140,120,255,0.25); }
}

/* ── Tagline ── */
.zh-tagline {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,0.38);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 26px;
    text-align: center;
}

/* ── Countdown — unified single card container ── */
.zh-countdown {
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.2rem !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(140, 120, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 18px 35px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 
        inset 2px 2px 6px rgba(255, 255, 255, 0.06), 
        inset -3px -3px 8px rgba(0, 0, 0, 0.65), 
        0 15px 35px rgba(0, 0, 0, 0.5) !important;
    margin: 0 auto 2.5rem !important;
    transition: none !important;
}

.zh-countdown .countdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    min-width: auto !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
    transform: none !important;
}

.zh-countdown .countdown-item:hover {
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.zh-countdown .countdown-number {
    color: rgba(200,190,255,0.9) !important;
    text-shadow: 0 0 18px rgba(140,120,255,0.4) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.zh-countdown .countdown-label {
    font-size: 0.68rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-top: 5px !important;
}

/* ── CTA ── */
.zh-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Primary button — white/purple */
.zh-cta .btn-glow {
    border-color: rgba(140,120,255,0.5);
    color: rgba(255,255,255,0.88);
}
.zh-cta .btn-glow:hover {
    background: linear-gradient(135deg, #7d68ff, #9b59b6) !important;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.6) !important;
    border-color: rgba(140, 120, 255, 0.8) !important;
    color: #ffffff !important;
}

/* ── Stats ── */
.zh-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(140,120,255,0.12);
    border-radius: 12px;
    padding: 12px 20px;
}
.zh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 18px;
    min-width: 72px;
}
.zh-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: rgba(200,190,255,0.9);
}
.zh-stat-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}
.zh-stat-div {
    width: 1px;
    height: 28px;
    background: rgba(140,120,255,0.15);
}

/* ============================================================
   MASCOT SYSTEM — white/purple palette
   ============================================================ */
.zh-mascot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out;
    will-change: transform;
    align-self: flex-end;
}

/* Speech bubble */
.zh-bubble {
    position: absolute;
    bottom: 112%;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,11,22,0.95);
    border: 1px solid rgba(140,120,255,0.25);
    border-radius: 14px;
    padding: 9px 13px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: zhBubbleBob 4s ease-in-out infinite;
    z-index: 25;
    pointer-events: none;
    font-style: italic;
}
.zh-bubble--l { 
    left: 50% !important; 
    right: auto !important;
    transform: translateX(-50%) !important;
    transform-origin: center bottom; 
}
.zh-bubble--r { 
    left: 50% !important; 
    right: auto !important;
    transform: translateX(-50%) !important;
    transform-origin: center bottom; 
}

.zh-bubble--l::before, .zh-bubble--r::before {
    content: '' !important;
    position: absolute !important;
    bottom: -7px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top: 7px solid rgba(140,120,255,0.25) !important;
}
@keyframes zhBubbleBob {
    0%,100% { transform: translate(-50%, 0) rotate(-0.8deg); }
    50%      { transform: translate(-50%, -8px) rotate(0.8deg); }
}

/* Bot floats */
.zh-bot {
    position: relative;
    width: 168px;
    animation: zhBotFloat 5.2s ease-in-out infinite;
    transform-style: preserve-3d;
}
.zh-bot--b { animation-delay: -2.3s; }

@keyframes zhBotFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* Ambient glow — very subtle */
.zh-bot__glow {
    position: absolute;
    inset: 10% 5% -22% 5%;
    background: radial-gradient(ellipse, rgba(140,120,255,0.18), transparent 70%);
    filter: blur(28px);
    z-index: 0;
}

/* HEAD */
.zh-bot__head {
    position: relative;
    width: 88px; height: 80px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(38,42,72,0.98), rgba(14,15,30,0.99));
    border: 1px solid rgba(140,120,255,0.2);
    border-radius: 22px 22px 16px 16px;
    box-shadow: inset -8px -10px 18px rgba(0,0,0,0.4),
                0 0 20px rgba(140,120,255,0.08);
    z-index: 5;
}

/* Antenna */
.zh-bot__antenna {
    position: absolute;
    left: 50%; top: -26px;
    width: 2px; height: 28px;
    background: linear-gradient(to top, rgba(140,120,255,0.6), transparent);
    transform: translateX(-50%);
}
.zh-bot__antenna-tip {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(200,190,255,0.9);
    box-shadow: 0 0 10px rgba(140,120,255,0.8);
    animation: zhLedPulse 2s ease-in-out infinite;
}

/* Ears */
.zh-bot__ear {
    position: absolute;
    top: 22px; width: 9px; height: 20px;
    background: rgba(140,120,255,0.08);
    border: 1px solid rgba(140,120,255,0.15);
    border-radius: 3px;
}
.zh-bot__ear--l { left: -10px; }
.zh-bot__ear--r { right: -10px; }

/* Visor */
.zh-bot__visor {
    position: absolute;
    left: 12%; top: 20%;
    width: 76%; height: 22%;
    background: linear-gradient(90deg, rgba(140,120,255,0.7), rgba(180,165,255,0.5));
    border-radius: 5px;
    border: 1px solid rgba(200,190,255,0.3);
    box-shadow: 0 0 14px rgba(140,120,255,0.35);
    overflow: hidden;
}
.zh-bot__visor::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: rgba(255,255,255,0.12);
}

/* Eyes */
.zh-bot__eye {
    position: absolute;
    top: 50%;
    width: 9px; height: 9px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
    transform: translateY(-50%);
    animation: zhBlink 4.5s ease-in-out infinite;
}
.zh-bot__eye--l { left: 20%; }
.zh-bot__eye--r { right: 20%; }

@keyframes zhBlink {
    0%,88%,100% { transform: translateY(-50%) scaleY(1); }
    92%          { transform: translateY(-50%) scaleY(0.07); }
}

/* Mouth */
.zh-bot__mouth {
    position: absolute;
    left: 30%; bottom: 14%;
    width: 40%; height: 5px;
    border-bottom: 1.5px solid rgba(140,120,255,0.4);
    border-left: 1.5px solid rgba(140,120,255,0.4);
    border-right: 1.5px solid rgba(140,120,255,0.4);
    border-radius: 0 0 6px 6px;
}
.zh-bot__mouth--smile {
    border-color: rgba(200,190,255,0.5);
    box-shadow: 0 3px 6px rgba(140,120,255,0.2);
}

/* Neck */
.zh-bot__neck {
    width: 22px; height: 11px;
    margin: 0 auto;
    background: rgba(38,42,72,0.96);
    border-left: 1px solid rgba(140,120,255,0.1);
    border-right: 1px solid rgba(140,120,255,0.1);
    position: relative; z-index: 4;
}

/* Torso */
.zh-bot__torso {
    position: relative;
    width: 110px; height: 98px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(32,36,68,0.98), rgba(12,13,26,0.99));
    border: 1px solid rgba(140,120,255,0.18);
    border-radius: 16px 16px 10px 10px;
    box-shadow: inset -10px -14px 22px rgba(0,0,0,0.5),
                0 10px 28px rgba(0,0,0,0.5);
    z-index: 4;
}

/* Chest panel */
.zh-bot__panel {
    position: absolute;
    left: 50%; top: 12px;
    transform: translateX(-50%);
    width: 58%; height: 50%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(140,120,255,0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 5px 0;
}

/* LEDs */
.zh-bot__led {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(180,165,255,0.8);
    box-shadow: 0 0 6px rgba(140,120,255,0.6);
    animation: zhLedPulse 2.2s ease-in-out infinite;
}
.zh-bot__led--2 { animation-delay: 0.35s; }
.zh-bot__led--3 { animation-delay: 0.7s; }

@keyframes zhLedPulse {
    0%,100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.4); }
}

/* Arc reactor */
.zh-bot__reactor {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,165,255,0.9) 20%, rgba(140,120,255,0.3) 60%, transparent 100%);
    box-shadow: 0 0 12px rgba(140,120,255,0.7);
}

/* Arms */
.zh-bot__arm {
    position: absolute;
    top: 10px; width: 18px; height: 66px;
    background: linear-gradient(to bottom, rgba(40,46,80,0.96), rgba(22,26,52,0.98));
    border: 1px solid rgba(140,120,255,0.12);
    border-radius: 9px;
}
.zh-bot__arm--l { left: -20px; transform-origin: top; animation: zhArmL 3.2s ease-in-out infinite; }
.zh-bot__arm--r { right: -20px; transform-origin: top; animation: zhArmR 3.2s ease-in-out infinite; }
@keyframes zhArmL { 0%,100%{transform:rotate(8deg);} 50%{transform:rotate(20deg);} }
@keyframes zhArmR { 0%,100%{transform:rotate(-8deg);} 50%{transform:rotate(-20deg);} }

.zh-bot__forearm {
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 26px;
    background: rgba(140,120,255,0.08);
    border: 1px solid rgba(140,120,255,0.15);
    border-radius: 5px;
}
.zh-bot__hand {
    position: absolute;
    bottom: -18px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 22px;
    background: rgba(38,42,82,0.9);
    border: 1px solid rgba(140,120,255,0.12);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.zh-bot__hand--wave { animation: zhHandWave 1.5s ease-in-out infinite; }
@keyframes zhHandWave {
    0%,100%{ transform:translateX(-50%) rotate(0); }
    30%    { transform:translateX(-50%) rotate(20deg); }
    60%    { transform:translateX(-50%) rotate(-10deg); }
}

/* Hips */
.zh-bot__hips {
    width: 96px; height: 12px;
    margin: 0 auto -2px;
    background: rgba(28,32,62,0.98);
    border: 1px solid rgba(140,120,255,0.1);
    border-radius: 5px;
    position: relative; z-index: 3;
}

/* Legs */
.zh-bot__legs {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative; z-index: 3;
}
.zh-bot__leg { display: flex; flex-direction: column; align-items: center; }
.zh-bot__shin {
    width: 22px; height: 46px;
    background: linear-gradient(to bottom, rgba(38,44,78,0.96), rgba(22,26,50,0.98));
    border: 1px solid rgba(140,120,255,0.1);
    border-radius: 7px 7px 3px 3px;
}
.zh-bot__leg--l { animation: zhLegL 3.2s ease-in-out infinite; transform-origin: top center; }
.zh-bot__leg--r { animation: zhLegR 3.2s ease-in-out infinite; transform-origin: top center; }
@keyframes zhLegL { 0%,100%{transform:rotate(-2.5deg);} 50%{transform:rotate(4deg);} }
@keyframes zhLegR { 0%,100%{transform:rotate(2.5deg);}  50%{transform:rotate(-4deg);} }

.zh-bot__foot {
    width: 30px; height: 11px;
    background: rgba(140,120,255,0.14);
    border: 1px solid rgba(140,120,255,0.22);
    border-radius: 3px;
    margin-top: 1px;
}

/* Chips */
.zh-bot__chip {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: rgba(10,11,24,0.94);
    border: 1px solid rgba(140,120,255,0.2);
    border-radius: 7px;
    color: rgba(180,165,255,0.8);
    font-size: 0.78rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    animation: zhChipFloat 4s ease-in-out infinite;
    z-index: 22;
}
.zh-bot__chip--a { top: 10%; right: -40px; }
.zh-bot__chip--b { bottom: 22%; left: -40px; animation-delay: -2s; }
@keyframes zhChipFloat {
    0%,100%{ transform:translateY(0) rotate(0); }
    50%    { transform:translateY(-9px) rotate(6deg); }
}

/* ── Remove old --cyan color overrides (let base style apply) ── */
.zh-bot__glow--cyan,
.zh-bot__visor--cyan,
.zh-bot__eye--cyan,
.zh-bot__panel--cyan,
.zh-bot__led--cyan,
.zh-bot__reactor--cyan,
.zh-bot__foot--cyan,
.zh-bot__chip--cyan,
.zh-bot__antenna-tip--cyan { /* inherits base — no override needed */ }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .zh-shell { grid-template-columns: 180px 1fr 180px; }
}
@media (max-width: 980px) {
    .zh-shell {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 110px 16px 60px;
        gap: 28px;
    }
    .zh-center  { order: 1; width: 100%; max-width: 620px; }
    .zh-mascot:first-child  { order: 2; flex-direction: row; gap: 16px; align-items: flex-end; }
    .zh-mascot:last-child   { order: 3; flex-direction: row-reverse; gap: 16px; align-items: flex-end; }
    .zh-bubble {
        position: relative;
        top: auto; left: auto !important; right: auto !important;
        white-space: normal; max-width: 200px; text-align: center;
        margin-bottom: 10px;
    }
    .zh-bubble::before { display: none; }
    .zh-stats { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
    .zh-title-zen  { font-size: clamp(4rem, 20vw, 6.5rem); letter-spacing: 8px; }
    .zh-title-club { font-size: clamp(1.6rem, 8vw, 2.8rem); letter-spacing: 12px; }
    .zh-title-full { font-size: 0.45rem; letter-spacing: 2px; white-space: normal; }
    .zh-mascot:last-child { display: none; }
    .zh-mascot:first-child { flex-direction: column; align-items: center; }
    .zh-cta .btn-glow { width: 100%; text-align: center; }
    .zh-stats { gap: 0; }
    .zh-stat { padding: 0 10px; min-width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .zh-bot, .zh-bot__arm, .zh-bot__leg,
    .zh-bot__chip, .zh-bubble, .zh-bot__reactor,
    .zh-bot__led, .zh-bot__antenna-tip,
    .zh-bot__hand--wave, .zh-bot__eye { animation: none !important; }
}
