/* index3.html — premium hero: glow, letter stagger, accent, smooth copy layers */

/* index-sections.css sets .hero { overflow: hidden } — clips nowrap "ASTROTALK" */
.hero.hero--sample3 {
    overflow: visible;
}

.hero.hero--sample3 .hero-container {
    overflow: visible;
}

/* Shared layout for all sample-3 heroes */
.hero.hero--sample3 .hero-premium-v3 {
    --hero-v3-copy-width: min(28rem, 100%);
    position: relative;
    max-width: 40rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/*
 * index3.html (dark starfield): frosted card behind copy — same role as index3b’s
 * light hero-premium panel (only on pages without body.index3b-page).
 */
body:not(.index3b-page) .hero.hero--sample3 .hero-premium-v3 {
    padding: 1.25rem 1.4rem 1.35rem;
    border-radius: 1.6rem;
    background: linear-gradient(
        180deg,
        rgba(12, 14, 24, 0.55) 0%,
        rgba(8, 10, 18, 0.72) 42%,
        rgba(6, 8, 14, 0.68) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

.hero.hero--sample3 .hero-glow-v3 {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: min(142%, 28rem);
    height: clamp(10rem, 26vw, 14rem);
    background: radial-gradient(
        ellipse 78% 68% at 50% 42%,
        rgba(255, 242, 210, 0.14) 0%,
        rgba(230, 194, 122, 0.18) 26%,
        rgba(197, 160, 89, 0.14) 48%,
        rgba(180, 90, 120, 0.05) 62%,
        transparent 76%
    );
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    will-change: transform, opacity, filter;
}

.hero.hero--sample3 .hero-heading-block-v3,
.hero.hero--sample3 .hero-title-v3,
.hero.hero--sample3 .hero-accent-row-v3,
.hero.hero--sample3 .hero-lines-v3,
.hero.hero--sample3 .hero-cta-v3 {
    position: relative;
    z-index: 1;
}

/* Above the line: hidden until animation — slides up from the horizontal spine */
/* Centered in column with taglines below; no max-width cap (would clip ASTROTALK) */
.hero.hero--sample3:not(.is-hero-ready) .hero-heading-block-v3 {
    width: 100%;
    max-width: none;
    overflow: visible;
    opacity: 0;
    transform: translate3d(0, 56px, 0);
    text-align: center;
}

.hero.hero--sample3.is-hero-ready .hero-heading-block-v3 {
    width: 100%;
    max-width: none;
    overflow: visible;
    text-align: center;
}

/* Fonts (reference): Montserrat 700 + Lato — original gold / theme colors unchanged */
@keyframes heroShimmerV3 {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes heroTitleGlowPulseV3 {
    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(255, 250, 236, 0.12)) drop-shadow(0 0 6px rgba(230, 194, 122, 0.08));
        text-shadow:
            0 0 2px rgba(255, 252, 242, 0.1),
            0 0 8px rgba(255, 235, 190, 0.05),
            0 0 14px rgba(197, 160, 89, 0.035);
    }
    50% {
        filter: drop-shadow(0 0 1px rgba(255, 252, 242, 0.16)) drop-shadow(0 0 8px rgba(230, 194, 122, 0.11));
        text-shadow:
            0 0 3px rgba(255, 255, 248, 0.12),
            0 0 10px rgba(255, 239, 199, 0.07),
            0 0 16px rgba(197, 160, 89, 0.045);
    }
}

@keyframes heroAmbientGlowV3 {
    0%,
    100% {
        transform: translateX(-50%) scale(0.98);
        opacity: 0.55;
        filter: blur(8px);
    }
    50% {
        transform: translateX(-50%) scale(1.02);
        opacity: 0.68;
        filter: blur(10px);
    }
}

/* Sliding highlight on gold bar — same cadence as ASTROTALK title shimmer */
@keyframes heroAccentShimmerV3 {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.hero.hero--sample3 .hero-title-v3.is-shimmer-v3 {
    animation:
        heroShimmerV3 10s cubic-bezier(0.37, 0, 0.24, 1) infinite alternate,
        heroTitleGlowPulseV3 4.8s ease-in-out infinite;
}

.hero.hero--sample3 .hero-title-v3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 5.5vw, 5.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.08em;
    margin: 0 0 0.45rem;
    white-space: nowrap;
    display: inline-block;
    max-width: none;
    position: relative;
    color: #fff2c8;
    -webkit-text-fill-color: #fff2c8;
    filter: drop-shadow(0 0 1px rgba(255, 255, 246, 0.12)) drop-shadow(0 0 4px rgba(230, 194, 122, 0.07));
    text-shadow:
        0 0 1px rgba(255, 252, 242, 0.12),
        0 0 5px rgba(255, 236, 193, 0.055),
        0 0 10px rgba(197, 160, 89, 0.035);
    will-change: transform, opacity, filter;
}

.hero.hero--sample3 .hero-title-v3 .char-v3 {
    display: inline-block;
    text-shadow: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
    will-change: transform, opacity, filter;
}

.hero.hero--sample3 .hero-accent-row-v3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
    width: 100%;
    max-width: var(--hero-v3-copy-width);
    margin-left: auto;
    margin-right: auto;
}

.hero.hero--sample3 .hero-flourish-v3 {
    flex: 1;
    height: 2px;
    min-width: 1rem;
    opacity: 0;
    transform: scaleX(0);
    border-radius: 1px;
}

.hero.hero--sample3 .hero-flourish-v3--l {
    transform-origin: right center;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(197, 160, 89, 0.2),
        rgba(230, 194, 122, 0.65)
    );
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

.hero.hero--sample3 .hero-flourish-v3--r {
    transform-origin: left center;
    background: linear-gradient(
        90deg,
        rgba(230, 194, 122, 0.65),
        rgba(197, 160, 89, 0.2),
        transparent
    );
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

/* Wrapper: line scales on load; dot is sibling so it isn’t squashed by scaleX */
.hero.hero--sample3 .hero-accent-line-wrap-v3 {
    position: relative;
    width: min(15rem, 58vw);
    height: 4px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.hero.hero--sample3 .hero-accent-dot-v3 {
    position: absolute;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 32% 32%,
        #ffffff 0%,
        #fff8e6 28%,
        var(--accent-gold-light) 52%,
        rgba(197, 160, 89, 0.35) 100%
    );
    box-shadow:
        0 0 6px 2px rgba(255, 255, 255, 0.95),
        0 0 16px 5px rgba(230, 194, 122, 0.85),
        0 0 28px 10px rgba(197, 160, 89, 0.5);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    will-change: transform, opacity;
}

/* Wider, thicker bar with bright core + layered glow */
.hero.hero--sample3 .hero-accent-line-v3 {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        rgba(197, 160, 89, 0.15) 0%,
        rgba(197, 160, 89, 0.85) 18%,
        #f5e6c8 42%,
        var(--accent-gold-light) 50%,
        #f0e4c4 58%,
        rgba(197, 160, 89, 0.88) 82%,
        rgba(197, 160, 89, 0.12) 100%
    );
    box-shadow:
        0 0 6px rgba(255, 248, 220, 0.55),
        0 0 18px rgba(230, 194, 122, 0.75),
        0 0 36px rgba(197, 160, 89, 0.55),
        0 0 56px rgba(197, 160, 89, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scaleX(0);
}

.hero.hero--sample3 .hero-accent-line-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 36%,
        rgba(255, 255, 255, 0.2) 44%,
        rgba(255, 252, 240, 0.95) 50%,
        rgba(255, 255, 255, 0.22) 56%,
        transparent 64%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: heroAccentShimmerV3 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.hero.hero--sample3 .hero-accent-line-v3::after {
    content: '';
    position: absolute;
    inset: -6px -8px -6px -8px;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 70% 120% at 50% 50%,
        rgba(255, 245, 220, 0.45) 0%,
        rgba(230, 194, 122, 0.22) 42%,
        transparent 72%
    );
    z-index: -1;
    pointer-events: none;
    filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
    .hero.hero--sample3 .hero-accent-line-v3::before {
        animation: none;
    }

    .hero.hero--sample3 .hero-title-v3.is-shimmer-v3,
    .hero.hero--sample3 .hero-glow-v3 {
        animation: none;
    }
}

.hero.hero--sample3 .hero-lines-v3 .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--hero-v3-tagline-size);
    font-weight: 600;
    font-style: normal;
    margin-bottom: 0.5rem;
    color: var(--accent-gold-light);
    white-space: nowrap;
}

.hero.hero--sample3 .hero-lines-v3 .hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--hero-v3-tagline-size);
    font-weight: 600;
    font-style: normal;
    color: var(--accent-gold-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Below the line: whole block hidden — slides down from the spine */
/* Same horizontal band as accent row; both taglines share one fluid size (mobile + desktop) */
.hero.hero--sample3 .hero-lines-v3 {
    --hero-v3-tagline-size: clamp(0.62rem, calc(0.4rem + 2.35vw), 1.35rem);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: var(--hero-v3-copy-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero.hero--sample3:not(.is-hero-ready) .hero-lines-v3 {
    opacity: 0;
    transform: translate3d(0, -52px, 0);
}

.hero.hero--sample3 .hero-lines-v3 .hero-subtitle,
.hero.hero--sample3 .hero-lines-v3 .hero-description {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    text-align: center;
    box-sizing: border-box;
}

.hero.hero--sample3 .hero-cta-v3 {
    margin-top: 1.65rem;
    opacity: 0;
}

/* Post-intro: release preset offsets so copy stays title → line → taglines */
.hero.hero--sample3.is-hero-ready .hero-heading-block-v3,
.hero.hero--sample3.is-hero-ready .hero-title-v3,
.hero.hero--sample3.is-hero-ready .hero-accent-row-v3,
.hero.hero--sample3.is-hero-ready .hero-lines-v3,
.hero.hero--sample3.is-hero-ready .hero-cta-v3 {
    opacity: 1;
    transform: none;
}

.hero.hero--sample3 .hero-left {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.hero.hero--sample3 .hero-left .hero-content {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.hero.hero--sample3 .hero-visual-v3 {
    will-change: transform;
}

/* Matching frosted panel behind zodiac (index3 only — not index3b parchment) */
body:not(.index3b-page) .hero.hero--sample3 .hero-visual-v3 {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(
        165deg,
        rgba(14, 16, 26, 0.45) 0%,
        rgba(8, 10, 18, 0.62) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

body:not(.index3b-page) .hero.hero--sample3 .hero-visual-v3 .zodiac-wheel {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    /* Stack + padding: match centered column to viewport (avoids edge clipping) */
    .hero.hero--sample3 .hero-premium-v3 {
        --hero-v3-copy-width: min(28rem, calc(100vw - 1.75rem));
        max-width: min(40rem, 100%);
        padding-inline: 0.35rem;
        box-sizing: border-box;
    }

    /* Larger “ASTROTALK” on phones */
    .hero.hero--sample3 .hero-title-v3 {
        letter-spacing: 0.05em;
        font-size: clamp(1.75rem, 8.2vw, 3.35rem);
    }

    /* Gold bar scales with screen; stays visually tied to title width */
    .hero.hero--sample3 .hero-accent-line-wrap-v3 {
        width: min(16.5rem, 88vw);
    }

    .hero.hero--sample3 .hero-accent-row-v3 {
        margin-bottom: 0.8rem;
    }

    /* Both taglines: same fluid size + shared band width on phone */
    .hero.hero--sample3 .hero-lines-v3 {
        --hero-v3-tagline-size: clamp(0.56rem, calc(0.34rem + 3.05vw), 1.15rem);
        max-width: var(--hero-v3-copy-width);
        padding-inline: 0.15rem;
    }

    .hero.hero--sample3 .hero-lines-v3 .hero-subtitle {
        line-height: 1.3;
    }

    .hero.hero--sample3 .hero-lines-v3 .hero-description {
        line-height: 1.45;
    }

    .hero.hero--sample3 .hero-cta-v3 {
        margin-top: 1.35rem;
    }
}

/* Very narrow phones: allow subtitle to wrap so nothing clips; keeps equal-width column */
@media (max-width: 400px) {
    .hero.hero--sample3 .hero-premium-v3 {
        --hero-v3-copy-width: min(28rem, calc(100vw - 1.25rem));
        padding-inline: 0.2rem;
    }

    .hero.hero--sample3 .hero-title-v3 {
        font-size: clamp(1.55rem, 7.5vw, 3rem);
    }

    .hero.hero--sample3 .hero-accent-line-wrap-v3 {
        width: min(15rem, 90vw);
    }

    .hero.hero--sample3 .hero-lines-v3 {
        --hero-v3-tagline-size: clamp(0.52rem, calc(0.3rem + 2.85vw), 1.05rem);
    }

    .hero.hero--sample3 .hero-lines-v3 .hero-subtitle {
        white-space: normal;
        hyphens: manual;
    }
}
