/* Gauss AI - Landing Page v2.0
   Hero, features, pricing, phone mockup, stats bar, how-it-works, CTA */

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
}

.hero__grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--space-8);
    align-items: center;
}

.hero__content {
    max-width: 540px;
}

.hero__content h1 {
    margin-bottom: var(--space-3);
}

.hero__content h1 .accent {
    background: var(--gauss-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.hero__note {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    opacity: 0.6;
}

/* Phone mockup */
.phone-wrapper {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 320px;
    background: #1a1a2e;
    border-radius: 44px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.08),
        0 40px 80px -15px rgba(0,0,0,0.18),
        var(--shadow-glow-blue);
    animation: phone-float 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    border-radius: 34px;
    overflow: hidden;
    background: var(--whatsapp-bg);
}

.chat-header-mock {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    padding: 2.5rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--gauss-gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    color: #fff;
}

.chat-name { font-weight: 600; font-size: var(--text-sm); }
.chat-status { font-size: var(--text-xs); opacity: 0.8; }

.chat-messages {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 340px;
}

.msg {
    max-width: 82%;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0;
    animation: msg-appear 0.5s ease-out forwards;
}

.msg:nth-child(1) { animation-delay: 0.6s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 1.8s; }
.msg:nth-child(4) { animation-delay: 2.3s; }
.msg:nth-child(5) { animation-delay: 3s; }
.msg:nth-child(6) { animation-delay: 3.5s; }
.msg:nth-child(7) { animation-delay: 4.2s; }

.msg-sent {
    background: var(--chat-sent);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.msg-recv {
    background: var(--chat-received);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.msg-time {
    font-size: 0.6rem;
    color: rgba(0,0,0,0.35);
    text-align: right;
    margin-top: 2px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 3px;
    align-self: flex-start;
    background: var(--chat-received);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    opacity: 0;
    animation: msg-appear 0.5s ease-out forwards;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* === Stats Bar === */
.stats-bar {
    background: var(--gauss-ink-900);
    color: var(--gauss-white);
    padding: var(--space-6) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

/* === How It Works === */
.how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
}

.how-it-works__grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__number {
    width: 80px;
    height: 80px;
    background: var(--gauss-gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gauss-white);
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    max-width: 250px;
    margin: 0 auto;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

/* === Pricing Grid === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    max-width: 1000px;
    margin: 0 auto;
}

/* === Final CTA === */
.final-cta {
    padding: var(--space-16) 0;
    text-align: center;
    background: var(--gauss-gradient-dark);
    color: var(--gauss-white);
}

.final-cta h2 {
    margin-bottom: var(--space-2);
}

.final-cta p {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-body-lg);
    margin-bottom: var(--space-6);
}

.final-cta .trust-item {
    color: rgba(255,255,255,0.6);
}

/* === Responsive === */
@media (max-width: 968px) {
    .hero {
        padding-top: calc(var(--header-height) + var(--space-4));
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero__content {
        text-align: center;
        max-width: 100%;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__note {
        text-align: center;
    }

    .phone-wrapper {
        order: -1;
    }

    .phone-frame {
        width: 280px;
        animation: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .how-it-works__grid::before {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        gap: var(--space-2);
    }

    .stat-number {
        font-size: 1.75rem;
    }
}
