* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 2;
    color: white;
    text-align: left;
}

.cta-row {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.phone-mockup {
    position: relative;
    /* background: #000; */
    /* border-radius: 30px; */
    /* padding: 15px; */
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); */
    max-width: 300px;
    width: 100%;
}

.avatar-badge {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* .phone-screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
} */

.chat-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.features-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 4rem;
    /* max-width: 600px; */
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.feature-mini {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: left;
    color: #333;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.feature-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-mini-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-mini-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s forwards, wiggle 3s ease-in-out 1.5s infinite;
    opacity: 0;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}
.avatar-inline {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: avatarPulse 2.2s ease-in-out infinite;
    will-change: box-shadow;
}

.cta-button:hover {
    background: linear-gradient(45deg, #ff5252, #d84315);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button.clicked {
    transform: scale(0.95);
    background: linear-gradient(45deg, #e53935, #c62828);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wiggle {
    0%, 30% {
        transform: rotate(0deg);
    }
    35% {
        transform: rotate(-3deg);
    }
    45% {
        transform: rotate(3deg);
    }
    55% {
        transform: rotate(-2deg);
    }
    65% {
        transform: rotate(2deg);
    }
    70%, 100% {
        transform: rotate(0deg);
    }
}

@keyframes avatarPulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(255, 255, 255, 0.0);
    }
    50% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 0 10px rgba(255, 255, 255, 0.14);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(255, 255, 255, 0.0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-inline {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero {
        padding: 1rem;
    }

    .phone-mockup {
        max-width: 250px;
    }

    .avatar-image {
        width: 96px;
        height: 96px;
    }

    .avatar-badge { display: none; }

    .avatar-inline {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .features-mini {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .feature-mini {
        padding: 1.5rem 1rem;
    }

    .feature-mini-title {
        font-size: 1rem;
    }

    .feature-mini-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-mini {
        grid-template-columns: 1fr;
    }
}
