/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__video, .hero__bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.75) 60%, var(--cr-black) 100%),
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(168,85,247,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(56,189,248,0.1) 0%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 6rem 1.5rem 2rem;
}
.hero__inner { max-width: 700px; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--cr-font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cr-purple);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-family: var(--cr-font-display);
    font-size: clamp(72px, 14vw, 160px);
    letter-spacing: .04em;
    line-height: 0.9;
    margin-bottom: .5rem;
}
.hero__title-line { display: block; }

.hero__tagline {
    font-family: var(--cr-font-heading);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cr-dim);
    margin-bottom: 1.25rem;
}
.hero__desc {
    font-size: 17px;
    font-weight: 300;
    color: var(--cr-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 180px;
    left: 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.scroll-text {
    font-family: var(--cr-font-heading);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cr-muted);
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--cr-purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* Hero Stats */
.hero__stats {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(13,13,26,0.9);
    border-top: 1px solid var(--cr-border);
    backdrop-filter: blur(8px);
    margin-top: auto;
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem 0;
}
.hero-stat {
    text-align: center;
    padding: .5rem 1rem;
    border-right: 1px solid var(--cr-border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat__num {
    font-family: var(--cr-font-display);
    font-size: 42px;
    letter-spacing: .04em;
    color: var(--cr-purple);
    line-height: 1;
}
.hero-stat__plus, .hero-stat__unit {
    font-family: var(--cr-font-heading);
    font-size: 20px;
    color: var(--cr-purple);
    vertical-align: super;
}
.hero-stat__label {
    display: block;
    font-family: var(--cr-font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cr-muted);
    margin-top: .2rem;
}

/* Page Hero (inner pages) */
.page-hero {
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(56,189,248,0.08) 100%),
        var(--cr-deep);
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--cr-border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(168,85,247,0.12), transparent 70%);
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__title {
    font-family: var(--cr-font-display);
    font-size: clamp(40px, 7vw, 80px);
    color: #fff;
    letter-spacing: .04em;
    line-height: 1;
    margin: .5rem 0;
}
.page-hero__desc {
    font-size: 17px; font-weight: 300;
    color: var(--cr-dim); max-width: 560px;
    line-height: 1.7; margin-top: .75rem;
}

/* Directory Search */
.directory-search-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(168,85,247,.3);
    border-radius: var(--cr-radius);
    padding: .75rem 1.25rem;
    max-width: 560px;
    margin-top: 1.5rem;
    color: var(--cr-muted);
    transition: border-color .2s;
}
.directory-search-bar:focus-within { border-color: var(--cr-purple); color: var(--cr-purple); }
.directory-search-bar input {
    flex: 1;
    background: none; border: none;
    color: var(--cr-text);
    font-family: var(--cr-font-body);
    font-size: 16px; outline: none;
}
.directory-search-bar input::placeholder { color: var(--cr-muted); }

@media (max-width: 768px) {
    .hero { min-height: 85vh; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stat:nth-child(2) { border-right: none; }
    .hero__scroll-indicator { display: none; }
}
