/* ─── Breadcrumb ─────────────────────────────────────── */

/* ─── Hero Banner ────────────────────────────────────── */
.ai-hero-section {
    background: linear-gradient(135deg, #0a3d8f 0%, #0056b3 55%, #086ad8 100%);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.ai-hero-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.ai-hero-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ai-hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.ai-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 18px;
}

.ai-hero-title span {
    color: #7dd3fc;
}

.ai-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 520px;
}

.ai-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
}

.ai-hero-stats .stat-item .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.ai-hero-stats .stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px;
    color: #ffffff;
}

.hero-visual-card .card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.hero-visual-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.hero-visual-card .card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-feature-list li:last-child {
    border-bottom: none;
}

.hero-feature-list li i {
    color: #4ade80;
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .ai-hero-title {
        font-size: 28px;
    }

    .ai-hero-stats {
        gap: 24px;
    }

    .hero-visual-card {
        margin-top: 32px;
    }
}

/* ─── Agent Demo Section ─────────────────────────────── */
.agent-demo-section {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #0056b3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-heading {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-heading span {
    color: #0056b3;
}

.section-subtext {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    max-width: 480px;
}

.agent-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.agent-feat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}

.agent-feat-card:hover {
    border-color: #0056b3;
    box-shadow: 0 4px 16px rgba(0, 86, 179, 0.1);
}

.agent-feat-card .feat-icon {
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0056b3;
    margin-bottom: 10px;
}

.agent-feat-card .feat-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.agent-feat-card .feat-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 575px) {
    .agent-feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 24px;
    }
}

/* ─── Start Call Hint Card ────────────────────────────── */
.start-call-hint {
    background: linear-gradient(145deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 24px;
    padding: 44px 40px;
    text-align: center;
    width: 100%;
}

.hint-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-icon-wrap .fas {
    font-size: 28px;
    color: #0056b3;
    position: relative;
    z-index: 2;
}

.hint-arrow-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 86, 179, 0.2);
    animation: ring-pulse 2.4s ease-out infinite;
}

.hint-arrow-ring:nth-child(2) {
    animation-delay: 1.2s;
}

@keyframes ring-pulse {
    0% {
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.hint-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.hint-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hint-arrow-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0056b3;
    color: #ffffff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
}

.hint-arrow-indicator i {
    font-size: 12px;
    animation: bounce-down 1.4s ease-in-out infinite;
}

.hint-arrow-indicator i:last-of-type {
    animation-delay: 0.3s;
}

@keyframes bounce-down {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.buttons-contect-details {
    margin-top: 20px;
}

.contact-button .btn {
    display: inline-block;
    padding: 14px 20px;
    background-color: #0056b3;
    /* Update to match your theme */
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

.contact-button .btn:hover {
    background-color: #007bff;
    /* Darker hover effect */
    color: #fff;
    padding: 0px 20px;
}

.contact-button:hover .button-text-initial {
    opacity: 0;

    transform: translateY(-100%);
}

.contact-button:hover .button-text-hover {
    padding-top: 13px;
    opacity: 1;
    transform: translateY(0%);
}

.buttons-contect-details .tm-button {
    margin: 5px 8px;
    /* space between buttons */
}

/* ─── Voice Agent Card ──────────────────────────────── */
.voice-agent-card {
    background: linear-gradient(150deg, #071e4a 0%, #0a3d8f 50%, #0e4fad 100%);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10, 61, 143, 0.45);
}
.voice-agent-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.voice-agent-card::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
/* States */
.va-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: va-fadein 0.35s ease forwards;
}
.va-state.is-active {
    display: flex;
}
@keyframes va-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ── Idle ── */
.va-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.va-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    animation: va-ring 2.6s ease-out infinite;
}
.va-orb-ring:nth-child(2) {
    animation-delay: 0.87s;
}
.va-orb-ring:nth-child(3) {
    animation-delay: 1.73s;
}
@keyframes va-ring {
    0% {
        transform: scale(0.75);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
.va-orb-core {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
}
.va-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.va-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    margin-bottom: 26px;
    max-width: 270px;
}
.va-btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0a3d8f;
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.va-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    background: #eff6ff;
}
.va-btn-start:active {
    transform: translateY(0);
}
.va-mic-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
    max-width: 270px;
    text-align: left;
    line-height: 1.5;
}
.va-mic-tip i {
    flex-shrink: 0;
    color: #7dd3fc;
    margin-top: 2px;
}
/* ── Connecting / Permission ── */
.va-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
    animation: va-spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes va-spin {
    to {
        transform: rotate(360deg);
    }
}
.va-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    margin: 0 3px;
    animation: va-dot 1.4s ease-in-out infinite;
}
.va-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.va-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes va-dot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}
.va-lbl {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 14px;
}
.va-sublbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
    margin-top: 6px;
}
/* ── Active State ── */
.va-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
}
.va-avatar-bg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    position: relative;
    z-index: 2;
    transition:
        background 0.3s,
        border-color 0.3s,
        color 0.3s;
}
.va-avatar.mode-speaking .va-avatar-bg {
    background: rgba(74, 222, 128, 0.18);
    border-color: #4ade80;
    color: #4ade80;
}
.va-avatar.mode-listening .va-avatar-bg {
    background: rgba(125, 211, 252, 0.15);
    border-color: #7dd3fc;
    color: #7dd3fc;
}
.va-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}
.va-avatar.mode-speaking .va-pulse-ring {
    border-color: rgba(74, 222, 128, 0.4);
    animation: va-pulse 1.3s ease-in-out infinite;
}
.va-avatar.mode-listening .va-pulse-ring {
    border-color: rgba(125, 211, 252, 0.35);
    animation: va-pulse 1.9s ease-in-out infinite;
}
@keyframes va-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.16);
        opacity: 1;
    }
}
.va-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
}
.va-badge.mode-speaking {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}
.va-badge.mode-listening {
    background: rgba(125, 211, 252, 0.15);
    border-color: rgba(125, 211, 252, 0.35);
    color: #7dd3fc;
}
.va-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: va-blink 1s ease-in-out infinite;
}
@keyframes va-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}
/* Waveform bars */
.va-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 36px;
    margin-bottom: 12px;
}
.va-bar {
    width: 4px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    transition:
        height 0.08s ease,
        background 0.3s;
}
.va-waveform.speaking .va-bar {
    background: rgba(74, 222, 128, 0.75);
}
.va-waveform.listening .va-bar {
    background: rgba(125, 211, 252, 0.75);
}
/* CSS-animation fallback when volume API is unavailable */
.va-waveform.css-anim .va-bar {
    animation: va-wave 1.2s ease-in-out infinite;
    transition: none;
}
.va-waveform.css-anim .va-bar:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 0.8s;
}
.va-waveform.css-anim .va-bar:nth-child(2) {
    animation-delay: 0.1s;
    animation-duration: 0.65s;
}
.va-waveform.css-anim .va-bar:nth-child(3) {
    animation-delay: 0.2s;
    animation-duration: 0.9s;
}
.va-waveform.css-anim .va-bar:nth-child(4) {
    animation-delay: 0.3s;
    animation-duration: 0.7s;
}
.va-waveform.css-anim .va-bar:nth-child(5) {
    animation-delay: 0.05s;
    animation-duration: 1s;
}
.va-waveform.css-anim .va-bar:nth-child(6) {
    animation-delay: 0.22s;
    animation-duration: 0.78s;
}
.va-waveform.css-anim .va-bar:nth-child(7) {
    animation-delay: 0.15s;
    animation-duration: 0.85s;
}
.va-waveform.css-anim .va-bar:nth-child(8) {
    animation-delay: 0.35s;
    animation-duration: 0.68s;
}
.va-waveform.css-anim .va-bar:nth-child(9) {
    animation-delay: 0.18s;
    animation-duration: 0.95s;
}
.va-waveform.css-anim .va-bar:nth-child(10) {
    animation-delay: 0.28s;
    animation-duration: 0.72s;
}
.va-waveform.css-anim .va-bar:nth-child(11) {
    animation-delay: 0.08s;
    animation-duration: 0.88s;
}
@keyframes va-wave {
    0%,
    100% {
        height: 4px;
    }
    50% {
        height: 26px;
    }
}
/* Transcript */
.va-transcript {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
    max-height: 110px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.65;
    text-align: left;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.va-transcript::-webkit-scrollbar {
    width: 3px;
}
.va-transcript::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
}
.va-transcript:empty::before {
    content: "Conversation transcript will appear here…";
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}
.va-msg {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
    align-items: flex-start;
}
.va-msg:last-child {
    margin-bottom: 0;
}
.va-msg-who {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    padding-top: 1px;
}
.va-msg.from-agent .va-msg-who {
    color: #4ade80;
}
.va-msg.from-user .va-msg-who {
    color: #7dd3fc;
}
.va-msg-text {
    color: rgba(255, 255, 255, 0.84);
}
/* Active controls */
.va-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.va-btn-end {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.va-btn-end:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
    transform: translateY(-1px);
}
.va-timer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    font-variant-numeric: tabular-nums;
}
/* ── Ended / Error ── */
.va-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}
.va-icon-circle.success {
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}
.va-icon-circle.danger {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.va-error-msg {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 260px;
}
.va-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
}
.va-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
