/* ─── Feature Showcase (Accordion Tabs) ─── */
.features {
    background: var(--bg-dark);
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: center;
}

.feature-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-tab {
    position: relative;
    padding: 1.5rem;
    border-left: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.feature-tab::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--green-light);
    transition: height 3s linear;
}

.feature-tab.active::before {
    height: 100%;
}

.feature-tab.active {
    border-left-color: transparent;
}

.feature-tab h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.feature-tab.active h3 {
    color: var(--green-light);
}

.feature-tab p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s;
    opacity: 0;
}

.feature-tab.active p {
    max-height: 200px;
    opacity: 1;
}

.feature-preview {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
}

.feature-preview-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
    padding: 2rem;
    pointer-events: none;
}

.feature-preview-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Animated Phone Mockups ─── */
.phone-mockup {
    width: 280px;
    background: #1a1f2e;
    border-radius: 28px;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-screen {
    background: #0f1219;
    border-radius: 20px;
    padding: 1.25rem;
    min-height: 320px;
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.phone-notch {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.call-ui {
    text-align: center;
}

.call-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--bg-dark);
}

.call-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.call-status-text {
    font-size: 0.8rem;
    color: var(--green-light);
    margin-bottom: 1.5rem;
}

/* Wave animation in phone */
.call-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.call-wave-bar {
    width: 3px;
    background: var(--green-light);
    border-radius: 2px;
}

.call-wave-bar:nth-child(1) { animation-delay: 0s; }
.call-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.call-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.call-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.call-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.call-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.call-wave-bar:nth-child(7) { animation-delay: 0.6s; }
.call-wave-bar:nth-child(8) { animation-delay: 0.7s; }
.call-wave-bar:nth-child(9) { animation-delay: 0.6s; }
.call-wave-bar:nth-child(10) { animation-delay: 0.5s; }
.call-wave-bar:nth-child(11) { animation-delay: 0.4s; }
.call-wave-bar:nth-child(12) { animation-delay: 0.3s; }
.call-wave-bar:nth-child(13) { animation-delay: 0.2s; }

.call-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.call-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.call-btn-mute { background: rgba(255,255,255,0.1); color: white; }
.call-btn-end { background: #ef4444; color: white; }
.call-btn-speaker { background: rgba(255,255,255,0.1); color: white; }

/* ─── Play button (Tab 0 audio demo) ─── */
.call-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(91, 184, 241, 0.3);
    position: relative;
}

.call-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(91, 184, 241, 0.5);
}

.call-play-btn .play-icon,
.call-play-btn .pause-icon {
    color: var(--bg-dark);
    position: absolute;
    transition: opacity 0.2s;
}

.call-play-btn .pause-icon {
    opacity: 0;
}

.call-play-btn.playing .play-icon {
    opacity: 0;
}

.call-play-btn.playing .pause-icon {
    opacity: 1;
}

/* Wave bars: paused by default, animate when playing */
.call-wave-bar {
    height: 4px;
    transition: height 0.3s;
}

.call-waves.playing .call-wave-bar {
    animation: waveBar 1.2s ease-in-out infinite;
}

/* ─── Chat mockup ─── */
.chat-mockup {
    width: 100%;
    max-width: 360px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
}

.chat-msg.visible {
    animation: msgAppear 0.4s forwards;
}

.chat-msg-ai {
    background: rgba(91, 184, 241, 0.1);
    border: 1px solid rgba(91, 184, 241, 0.15);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg-user {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ─── Flow mockup ─── */
.flow-mockup {
    width: 100%;
    max-width: 400px;
}

.flow-node {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s;
}

.flow-node.visible {
    opacity: 1;
    transform: translateX(0);
}

.flow-node.active {
    border-color: var(--green-light);
    background: rgba(91, 184, 241, 0.05);
}

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

.flow-icon-green { background: rgba(91, 184, 241, 0.15); color: var(--green-light); }
.flow-icon-blue { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.flow-icon-yellow { background: rgba(251, 191, 36, 0.15); color: #FCD34D; }
.flow-icon-pink { background: rgba(244, 114, 182, 0.15); color: #F472B6; }

.flow-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.flow-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flow-connector {
    width: 2px;
    height: 16px;
    background: var(--border);
    margin-left: 2.25rem;
}

.flow-connector.active {
    background: var(--green-light);
    box-shadow: 0 0 8px rgba(91, 184, 241, 0.3);
}

/* ─── Booking UI (Tab 1 phone mockup) ─── */
.booking-ui {
    text-align: center;
}

.booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.booking-month {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-nav-arrow {
    color: var(--text-muted);
}

.booking-week-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.35rem;
}

.booking-week-labels span {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.booking-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
}

.booking-day {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 auto;
}

.booking-day-selected {
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(91, 184, 241, 0.4);
    animation: gentleFloat 3s ease-in-out infinite;
}

.booking-day-dim {
    color: var(--text-muted);
    opacity: 0.4;
}

.booking-slots-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.booking-slots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.booking-slot {
    flex: 1;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.booking-slot-selected {
    border-color: var(--green-light);
    background: rgba(91, 184, 241, 0.1);
    color: var(--green-light);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(91, 184, 241, 0.15);
}

.booking-confirm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(91, 184, 241, 0.06);
    border: 1px solid rgba(91, 184, 241, 0.15);
}

.booking-confirm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg-dark);
    animation: pulseBooking 2s ease-in-out infinite;
}

.booking-confirm-text {
    text-align: left;
}

.booking-confirm-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-light);
}

.booking-confirm-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ─── Dashboard Mockup (Tab 2 - FAQs & Order Taking) ─── */
.dash-mockup {
    width: 100%;
    max-width: 380px;
    background: #1a1f2e;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dash-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-dots {
    display: flex;
    gap: 5px;
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dash-dot-red { background: #ef4444; }
.dash-dot-yellow { background: #f59e0b; }
.dash-dot-green { background: #22c55e; }

.dash-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-question {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.dash-question-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #818CF8;
}

.dash-question-label {
    font-size: 0.6rem;
    color: #818CF8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.dash-question-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
}

.dash-processing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.dash-processing-dots {
    display: flex;
    gap: 3px;
}

.dash-processing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-light);
    animation: typing 1.4s ease-in-out infinite;
}

.dash-processing-dots span:nth-child(2) { animation-delay: 0.2s; }
.dash-processing-dots span:nth-child(3) { animation-delay: 0.4s; }

.dash-processing-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-answer {
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(91, 184, 241, 0.06);
    border: 1px solid rgba(91, 184, 241, 0.15);
}

.dash-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dash-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green-light);
    background: rgba(91, 184, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.dash-confidence {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-answer-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.dash-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dash-action-card {
    padding: 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-align: center;
}

.dash-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.35rem;
}

.dash-action-icon-blue {
    background: rgba(91, 184, 241, 0.12);
    color: var(--green-light);
}

.dash-action-icon-purple {
    background: rgba(244, 114, 182, 0.12);
    color: #F472B6;
}

.dash-action-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.dash-action-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ─── Channels Section ─── */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
}

.channel-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.channel-card:hover {
    border-color: rgba(91, 184, 241, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.channel-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(91, 184, 241, 0.15), rgba(91, 184, 241, 0.05));
    color: var(--green-light);
}

.channel-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.channel-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Capabilities Grid ─── */
.capabilities {
    background: var(--bg-dark);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(20px);
}

.cap-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cap-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(91, 184, 241, 0.12);
    transform: translateY(-2px);
}

.cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cap-icon-1 { background: linear-gradient(135deg, rgba(91, 184, 241, 0.15), rgba(91, 184, 241, 0.05)); color: var(--green-light); }
.cap-icon-2 { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05)); color: #818CF8; }
.cap-icon-3 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)); color: #FCD34D; }
.cap-icon-4 { background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(244, 114, 182, 0.05)); color: #F472B6; }

.cap-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cap-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
