/* Home page enhancements (scoped). */

.home-page .home-hero {
    position: relative;
    overflow: hidden;
}

.home-page .home-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(900px circle at 20% 0%, rgba(139, 92, 246, 0.28), transparent 55%),
        radial-gradient(700px circle at 90% 10%, rgba(34, 211, 238, 0.20), transparent 55%),
        radial-gradient(800px circle at 50% 120%, rgba(251, 191, 36, 0.10), transparent 62%);
    opacity: 0.9;
    pointer-events: none;
}

.home-page .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    opacity: 0.35;
    pointer-events: none;
}

.home-page .home-hero .hero-split {
    position: relative;
    z-index: 1;
}

.home-page .home-hero .hero-title {
    font-size: clamp(30px, 4.9vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.home-page .home-hero .hero-sub {
    font-size: 15px;
    max-width: 60ch;
}

.home-page .home-search {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .home-page .home-search {
        grid-template-columns: 1fr;
    }
}

.home-page .home-search .search-field {
    position: relative;
}

.home-page .home-search .search-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(178, 184, 203, 0.95);
    opacity: 0.9;
    pointer-events: none;
}

.home-page .home-search .input {
    padding-inline-start: 44px;
}

.home-page .home-search .btn {
    white-space: nowrap;
}

.home-page .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.home-page .trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.home-page .trust-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    opacity: 0.95;
}

.home-page .hero-chips {
    margin-top: 14px;
}

.home-page .hero-chips .chips {
    gap: 10px;
}

.home-page .hero-chips .chip {
    padding: 7px 12px;
}

.home-page .hero-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-page .hero-panel .panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-page .hero-panel .panel-title {
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}

.home-page .hero-panel .panel-sub {
    font-size: 12px;
    color: var(--muted);
}

/* Keep stats compact inside the hero panel (avoid 4 columns on wide screens). */
.home-page .home-hero .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.home-page .home-hero .stat-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.home-page .home-hero .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.10);
    flex: 0 0 auto;
}

.home-page .home-hero .stat-icon svg {
    width: 18px;
    height: 18px;
}

.home-page .home-hero .stat-label {
    font-size: 12px;
    color: var(--muted);
}

.home-page .home-hero .stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.home-page .feature-card .muted {
    margin-top: 8px;
    font-size: 13px;
}

.home-page .app-dev {
    font-size: 13px;
    margin-top: 6px;
}

.home-page .app-title-link:hover {
    color: var(--accent);
}

.home-page .category-desc {
    font-size: 13px;
    margin-top: 6px;
}

.home-page .how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.home-page .how-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.home-page .how-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.home-page .how-card > * {
    position: relative;
    z-index: 1;
}

.home-page .how-step {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #fff;
}

.home-page .how-title {
    font-weight: 800;
    margin-top: 12px;
    color: #fff;
}

.home-page .how-card .muted {
    margin-top: 8px;
    font-size: 13px;
}

.home-page .longcopy {
    max-width: 82ch;
}

.home-page .longcopy p {
    margin: 10px 0;
}

.home-page .text-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-page .faq-grid {
    display: grid;
    gap: 12px;
}

.home-page .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 14px 16px;
}

.home-page .faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
    color: #fff;
}

.home-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.home-page .faq-item .chev {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}

.home-page .faq-item[open] .chev {
    transform: rotate(180deg);
}

.home-page .faq-item .faq-answer {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

@keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-page .home-hero .hero-left {
    animation: homeFadeUp 0.55s ease-out both;
}

.home-page .home-hero .hero-panel {
    animation: homeFadeUp 0.65s ease-out 0.04s both;
}

