/* Home page hero — no background, inherits site shell */

.home-hero {
    --hero-blue-800: 30 64 175;
    --hero-blue-700: 29 78 216;
    --hero-blue-600: 37 99 235;
}

.home-page {
    overflow: visible;
}

.home-hero {
    position: relative;
    overflow: visible;
    padding: 1.5rem 0 2.5rem;
    color: rgb(15 23 42);
}

.home-hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
    max-width: 72rem;
    margin-inline: auto;
}

.home-hero__content {
    max-width: 40rem;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgb(191 219 254);
    background: rgb(239 246 255);
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(var(--hero-blue-800));
}

.home-hero__badge-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: rgb(234 179 8);
}

.home-hero__title {
    margin: 0;
    font-size: clamp(1.875rem, 4.8vw, 2.875rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-wrap: balance;
    color: rgb(15 23 42);
}

.home-hero__subtitle {
    margin: 0.875rem 0 0;
    max-width: 36rem;
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    line-height: 1.85;
    color: rgb(71 85 105);
}

/* Search */
.home-hero__search-wrap {
    position: relative;
    z-index: 20;
    margin-top: 1.75rem;
}

.home-hero__search-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.5rem;
    padding: 0.35rem 0.35rem 0.35rem 0.45rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 9999px;
    background: rgb(255 255 255);
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        0 8px 24px rgb(15 23 42 / 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-hero__search-bar:focus-within {
    border-color: rgb(var(--hero-blue-600));
    box-shadow:
        0 4px 20px rgb(var(--hero-blue-600) / 0.12),
        0 0 0 4px rgb(219 234 254);
    transform: translateY(-1px);
}

.home-hero__search-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-inline-start: 0.15rem;
    border-radius: 9999px;
    background: rgb(239 246 255);
    color: rgb(var(--hero-blue-600));
}

.home-hero__search-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.home-hero__search-input {
    min-width: 0;
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 0.5rem;
    font-size: 0.9375rem;
    color: rgb(15 23 42);
    outline: none;
}

.home-hero__search-input::placeholder {
    color: rgb(148 163 184);
}

.home-hero__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.home-hero__search-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(var(--hero-blue-600)), rgb(var(--hero-blue-700)));
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(255 255 255);
    box-shadow: 0 4px 14px rgb(var(--hero-blue-600) / 0.35);
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.home-hero__search-btn-icon {
    display: none;
    width: 1.125rem;
    height: 1.125rem;
}

.home-hero__search-btn:hover {
    background: linear-gradient(135deg, rgb(var(--hero-blue-700)), rgb(30 58 138));
    box-shadow: 0 6px 18px rgb(var(--hero-blue-600) / 0.42);
}

.home-hero__search-btn:active {
    transform: scale(0.98);
}

.home-hero__search-panel {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    left: 0;
    border-radius: 1.25rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 20px 48px rgb(15 23 42 / 0.12);
    overflow: hidden;
    animation: homeHeroPanelIn 0.18s ease-out;
}

.home-hero__search-panel.is-open {
    display: block;
}

.home-hero__search-panel[hidden] {
    display: none;
}

@keyframes homeHeroPanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.home-hero__search-panel-inner {
    max-height: min(52vh, 380px);
    overflow-y: auto;
    padding: 0.35rem;
}

.home-hero__search-hint,
.home-hero__search-empty {
    margin: 0;
    padding: 1rem 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgb(100 116 139);
    text-align: center;
}

.home-hero__search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.125rem;
    font-size: 0.8125rem;
    color: rgb(100 116 139);
}

.home-hero__search-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(226 232 240);
    border-top-color: rgb(var(--hero-blue-600));
    border-radius: 9999px;
    animation: homeHeroSpin 0.7s linear infinite;
}

@keyframes homeHeroSpin {
    to { transform: rotate(360deg); }
}

.home-hero__result-group + .home-hero__result-group {
    margin-top: 0.25rem;
    border-top: 1px solid rgb(241 245 249);
    padding-top: 0.25rem;
}

.home-hero__result-label {
    margin: 0;
    padding: 0.5rem 0.75rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgb(100 116 139);
}

.home-hero__result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-hero__result-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.home-hero__result-link:hover {
    background: rgb(239 246 255);
}

.home-hero__result-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.625rem;
    color: rgb(255 255 255);
}

.home-hero__result-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.home-hero__result-icon--calls { background: rgb(var(--hero-blue-600)); }
.home-hero__result-icon--axes { background: rgb(79 70 229); }
.home-hero__result-icon--elites { background: rgb(5 150 105); }
.home-hero__result-icon--articles { background: rgb(234 88 12); }
.home-hero__result-icon--ideas { background: rgb(217 119 6); }

.home-hero__result-text {
    min-width: 0;
    flex: 1;
    padding-top: 0.1rem;
}

.home-hero__result-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.45;
    color: rgb(15 23 42);
}

.home-hero__result-subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgb(100 116 139);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgb(203 213 225);
    background: rgb(255 255 255);
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(51 65 85);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-hero__link:hover {
    border-color: rgb(var(--hero-blue-600));
    background: rgb(239 246 255);
    color: rgb(var(--hero-blue-800));
}

/* Visual */
.home-hero__visual {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    overflow: visible;
}

.home-hero__visual-orbit {
    position: relative;
    width: min(100%, 400px);
    height: 340px;
    overflow: visible;
}

.home-hero__ring {
    position: absolute;
    inset: 10% 6%;
    border-radius: 9999px;
    border: 1px dashed rgb(203 213 225);
    animation: homeHeroRingSpin 26s linear infinite;
}

@keyframes homeHeroRingSpin {
    to { transform: rotate(360deg); }
}

.home-hero__card {
    position: absolute;
    inset: 16% 8% 16% 8%;
    border-radius: 1.25rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 12px 32px rgb(15 23 42 / 0.08);
    animation: homeHeroFloat 6s ease-in-out infinite alternate;
}

@keyframes homeHeroFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.home-hero__card-head {
    display: flex;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgb(241 245 249);
}

.home-hero__card-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background: rgb(203 213 225);
}

.home-hero__card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.home-hero__card-stat-value {
    display: block;
    font-size: 2.125rem;
    font-weight: 900;
    line-height: 1;
    color: rgb(var(--hero-blue-800));
}

.home-hero__card-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: rgb(100 116 139);
}

.home-hero__card-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 5rem;
    margin-top: 1.25rem;
}

.home-hero__card-bars span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 0.4rem 0.4rem 0.1rem 0.1rem;
    background: linear-gradient(180deg, rgb(var(--hero-blue-600)), rgb(147 197 253));
    opacity: 0.85;
    animation: homeHeroBar 3s ease-in-out infinite alternate;
}

.home-hero__card-bars span:nth-child(2) { animation-delay: 0.2s; }
.home-hero__card-bars span:nth-child(3) { animation-delay: 0.4s; }
.home-hero__card-bars span:nth-child(4) { animation-delay: 0.6s; }
.home-hero__card-bars span:nth-child(5) { animation-delay: 0.8s; }

@keyframes homeHeroBar {
    from { transform: scaleY(0.92); }
    to { transform: scaleY(1); }
}

.home-hero__float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 0.875rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    padding: 0.5rem 0.8rem 0.5rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(var(--hero-blue-800));
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
    white-space: nowrap;
}

.home-hero__float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.home-hero__float-icon svg {
    width: 1rem;
    height: 1rem;
}

.home-hero__float-icon--ideas {
    background: rgb(254 243 199);
    color: rgb(180 83 9);
}

.home-hero__float-icon--elites {
    background: rgb(209 250 229);
    color: rgb(4 120 87);
}

.home-hero__float-icon--calls {
    background: rgb(219 234 254);
    color: rgb(var(--hero-blue-800));
}

.home-hero__float--ideas {
    top: 2%;
    left: 0;
    animation: homeHeroFloat 5s ease-in-out infinite alternate-reverse;
}

.home-hero__float--elites {
    right: 0;
    bottom: 20%;
    animation: homeHeroFloat 7s ease-in-out infinite alternate;
    animation-delay: -2s;
}

.home-hero__float--calls {
    left: 10%;
    bottom: 0;
    animation: homeHeroFloat 6.5s ease-in-out infinite alternate-reverse;
    animation-delay: -1s;
}

@media (min-width: 640px) {
    .home-hero {
        padding: 2rem 0 3rem;
    }

    .home-hero__search-bar {
        min-height: 3.75rem;
        padding: 0.4rem 0.4rem 0.4rem 0.5rem;
    }

    .home-hero__search-btn {
        min-height: 2.95rem;
        padding: 0.7rem 1.35rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .home-hero__search-btn-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .home-hero__search-btn-icon {
        display: block;
    }

    .home-hero__search-btn {
        width: 2.75rem;
        min-width: 2.75rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .home-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .home-hero__inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
        gap: 2.5rem;
    }

    .home-hero__visual {
        display: flex;
    }

    .home-hero__content {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__ring,
    .home-hero__card,
    .home-hero__float,
    .home-hero__card-bars span,
    .home-hero__search-panel {
        animation: none;
    }
}

.home-hero .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
