/* ═══════════════════════════════════════════════════════════
   mia/assets/css/mia.css — Custom styles for Mia landing
   Bootstrap 5 local — zero CDN dependencies
   ═══════════════════════════════════════════════════════════ */

/* ── Hero gradient ──────────────────────────────────────── */
.mia-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}
.mia-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── WhatsApp-green accent ──────────────────────────────── */
.text-whatsapp { color: #25d366; }
.bg-whatsapp   { background-color: #25d366; }

/* ── Chat demo bubbles ──────────────────────────────────── */
.chat-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease;
    word-wrap: break-word;
}
.chat-bubble.bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-bubble.user {
    background: #dcf8c6;
    color: #333;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}
.chat-bubble .time {
    font-size: 0.65rem;
    color: #999;
    text-align: right;
    margin-top: 2px;
}

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

/* ── Phone mockup ───────────────────────────────────────── */
.mia-phone-wrap {
    position: relative;
    padding-bottom: 30px;
}
/* — Outer device shell — */
.mia-device {
    width: 300px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 14px 7px 18px;
    box-shadow:
        0 0 0 2px #3c3c3e,
        0 0 0 5px #1a1a1a,
        0 30px 80px rgba(0,0,0,0.65),
        inset 0 0 0 1px rgba(255,255,255,0.07);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Volume buttons (left) */
.mia-device-btn-vol {
    position: absolute;
    left: -4px;
    top: 88px;
    width: 4px;
    height: 30px;
    background: #3c3c3e;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 44px 0 #3c3c3e, 0 84px 0 #3c3c3e;
}
/* Power button (right) */
.mia-device-btn-power {
    position: absolute;
    right: -4px;
    top: 112px;
    width: 4px;
    height: 54px;
    background: #3c3c3e;
    border-radius: 0 3px 3px 0;
}
/* Dynamic Island */
.mia-device-island {
    width: 108px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 20px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mia-device-island::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #2a2a2a;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #111;
}
/* Screen area */
.mia-device-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #e5ddd5;
}
/* Status bar */
.mia-statusbar {
    background: #075e54;
    padding: 4px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .62rem;
    color: rgba(255,255,255,.9);
    letter-spacing: .02em;
}
/* Home indicator */
.mia-device-home {
    width: 110px;
    height: 4px;
    background: rgba(255,255,255,.22);
    border-radius: 3px;
    margin: 10px auto 2px;
}
.mia-phone-header {
    background: #075e54;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}
.mia-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #128c7e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mia-phone-body {
    background: #e5ddd5;
    padding: 10px 10px 4px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8b8a2' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mia-date-divider {
    text-align: center;
    font-size: .7rem;
    color: #888;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 2px 10px;
    margin: 4px auto 8px;
    width: fit-content;
}
.mia-msg {
    max-width: 82%;
    padding: 6px 9px 4px;
    border-radius: 7.5px;
    font-size: .78rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    margin-bottom: 3px;
    animation: fadeInUp .35s ease both;
}
.mia-msg--in {
    background: #fff;
    color: #111;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
.mia-msg--out {
    background: #dcf8c6;
    color: #111;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}
.mia-time {
    display: block;
    font-size: .62rem;
    color: #999;
    text-align: right;
    margin-top: 2px;
}
.mia-time--out { color: #7a9e7a; }
.mia-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #fff;
    width: 50px;
    padding: 10px 14px;
    border-radius: 7.5px;
    border-bottom-left-radius: 0;
    margin-top: 2px;
}
.mia-typing span {
    width: 7px;
    height: 7px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.mia-typing span:nth-child(2) { animation-delay: .2s; }
.mia-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-5px); }
}
.mia-phone-input {
    background: #f0f0f0;
    padding: 8px 10px;
}
.mia-input-bar {
    background: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* "Deal closed" floating badge */
.mia-deal-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    background: #fff;
    border: 2px solid #25d366;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #111;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    white-space: nowrap;
    animation: popIn .5s cubic-bezier(.34,1.56,.64,1) 1.5s both;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 991px) {
    .mia-device { width: 262px; }
    .mia-phone-body { min-height: 260px; }
}

/* ── Mobile landing optimization ───────────────────────── */
@media (max-width: 767.98px) {
    .mia-hero {
        padding-top: 1.25rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mia-hero h1,
    .mia-hero .display-4 {
        font-size: 1.95rem !important;
        line-height: 1.2;
    }

    .mia-hero .lead {
        font-size: 1rem;
        line-height: 1.45;
    }

    .mia-hero .d-flex.gap-3 {
        gap: .65rem !important;
    }

    .mia-hero .btn-lg {
        width: 100%;
        padding: .8rem 1rem;
        font-size: 1rem;
    }

    .mia-hero .badge {
        font-size: .78rem !important;
        padding: .5rem .7rem !important;
    }

    .mia-phone-wrap {
        margin-top: .5rem;
        padding-bottom: 38px;
    }

    .mia-device {
        width: min(92vw, 320px);
    }

    .mia-msg {
        font-size: .74rem;
    }

    .mia-deal-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -6px;
        font-size: .74rem;
        padding: 5px 11px;
    }
}

@media (max-width: 575.98px) {
    .mia-hero h1,
    .mia-hero .display-4 {
        font-size: 1.68rem !important;
    }

    .mia-phone-body {
        min-height: 236px;
    }
}

/* ── Smooth scroll ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Features page ─────────────────────────────────────── */
.mia-feat-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 60%, #1a1a2e 100%);
}
.mia-feat-visual {
    width: 100%;
    max-width: 420px;
}
.mia-feat-badge-green {
    display: inline-block;
    background: #e8faf0;
    color: #157347;
    border: 1px solid #a3d9b1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
}
/* Notification stack */
.mia-notif-stack { display: flex; flex-direction: column; gap: 10px; }
.mia-notif {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-left: 3px solid #25d366;
    animation: fadeInUp .4s ease both;
}
.mia-notif--1 { animation-delay: .05s; }
.mia-notif--2 { animation-delay: .15s; }
.mia-notif--3 { animation-delay: .25s; }
.mia-notif--4 { animation-delay: .35s; }
.mia-notif-icon {
    width: 36px; height: 36px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mia-notif-body { flex: 1; min-width: 0; }
.mia-notif-time { font-size: .7rem; color: #aaa; white-space: nowrap; }
/* Mini chat */
.mia-minichat {
    background: #e5ddd5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.mia-minichat-header {
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}
.mia-minichat-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.mia-minichat-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8b8a2' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Language bubbles */
.mia-lang-grid { display: flex; flex-direction: column; gap: 8px; }
.mia-lang-bubble {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .82rem;
    max-width: 88%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mia-lang-bubble--in { background: #fff; border-bottom-left-radius: 2px; }
.mia-lang-bubble--out { background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 2px; }
.mia-lang-label { font-size: .65rem; color: #999; margin-top: 3px; }
.mia-lang-label--out { text-align: right; color: #5a9a6a; }
/* Handoff diagram */
.mia-handoff {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mia-handoff-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.mia-handoff-step--active { border-color: #25d366; background: #f0faf5; }
.mia-handoff-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.mia-handoff-text { flex: 1; }
.mia-handoff-arrow {
    text-align: center;
    font-size: .78rem;
    padding: 6px 0;
}
/* Timeline */
.mia-timeline {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.mia-tl-step { display: flex; align-items: flex-start; gap: 14px; }
.mia-tl-dot {
    width: 32px; height: 32px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mia-tl-content { flex: 1; padding-top: 4px; }
.mia-tl-line {
    width: 2px; height: 24px;
    background: #dee2e6;
    margin-left: 15px;
}
/* Industry icons */
.mia-industry-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
}

/* ── Card hover lift ────────────────────────────────────── */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 576px) {
    .mia-hero h1 { font-size: 1.75rem; }
    .mia-hero .lead { font-size: 0.95rem; }
    .display-5 { font-size: 2rem; }
}
