/* ============================================
   HERO
   Full-viewport intro section: floating blocks
   (driven by scripts/hero.js physics), cursor halo,
   logo title (image), eyebrow, CTAs, meta strip.
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

/* ------ Physics blocks container ------ */
.hero-blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    /* Subtle fade only over the title's immediate area, so corner/edge blocks stay fully visible */
    mask-image: radial-gradient(ellipse 45% 35% at 35% 45%, transparent 0%, transparent 30%, black 100%);
    -webkit-mask-image: radial-gradient(ellipse 45% 35% at 35% 45%, transparent 0%, transparent 30%, black 100%);
}

/* Blocks are spawned + positioned by scripts/hero.js */
.floating-block {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
    backdrop-filter: blur(2px);
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.floating-block.exploding {
    animation: blockExplode 0.55s cubic-bezier(0.45, 0, 0.7, 1) forwards;
    pointer-events: none;
}

@keyframes blockExplode {
    0%   { transform: var(--current-transform, none) scale(1);   opacity: 1; filter: brightness(1); }
    25%  { transform: var(--current-transform, none) scale(1.3); opacity: 1; filter: brightness(2.2) saturate(1.5); }
    100% { transform: var(--current-transform, none) scale(0);   opacity: 0; filter: brightness(3); }
}

/* Particle burst spawned on collision */
.block-particle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    animation: blockParticle 0.65s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes blockParticle {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--px, 0), var(--py, 0)) scale(0.2); opacity: 0; }
}

/* ------ Cursor halo — visual hint that the hero is interactive ------ */
.hero-cursor {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(182, 255, 60, 0.45);
    box-shadow:
        0 0 30px rgba(182, 255, 60, 0.25),
        inset 0 0 16px rgba(182, 255, 60, 0.15);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
    mix-blend-mode: screen;
    backdrop-filter: blur(1px);
}

.hero-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-cursor.bursting {
    animation: cursorBurst 0.4s ease-out;
}

@keyframes cursorBurst {
    0%   { transform: translate(-50%, -50%) scale(1);   border-color: rgba(182, 255, 60, 0.45); }
    50%  { transform: translate(-50%, -50%) scale(1.6); border-color: rgba(182, 255, 60, 0.9); box-shadow: 0 0 60px rgba(182, 255, 60, 0.6); }
    100% { transform: translate(-50%, -50%) scale(1);   border-color: rgba(182, 255, 60, 0.45); }
}

/* ------ Hero content (above the blocks) ------ */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--acid);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 8px 16px;
    background: rgba(182, 255, 60, 0.06);
    border: 1px solid rgba(182, 255, 60, 0.25);
    border-radius: 100px;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--acid);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Title now renders the new-logo image (background removed via SVG filter) */
.hero-title {
    margin: 0 0 28px;
    line-height: 0;
}

.hero-title-img {
    display: block;
    max-width: min(720px, 92%);
    width: 100%;
    height: auto;
    filter:
        url(#bgKnockoutDark)
        drop-shadow(0 0 30px rgba(139, 61, 255, 0.45))
        drop-shadow(0 0 60px rgba(45, 212, 255, 0.25));
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
    max-width: 720px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-meta-item .label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-meta-item .value {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero { padding: 120px 0 60px; }
}

@media (max-width: 700px) {
    .hero-blocks {
        mask-image: radial-gradient(ellipse 90% 75% at 50% 50%, transparent 0%, transparent 45%, black 85%);
        -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 50%, transparent 0%, transparent 45%, black 85%);
    }
}

@media (max-width: 560px) {
    .hero-meta { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-block { animation: none; transform: none !important; }
    .block-particle { display: none; }
}
