/* ── Public Header ── */
:root {
    --primary: #6022C4;
    --primary-hover: #7439d9;
    --radius-xlg: 25px;
}

body {
    padding-top: 78px;
}

.home-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    pointer-events: none;
}

.home-header {
    pointer-events: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    background: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 860px;
    transition: box-shadow 0.3s, background 0.3s;
    gap: 1rem;
}

.home-header.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    background: white;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -3px;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 0;
}

.home-logo img {
    width: 24px;
    height: 27px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -3px;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.home-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    transition: all 0.18s;
}

.home-nav a:hover {
    color: #6022c4;
    background: rgba(96, 34, 196, 0.06);
}

.home-nav a.active {
    color: #6022c4;
    font-weight: 600;
}

.home-header-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-ghost {
    padding: 0 0.7rem;
    background: transparent;
    color: #374151;
    border: none;
    border-radius: 30px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.18s;
}

.btn-ghost:hover {
    color: #6022c4;
}

.btn-cta {
    padding: 0.45rem 1.1rem;
    background: #6022c4;
    border: 1px solid #6022c4;
    color: white !important;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
    display: inline-block;
}

.btn-cta:hover {
    background: #844ce5;
}

.icon {
    display: inline;
    font-size: 1.3rem;
}

.text {
    display: none;
}

.btn-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
}

.btn-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.btn-burger.open span:nth-child(2) {
    opacity: 0;
}

.btn-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    pointer-events: all;
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    max-height: 320px;
    opacity: 1;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.15s;
}

.mobile-menu a:hover {
    background: rgba(96, 34, 196, 0.06);
    color: #6022c4;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .home-header-wrap {
        padding: 0.75rem 1rem;
    }

    .home-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        padding: 0.4rem 0.6rem;
    }

    .home-nav {
        display: none;
    }

    .home-header-buttons {
        display: flex;
        justify-content: center;
        grid-column: 2;
    }

    .btn-burger {
        display: flex;
        grid-column: 3;
    }
}
