/* ===================================
   HYPERSPEED HERO — "Abstract Roots"
   =================================== */

/* Canvas container */
.hyperspeed-canvas {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hyperspeed-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Hero wrapper — fills viewport
   ──────────────────────────────────
   BACKGROUND COLOR CONTROL:
   Change the hex below to adjust the hero bg.
   Current: #201a14 (warm dark chocolate)
   Brand options:
     #1a1512 — deep earthy black
     #201a14 — warm dark chocolate  ← current
     #2a2018 — medium warm brown
     #3A2E1F — Rootra signature brown
   ────────────────────────────────── */
.hero-hyperspeed {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #4e4034;
    cursor: pointer;
}

/* Gradient overlay — warmer tint for brand feel */
.hero-hyperspeed-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(32, 26, 20, 0) 25%, rgba(32, 26, 20, 0.55) 100%),
        linear-gradient(180deg, rgba(32, 26, 20, 0.2) 0%, transparent 25%, transparent 65%, rgba(32, 26, 20, 0.6) 100%);
    pointer-events: none;
}

/* Text overlay on top of everything */
.hero-hyperspeed-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

/* ===== PREMIUM HEADLINE ===== */
.hero-hs-headline {
    font-family: 'Georgia', 'Playfair Display', serif;
    font-size: 4.8rem;
    font-weight: 400;
    color: #FFF8E7;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: hsTextFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;

    /* Premium text glow — makes it pop against the dark bg */
    text-shadow:
        0 0 60px rgba(212, 175, 55, 0.15),
        0 0 120px rgba(240, 209, 202, 0.08),
        0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Accent word "Roots" — warm gold shimmer */
.hero-hs-accent {
    color: #D4AF37;
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-hs-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    opacity: 0.5;
}

/* ===== SUBHEAD ===== */
.hero-hs-subhead {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 248, 231, 0.55);
    max-width: 460px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 2.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: hsTextFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

/* ===== CTA BUTTON — Premium ===== */
.hero-hs-cta {
    display: inline-block;
    padding: 16px 48px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFF8E7;
    background: rgba(212, 175, 55, 0.12);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: hsTextFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.4s;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.06);
}

/* Shimmer sweep on hover */
.hero-hs-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transition: left 0.6s ease;
}

.hero-hs-cta:hover::before {
    left: 100%;
}

.hero-hs-cta:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.7);
    color: #FFF8E7;
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.15),
        0 0 80px rgba(212, 175, 55, 0.06);
    transform: translateY(-2px);
}

.hero-hs-cta:active {
    transform: translateY(0);
    background: rgba(212, 175, 55, 0.35);
}

/* Scroll hint at bottom */
.hero-hs-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 248, 231, 0.2);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    animation: hsTextFadeIn 1.2s ease forwards 2s;
}

.hero-hs-scroll-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.3) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes hsTextFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-hyperspeed {
        min-height: 500px;
    }

    .hero-hs-headline {
        font-size: 2.8rem;
    }

    .hero-hs-accent::after {
        bottom: 2px;
        height: 1.5px;
    }

    .hero-hs-subhead {
        font-size: 0.95rem;
        max-width: 340px;
    }

    .hero-hs-cta {
        padding: 13px 34px;
        font-size: 0.78rem;
    }
}

@media (max-width: 576px) {
    .hero-hs-headline {
        font-size: 2.2rem;
    }

    .hero-hs-subhead {
        font-size: 0.88rem;
    }
}
