:root {
    --bg: #f5f5f7;
    --bg-accent: #d5d5d9;
    --text-main: #111111;
    --text-muted: #6b6b6b;
    --accent: #4a7cff;
    --pill-bg: #d8d8dd;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
    --radius-lg: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* padding: 40px 16px 32px; */
    overflow: hidden;
}

/* @media (min-width: 768px) {
    .hero {
    padding: 56px 32px 40px;
    }
} */

/* ВОЛНА СВЕРХУ */
.hero__wave {
    position: absolute;
    top: -40vh;
    left: 50%;
    width: 160%;
    height: 55vh;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 120%, #bfc0c3, #a8a9ad);
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    z-index: -1;
    animation: waveReveal 1.2s cubic-bezier(0.22,0.61,0.36,1) forwards;
}

@keyframes waveReveal {
    from {
    transform: translateX(-50%) translateY(-60px) scale(1.1);
    opacity: 0;
    }
    to {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    }
}

/* АВАТАРКА */

.hero__avatar-wrapper {
    margin-top: 56px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero__avatar-circle {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffffff, #f0f0f4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: avatarIn 0.9s cubic-bezier(0.22,0.61,0.36,1) 0.1s both,
                avatarFloat 4.8s ease-in-out 1s infinite;
}

.hero__avatar-placeholder {
    width: 99%;
    height: 99%;
    border-radius: 50%;
    /* background: linear-gradient(145deg, #f7f7f8, #dedfe4); */
    background-image: url(Group\ 62.png);
    background-size: cover;
    background-position: center center;
    background-color: #707070;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #555;
    font-weight: 600;
    text-align: center;
}

/* .hero__avatar-emoji {
    font-size: 40px;
    line-height: 1;
}

.hero__avatar-text {
    font-size: 14px;
    opacity: 0.8;
} */

.hero__avatar-glare {
    position: absolute;
    inset: -40%;
    background: radial-gradient(
    circle at 0% 0%,
    rgba(255, 255, 255, 0.8),
    transparent 60%
    );
    opacity: 0;
    animation: glareSweep 2.2s ease-out 0.6s forwards;
    pointer-events: none;
}

@keyframes avatarIn {
    from {
    transform: translateY(36px) scale(0.8);
    opacity: 0;
    }
    to {
    transform: translateY(0) scale(1);
    opacity: 1;
    }
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.01); }
}

@keyframes glareSweep {
    0% {
    transform: translateX(-60%) translateY(-40%) rotate(-15deg);
    opacity: 0;
    }
    40% { opacity: 1; }
    100% {
    /* transform: translateX(40%) translateY(10%) rotate(-10deg); */
    opacity: 0;
    }
}

/* ТЕКСТЫ */

.hero__content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
    padding: 0 8px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    animation: badgeIn 0.7s cubic-bezier(0.22,0.61,0.36,1) 0.4s both;
}

.hero__badge-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #5d8bff, #3350ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 0 0 0 rgba(52, 95, 255, 0.6);
    animation: badgePulse 1.8s ease-out 0.9s infinite;
}

.hero__title {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.25;
    margin-top: 22px;
    margin-bottom: 12px;
    animation: heroTitleIn 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.55s both;
}

.hero__subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    animation: heroSubtitleIn 0.82s cubic-bezier(0.22,0.61,0.36,1) 0.7s both;
}

@keyframes badgeIn {
    from { transform: translateY(16px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 124, 255, 0.6); }
    100% { box-shadow: 0 0 0 16px rgba(74, 124, 255, 0); }
}

@keyframes heroTitleIn {
    from { transform: translateY(26px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes heroSubtitleIn {
    from { transform: translateY(26px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ХИНТ СКРОЛЛА */

.hero__scroll-hint {
    margin-top: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: hintIn 0.7s cubic-bezier(0.22,0.61,0.36,1) 1s both;
}

@keyframes hintIn {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.hero__pill {
    border: none;
    cursor: pointer;
    padding: 11px 22px;
    border-radius: var(--radius-lg);
    background: var(--pill-bg);
    color: #2b2b2b;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.26s ease-out;
}

.hero__pill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
    );
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.28s ease-out;
    pointer-events: none;
}

.hero__pill:hover {
    transform: translateY(-2px) scale(1.01);
    background: #e0e0e6;
    box-shadow: var(--shadow-soft);
}

.hero__pill:hover::before {
    transform: translateX(120%);
    opacity: 1;
}

.hero__pill:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero__pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(74, 124, 255, 0.35);
}

.hero__arrow {
    font-size: 22px;
    line-height: 1;
    color: #1c1c1c;
    opacity: 0.9;
    animation: arrowBounce 1.3s ease-in-out 1.1s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    70% { transform: translateY(-2px); }
}

/* ВТОРОЙ ЭКРАН-ЗАГЛУШКА */

.next-section {
    min-height: 100vh;
    padding: 64px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    text-align: center;
}
