/*
 * Prolius AI teaser hero — home page only.
 * Self-contained stylesheet, loaded independently of public/css/app.css
 * so it cannot affect any other section/page's styling.
 * All selectors are scoped under .pai-home-hero to avoid collisions.
 */
.pai-home-hero {
    --pai-navy: #06213a;
    --pai-navy-deep: #06213a;
    --pai-orange: #E8652E;
    --pai-orange-hover: #D14520;
    --pai-slate-lt: #A9B4C9;
    --pai-border: rgba(255, 255, 255, 0.12);
    --pai-green: #34C77B;

    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 160% at 8% 88%, rgba(232, 101, 46, 0.16) 0%, rgba(232, 101, 46, 0) 45%), linear-gradient(160deg, var(--pai-navy) 0%, var(--pai-navy-deep) 100%);
    padding: 88px 0 0;
    color: #fff;
}

.pai-home-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0px;
}

.pai-home-hero__content {
    flex: 1 1 460px;
    min-width: 280px;
    padding-bottom: 88px;
    padding-left: 100px;
}

.pai-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(232, 101, 46, 0.4);
    background: rgba(232, 101, 46, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F0916B;
    margin-bottom: 26px;
}

.pai-home-hero__title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    color: #fff;
}

.pai-home-hero__title-rotate {
    display: block;
    color: var(--pai-orange);
    min-width: 1px;
}

.pai-home-hero__title-rotate.is-swapping {
    animation: pai-home-hero-fade 0.4s ease;
}

@keyframes pai-home-hero-fade {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pai-home-hero__sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--pai-slate-lt);
    max-width: 480px;
    margin: 0 0 32px;
}

.pai-home-hero__list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pai-home-hero__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #DDE3EE;
}

.pai-home-hero__list-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 199, 123, 0.15);
    color: var(--pai-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.pai-home-hero__list strong {
    color: #fff;
    font-weight: 600;
}

.pai-home-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: var(--pai-orange);
    color: #fff;
    border: 1px solid var(--pai-orange);
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pai-home-hero__btn:hover {
    background: var(--pai-orange-hover);
    border-color: var(--pai-orange-hover);
    transform: translateY(-1px);
    color: #fff;
}

.pai-home-hero__visual {
    flex: 1 1 380px;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* ── chat mock card — ported from the Prolius AI page hero demo ── */
.pai-home-hero__chat-window {
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 360px;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.pai-home-hero__chat-topbar {
    background: #1B2A4A;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pai-home-hero__chat-logo-av {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pai-home-hero__chat-title-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pai-home-hero__chat-nm {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.pai-home-hero__chat-sb {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.pai-home-hero__chat-live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #5DD6C0;
}

.pai-home-hero__chat-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5DD6C0;
    animation: pai-home-hero-blink 1.5s infinite;
}

@keyframes pai-home-hero-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.pai-home-hero__chat-body {
    padding: 20px;
    background: #F4F7FB;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pai-home-hero__chat-body::-webkit-scrollbar {
    display: none;
}

.pai-home-hero__msg {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.pai-home-hero__msg--user {
    flex-direction: row-reverse;
}

.pai-home-hero__msg-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pai-home-hero__msg-av--ai {
    background: #EBF4FC;
    color: #2A7FBF;
    font-weight: 700;
}

.pai-home-hero__msg-av--usr {
    background: #FDF0EB;
    color: var(--pai-orange);
    font-weight: 700;
}

.pai-home-hero__bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 300px;
}

.pai-home-hero__bubble--ai {
    background: #fff;
    color: #1B2A4A;
    border: 1px solid #DDE4EE;
    border-bottom-left-radius: 4px;
}

.pai-home-hero__bubble--user {
    background: var(--pai-orange);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.pai-home-hero__insight-inline {
    background: #fff;
    border: 1px solid #DDE4EE;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pai-home-hero__ii-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pai-home-hero__ii-label {
    font-size: 11px;
    font-weight: 600;
    color: #7A93AD;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pai-home-hero__ii-value {
    font-size: 20px;
    font-weight: 700;
    color: #1B2A4A;
    letter-spacing: -0.5px;
    margin-top: 2px;
}

.pai-home-hero__ii-delta {
    font-size: 11px;
    font-weight: 600;
    color: #2A9D6F;
    margin-top: 1px;
}

.pai-home-hero__chat-input-bar {
    padding: 14px 18px;
    border-top: 1px solid #DDE4EE;
    display: flex;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}

.pai-home-hero__chat-input {
    flex: 1;
    background: #EEF2F7;
    border: none;
    outline: none;
    padding: 9px 14px;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #1B2A4A;
}

.pai-home-hero__chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pai-orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: end;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    transition: background 0.15s;
}

.pai-home-hero__chat-send-btn:hover {
    background: var(--pai-orange-hover);
}

.pai-home-hero__typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #DDE4EE;
    border-radius: 14px;
    width: fit-content;
}

.pai-home-hero__td {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7A93AD;
    animation: pai-home-hero-bounce 1.2s infinite;
}

.pai-home-hero__td:nth-child(2) {
    animation-delay: 0.2s;
}

.pai-home-hero__td:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pai-home-hero-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 991.98px) {
    .pai-home-hero__chat-window {
        align-self: center;
    }
}
  @media (max-width: 767.98px) {
    .pai-home-hero__content {
        padding-left: 0;
    }
  }

@media (max-width: 575.98px) {
    .pai-home-hero {
        padding: 56px 0;
        text-align: center;
    }

    .pai-home-hero__inner {
        justify-content: center;
    }

    .pai-home-hero__list li {
        text-align: left;
    }

    .pai-home-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .pai-home-hero__chat-window {
        width: 100%;
        max-width: 100%;
    }
    .pai-home-hero__bubble {
        text-align: left;
    }
    .pai-home-hero__insight-inline {
        text-align: left;
    }
   
}
