/* ══════════════════════════════════════════════════
   Call Centers — Page Styles
   ══════════════════════════════════════════════════ */

/* ── Hero Layout ────────────────────────────────── */
.cc-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.cc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 107, 43, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: 0;
    animation: ccDotShift 24s linear infinite;
}

.cc-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -180px;
    width: 800px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 107, 43, 0.07) 0%, rgba(255, 149, 0, 0.03) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: ccGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes ccDotShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(32px, 32px); }
}

@keyframes ccGlowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

.cc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cc-hero-text {
    animation: ccFadeSlideUp 0.8s ease-out both;
}

.cc-hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 107, 43, 0.08);
    color: #ff6b2b;
    margin-bottom: 24px;
}

.cc-hero-text .headline-hero {
    margin-bottom: 20px;
}

.cc-hero-text .subhead {
    margin-bottom: 36px;
    max-width: 480px;
}

.cc-hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.cc-hero-trust-dots {
    display: flex;
    gap: 4px;
}

.cc-hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b2b;
}

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

/* ── Phone Mockup ───────────────────────────────── */
.cc-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: ccFadeSlideUp 0.8s 0.3s ease-out both;
}

.cc-phone {
    position: relative;
    width: 290px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: ccPhoneFloat 6s ease-in-out infinite;
    z-index: 2;
}

.cc-phone::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(255, 107, 43, 0.12), transparent 70%);
    filter: blur(16px);
    z-index: -1;
}

@keyframes ccPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cc-screen {
    background: var(--bg-section);
    border-radius: 34px;
    overflow: hidden;
}

.cc-screen-header {
    padding: 12px 16px 10px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cc-screen-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b2b, #ff9500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.cc-screen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cc-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
}

.cc-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cc-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.cc-msg-user {
    align-self: flex-end;
    background: #ff6b2b;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.cc-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.cc-typing.visible { opacity: 1; }

.cc-typing-dot {
    width: 7px;
    height: 7px;
    background: #86868b;
    border-radius: 50%;
    animation: ccTypingBounce 1.4s infinite;
}

.cc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.cc-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes ccTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.cc-screen-input {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-screen-input-field {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cc-screen-input-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-screen-input-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ── Notification Badge ──────────────────────────── */
.cc-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.cc-notif.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cc-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* ── Floating Badges ────────────────────────────── */
.cc-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3;
}

.cc-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.cc-badge-1 {
    top: 8%;
    right: -60px;
    animation: ccBadgeFloat1 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.cc-badge-2 {
    bottom: 38%;
    left: -70px;
    animation: ccBadgeFloat2 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.cc-badge-3 {
    bottom: 10%;
    right: -50px;
    animation: ccBadgeFloat3 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.cc-badge.visible { animation-play-state: running; }

.cc-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-badge-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes ccBadgeFloat1 { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes ccBadgeFloat2 { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes ccBadgeFloat3 { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

/* ── Section Spacing ───────────────────────────── */
.cc-process,
.cc-benefits,
.cc-volume,
.cc-related { padding: 100px 0; }

/* ── Process Steps ──────────────────────────────── */
.cc-process { text-align: center; }
.cc-process .headline-section { margin-bottom: 12px; }
.cc-process .subhead { margin: 0 auto 56px; max-width: 520px; }

.cc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.cc-step {
    text-align: center;
    padding: 0 16px;
}

.cc-step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 107, 43, 0.08);
    color: #ff6b2b;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cc-step:hover .cc-step-num {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 43, 0.15);
}

.cc-step .headline-card {
    margin-bottom: 10px;
    font-size: 20px;
}

.cc-step .body-text {
    font-size: 15px;
}

/* ── Benefits Bento Grid ── */
.cc-benefits { text-align: center; }
.cc-benefits .headline-section { margin-bottom: 12px; }
.cc-benefits .subhead { margin: 0 auto 56px; max-width: 540px; }

.cc-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.cc-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
.cc-bento-grid .bento-card:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.cc-bento-grid .bento-card:nth-child(6) { grid-column: 2 / 4; }

.cc-bento-grid .bento-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cc-bento-grid .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.cc-bento-grid .bento-card-graphic svg {
    transition: transform 0.4s ease;
}

.cc-bento-grid .bento-card:hover .bento-card-graphic svg {
    transform: scale(1.05);
}

/* Pulse animation for accent elements */
@keyframes ccIconPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.cc-bento-grid .bento-card-graphic .pulse-ring {
    animation: ccIconPulse 3s ease-in-out infinite;
}

/* Floating animation for integration icons */
@keyframes ccIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.cc-bento-grid .bento-app-icon:nth-child(1) { animation: ccIconFloat 3s ease-in-out infinite; }
.cc-bento-grid .bento-app-icon:nth-child(2) { animation: ccIconFloat 3s 0.3s ease-in-out infinite; }
.cc-bento-grid .bento-app-icon:nth-child(3) { animation: ccIconFloat 3s 0.6s ease-in-out infinite; }
.cc-bento-grid .bento-app-icon:nth-child(4) { animation: ccIconFloat 3s 0.9s ease-in-out infinite; }

/* ── Live Queue Visualization Section ──────────── */
.cc-volume {
    text-align: center;
    background: var(--bg-card);
}

.cc-volume .headline-section { margin-bottom: 12px; }
.cc-volume .subhead { margin: 0 auto 56px; max-width: 540px; }

.cc-queue-visual {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-section);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.cc-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.cc-queue-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-queue-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b2b;
    animation: ccLivePulse 2s ease-in-out infinite;
}

@keyframes ccLivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 107, 43, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 107, 43, 0); }
}

.cc-queue-stats {
    display: flex;
    gap: 20px;
}

.cc-queue-stat {
    text-align: right;
}

.cc-queue-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cc-queue-stat-value.accent { color: #ff6b2b; }

.cc-queue-stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.cc-queue-body {
    padding: 20px 24px;
}

.cc-queue-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cc-channel {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cc-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cc-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-channel-icon svg {
    width: 20px;
    height: 20px;
}

.cc-channel-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cc-channel-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cc-channel-label {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Animated progress bars */
.cc-queue-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-progress-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.cc-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.cc-progress-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cc-progress-fill.orange { background: linear-gradient(90deg, #ff6b2b, #ff9500); }
.cc-progress-fill.blue { background: linear-gradient(90deg, #0071e3, #2997ff); }
.cc-progress-fill.green { background: linear-gradient(90deg, #1db954, #30d158); }
.cc-progress-fill.purple { background: linear-gradient(90deg, #784bfa, #af52de); }

.cc-progress-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    width: 40px;
    flex-shrink: 0;
}

/* ── Stats Banner Override ── */
.cc-benefits + .stats {
    background: var(--bg-card);
}

/* ── Related Industries ── */
.cc-related { text-align: center; }
.cc-related .headline-section { margin-bottom: 12px; }
.cc-related .subhead { margin: 0 auto 48px; max-width: 480px; }

.cc-related .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cc-related .feature-card .ind-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #ff6b2b;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.cc-related .feature-card:hover .ind-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cc-related .ind-icon-graphic {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-related .ind-icon-graphic-orange { background: rgba(255, 107, 43, 0.04); }
.cc-related .ind-icon-graphic-blue   { background: rgba(0, 113, 227, 0.04); }
.cc-related .ind-icon-graphic-green  { background: rgba(29, 185, 84, 0.04); }

.cc-related .feature-card:hover .ind-icon-graphic {
    transform: translateY(-4px);
}

.cc-related .ind-icon-graphic svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-related .feature-card:hover .ind-icon-graphic svg {
    transform: scale(1.08);
}

/* ── Device Morph Dashboard Section ───────────── */
.cc-device-morph {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
}

.cc-device-morph-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-device-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 56vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.cc-device-frame .app-demo-titlebar {
    flex-shrink: 0;
}

.cc-device-frame .app-demo-body {
    flex: 1;
    height: auto;
}

.cc-device-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 110;
}

.cc-device-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 111;
    opacity: 0;
    transform: translateY(24px);
}

.cc-device-content .headline-section {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cc-device-content .subhead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
    .cc-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .cc-hero-text .subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cc-hero-text .hero-actions {
        justify-content: center;
    }

    .cc-hero-trust {
        justify-content: center;
    }

    .cc-badge { display: none; }

    .cc-phone { width: 260px; }

    .cc-device-frame {
        width: 90%;
    }

    .cc-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .cc-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
    .cc-bento-grid .bento-card:nth-child(2) { grid-column: 1; grid-row: auto; }
    .cc-bento-grid .bento-card:nth-child(6) { grid-column: 1 / 3; }

    .cc-queue-channels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cc-hero { padding: 140px 0 60px; }

    .cc-process,
    .cc-benefits,
    .cc-volume,
    .cc-related { padding: 80px 0; }

    .cc-phone { width: 240px; border-radius: 36px; padding: 10px; }
    .cc-screen { border-radius: 28px; }
    .cc-chat { min-height: 220px; padding: 12px 10px; }
    .cc-msg { font-size: 12px; }

    .cc-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .cc-device-morph { height: 250vh; }
    .cc-device-frame {
        width: 94%;
        height: 40vh;
    }
    .cc-device-frame .app-demo-sidebar { display: none; }
    .cc-device-frame .app-demo-body { grid-template-columns: 1fr; }
    .cc-device-content { padding: 24px; }
    .cc-device-content .headline-section { font-size: 28px; }
    .cc-device-content .subhead { font-size: 16px; }

    .cc-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .cc-bento-grid .bento-card:nth-child(1),
    .cc-bento-grid .bento-card:nth-child(2),
    .cc-bento-grid .bento-card:nth-child(6) { grid-column: 1; grid-row: auto; }

    .cc-queue-channels {
        grid-template-columns: 1fr;
    }

    .cc-queue-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .cc-progress-label {
        width: 70px;
        font-size: 11px;
    }
}
