/* ══════════════════════════════════════════════
   ClinicLife — Landing Page Styles
   Specific to index.html: hero, about, features,
   AI/automation, benefits, CTA sections.
   ══════════════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #063B33 0%, var(--primary) 40%, var(--primary-light) 100%);
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-badge i {
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #6EE7A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-value-non-numeric {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.hero-stat-icon {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-right: 4px;
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-card-stack {
    position: relative;
    height: 420px;
}

.about-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.about-card-1 {
    top: 0;
    left: 0;
    width: 280px;
    z-index: 3;
}

.about-card-2 {
    top: 60px;
    right: 0;
    width: 260px;
    z-index: 2;
}

.about-card-3 {
    bottom: 0;
    left: 30px;
    width: 300px;
    z-index: 1;
}

.about-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-card-icon.green {
    background: rgba(37, 211, 102, 0.12);
    color: var(--accent);
}

.about-card-icon.teal {
    background: rgba(12, 110, 95, 0.1);
    color: var(--primary);
}

.about-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.about-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-content > p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.about-checklist {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.about-checklist li i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Features Section ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.3rem;
    background: var(--bg-alt);
    color: var(--primary);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── AI / Automation Section ── */
.ai-section {
    background: linear-gradient(160deg, #063B33 0%, var(--primary) 40%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.ai-section .hero-grid-bg {
    opacity: 0.5;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ai-content .section-label {
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent);
}

.ai-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.ai-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.ai-features {
    display: grid;
    gap: 1rem;
}

.ai-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ai-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
}

.ai-feature h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.ai-feature p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ai-visual {
    display: flex;
    justify-content: center;
}

.ai-phone {
    width: 300px;
    background: var(--white);
    border-radius: 32px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.ai-phone-notch {
    width: 120px;
    height: 28px;
    background: var(--text);
    border-radius: 0 0 16px 16px;
    margin: -16px auto 12px;
}

.ai-phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary);
    border-radius: 14px 14px 0 0;
    color: var(--white);
}

.ai-phone-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.ai-phone-header-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
}

.ai-phone-header-info span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.ai-phone-chat {
    background: #ECE5DD;
    padding: 16px 10px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 0 0 14px 14px;
}

.chat-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    position: relative;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.chat-bubble.received {
    background: var(--white);
    align-self: flex-start;
    border-top-left-radius: 3px;
}

.chat-bubble.sent {
    background: #DCF8C6;
    align-self: flex-end;
    border-top-right-radius: 3px;
}

.chat-bubble .time {
    font-size: 0.62rem;
    color: #999;
    text-align: right;
    margin-top: 3px;
}

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

.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.4s; }
.chat-bubble:nth-child(4) { animation-delay: 2.0s; }
.chat-bubble:nth-child(5) { animation-delay: 2.6s; }

/* ── Benefits Section ── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(12, 110, 95, 0.08), rgba(37, 211, 102, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0 auto 1.2rem;
}

.benefit-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.benefit-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── CTA Section ── */
.cta-section {
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(160deg, #063B33 0%, var(--primary) 40%, var(--primary-light) 100%);
    border-radius: 28px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
}

.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
}

.cta-inner .btn-whatsapp {
    font-size: 1.1rem;
    padding: 18px 40px;
    position: relative;
}

/* ── Responsive — Landing Page ── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ai-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .about-card-stack {
        height: 360px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-card-stack {
        height: 340px;
    }

    .about-card-1 { width: 240px; }
    .about-card-2 { width: 220px; right: 0; }
    .about-card-3 { width: 260px; }

    .ai-phone {
        width: 260px;
    }

    .cta-inner {
        padding: 3rem 1.5rem;
    }
}

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-card-stack {
        height: auto;
        position: static;
        display: grid;
        gap: 1rem;
    }

    .about-card {
        position: static !important;
        width: 100% !important;
    }
}
