/* === Apple-Inspired Design System === */
:root {
    /* Premium Color Palette */
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --primary-light: #42a5f5;

    /* Refined Neutrals */
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(28, 28, 30, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1120px;

    /* Effects */
    --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(0, 113, 227, 0.15);
    --blur-heavy: blur(80px);
    --blur-light: blur(20px);

    /* Animation */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.6s;
}

/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Typography === */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
}

h2 {
    font-size: clamp(32px, 5vw, 56px);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(90deg, #2997ff 0%, #5ac8fa 50%, #64d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Navigation === */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.nav-cta {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border-light);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
    filter: var(--blur-heavy);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 80px 24px 100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 56px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 18px 32px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all var(--duration-fast) var(--ease-out);
}

.hero-cta:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Demo Toggle - iOS Segmented Control Style */
.hero-visual {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 20px;
    position: relative;
}

.demo-toggle {
    display: flex;
    margin-bottom: 20px;
    padding: 3px;
    background: rgba(120, 120, 128, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    position: relative;
}

/* Sliding indicator pill */
.demo-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: 8px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12),
        0 3px 1px rgba(0, 0, 0, 0.04),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

/* Slide to right when voice is active */
.demo-toggle.voice-active::after {
    transform: translateX(100%);
}

.demo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

.demo-btn svg {
    width: 15px;
    height: 15px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.demo-btn.active {
    color: #fff;
}

.demo-btn.active svg {
    opacity: 1;
}

/* Phone Carousel - Apple-style horizontal swipe */
.phone-carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 20px;
}

.phone-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.65s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.phone-track.voice-active {
    transform: translateX(-100%);
}

.phone-mockup {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 1;
    transform: scale(0.92);
    filter: blur(2px);
    transition:
        transform 0.65s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
    pointer-events: none;
}

.phone-mockup.active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

/* Slide direction hints */
.phone-track:not(.voice-active) .phone-mockup.demo-voice {
    transform: scale(0.88) translateX(8%);
}

.phone-track.voice-active .phone-mockup.demo-text {
    transform: scale(0.88) translateX(-8%);
}

/* Message bubble entrance animation - only plays when in view */
.chat-bubble {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.chat-messages.in-view .chat-bubble {
    animation: bubbleSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bubbleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered bubble animations - slower, more dramatic */
.chat-messages.in-view .chat-bubble:nth-child(1) {
    animation-delay: 0.2s;
}

.chat-messages.in-view .chat-bubble:nth-child(2) {
    animation-delay: 0.8s;
}

.chat-messages.in-view .chat-bubble:nth-child(3) {
    animation-delay: 1.4s;
}

.chat-messages.in-view .chat-bubble:nth-child(4) {
    animation-delay: 2.0s;
}

.chat-messages.in-view .chat-bubble:nth-child(5) {
    animation-delay: 2.6s;
}

/* AI typing indicator shimmer */
.chat-bubble.ai::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateX(-100%);
    border-radius: inherit;
}

.chat-bubble.ai.typing::after {
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Phone mockup base styles */
.phone-mockup {
    background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
    border-radius: 48px;
    padding: 14px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.6),
        0 30px 60px -30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.status-time {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.status-icons svg {
    height: 11px;
    width: auto;
}

.chat-container {
    padding: 8px 12px 8px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.chat-status {
    font-size: 12px;
    color: #30d158;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
    animation: fadeInUp 0.4s var(--ease-out) forwards;
    opacity: 0;
}

.chat-bubble.ai {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
}

.chat-bubble.customer {
    background: #3a3a3c;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0.3s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.7s;
}

.chat-bubble:nth-child(3) {
    animation-delay: 1.1s;
}

.chat-bubble:nth-child(4) {
    animation-delay: 1.5s;
}

.chat-bubble:nth-child(5) {
    animation-delay: 1.9s;
}

.phone-home-indicator {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Call Interface - Realistic iOS Style */
.phone-call-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    height: 100%;
    background: linear-gradient(180deg, #1c1c1e 0%, #000 100%);
}

.caller-id {
    text-align: center;
    margin-bottom: 12px;
}

.caller-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3a3a3c 0%, #2c2c2e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #8e8e93;
}

.caller-name {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.caller-label {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.call-status {
    font-size: 13px;
    color: #30d158;
    font-weight: 500;
}

.call-timer {
    font-size: 16px;
    color: #8e8e93;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.call-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Siri-style AI orb - Premium */
.ai-orb {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 35%),
        conic-gradient(from 0deg, #0071e3, #00d4ff, #7b61ff, #ff6b9d, #0071e3);
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(0, 113, 227, 0.3),
        0 0 60px rgba(0, 212, 255, 0.2);
}

.call-waveform.active .ai-orb {
    opacity: 1;
    transition: transform 0.05s ease-out, opacity 0.1s ease, box-shadow 0.1s ease;
    box-shadow:
        0 0 40px rgba(0, 113, 227, 0.5),
        0 0 80px rgba(0, 212, 255, 0.3),
        0 0 120px rgba(123, 97, 255, 0.2);
}

/* Listening state - when customer is speaking */
.call-waveform.active.listening .ai-orb {
    opacity: 0.6;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 35%),
        conic-gradient(from 0deg, #30d158, #00d4ff, #30d158);
    animation: listeningPulse 2s ease-in-out infinite;
    box-shadow:
        0 0 20px rgba(48, 209, 88, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
}

@keyframes listeningPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(0.6);
        opacity: 0.3;
    }
}

/* Fallback CSS animations when audio analyser isn't working */
.call-waveform.active.no-audio-data .ai-orb {
    animation: aiPulseFallback 0.8s ease-in-out infinite;
}

.call-waveform.active.no-audio-data.listening .ai-orb {
    animation: listeningPulseFallback 0.8s ease-in-out infinite;
}

@keyframes aiPulseFallback {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes listeningPulseFallback {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(0.6);
        opacity: 0.3;
    }
}

/* Outer glow ring */
.ai-orb::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #0071e3, #00d4ff, #7b61ff, #ff6b9d, #0071e3);
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.call-waveform.active .ai-orb::before {
    opacity: 0.5;
    animation: ringRotate 4s linear infinite;
}

/* Inner highlight */
.ai-orb::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Orbiting ring element - add in HTML */
.orb-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(0, 212, 255, 0.6);
    border-right-color: rgba(123, 97, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.call-waveform.active .orb-ring {
    opacity: 1;
    animation: ringRotate 3s linear infinite;
}

.orb-ring:nth-child(2) {
    inset: -18px;
    border-top-color: rgba(123, 97, 255, 0.4);
    border-right-color: rgba(0, 113, 227, 0.2);
    animation-duration: 5s;
    animation-direction: reverse;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Hide old bar styles */
.waveform-bar {
    display: none;
}

.live-caption {
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.caption-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #8e8e93;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.caption-text {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    min-height: 36px;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.call-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.call-action-btn svg {
    width: 22px;
    height: 22px;
}

.call-action-btn span {
    font-size: 10px;
    color: #8e8e93;
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

.call-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.end-call-area {
    margin-top: auto;
}

.end-call-btn {
    width: 64px;
    height: 64px;
    background: #ff3b30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.end-call-btn:hover {
    transform: scale(1.05);
}

/* AI Speaking Indicator - ChatGPT/Gemini Style */
.ai-speaking-indicator {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 8px 0;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(0, 113, 227, 0.15);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.ai-speaking-indicator.active {
    opacity: 1;
    background: rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.25);
}

.ai-speaking-indicator.customer-speaking {
    background: rgba(48, 209, 88, 0.08);
    border-color: rgba(48, 209, 88, 0.15);
}

.ai-speaking-indicator.customer-speaking.active {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.25);
}

.speaker-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: none;
}

.ai-speaking-indicator.active .avatar-ring {
    animation: speakingPulse 1.5s ease-in-out infinite;
}

.ai-speaking-indicator.customer-speaking .avatar-ring {
    border-color: #30d158;
}

@keyframes speakingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

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

.avatar-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #5ac8fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    z-index: 1;
}

.ai-speaking-indicator.customer-speaking .avatar-icon {
    background: linear-gradient(135deg, #30d158 0%, #63e085 100%);
}

.speaker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speaker-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.thinking-dots {
    display: flex;
    gap: 4px;
    height: 12px;
    align-items: center;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.ai-speaking-indicator.customer-speaking .thinking-dots span {
    background: #30d158;
}

.ai-speaking-indicator.active .thinking-dots span {
    animation: thinkingBounce 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinkingBounce {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.call-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 48px;
    margin: 16px 0;
}

.waveform-bar {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.call-waveform.playing .waveform-bar {
    animation: waveform 0.5s ease-in-out infinite;
}

.waveform-bar:nth-child(1) {
    animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.waveform-bar:nth-child(6) {
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(7) {
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(8) {
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(9) {
    animation-delay: 0s;
}

@keyframes waveform {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 32px;
    }
}

.call-transcript {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 16px;
    max-height: 180px;
}

.transcript-line {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.transcript-line.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.transcript-line[data-speaker="ai"] {
    color: var(--primary-light);
    border-left: 2px solid var(--primary);
}

.transcript-line[data-speaker="customer"] {
    color: #fff;
    border-left: 2px solid #30d158;
}

/* Voice Controls Container (Side by side with phone) */
.demo-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.voice-controls {
    display: none;
    width: 180px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.voice-controls.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    transform: translateX(0);
    animation: voiceControlsIn 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes voiceControlsIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile: Stack demo content vertically */
@media (max-width: 600px) {
    .demo-content {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .voice-controls {
        width: 100%;
        max-width: 300px;
        order: 1;
    }

    .voice-controls.active {
        transform: translateY(0);
    }

    .phone-carousel {
        order: 0;
        max-width: 280px;
    }

    .voice-style-options {
        flex-direction: row;
        justify-content: space-between;
    }

    .voice-style-btn {
        flex: 1;
        text-align: center;
        padding: 8px 6px;
    }
}

/* Voice Style Selector */
.voice-style-selector {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.voice-style-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.voice-style-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-style-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.voice-style-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.voice-style-btn.active {
    background: rgba(0, 113, 227, 0.15);
    border-color: var(--primary);
}

.style-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.voice-style-btn.active .style-name {
    color: var(--primary-light);
}

.style-desc {
    font-size: 10px;
    color: var(--text-tertiary);
}

.voice-style-btn.active .style-desc {
    color: var(--text-secondary);
}

.play-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-call-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.play-call-btn svg {
    width: 16px;
    height: 16px;
}

/* === Problem Section === */
.problem-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.problem-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-subtle);
}

.problem-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.problem-icon svg {
    stroke: currentColor;
}

.problem-icon--missed {
    background: linear-gradient(135deg, #ff453a 0%, #ff6961 100%);
}

.problem-icon--money {
    background: linear-gradient(135deg, #ff9f0a 0%, #ffb340 100%);
}

.problem-icon--night {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
}

.problem-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 15px;
    line-height: 1.5;
}

/* === Solution Section === */
.solution-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--duration-base) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    stroke: currentColor;
}

.feature-icon--voice {
    background: linear-gradient(135deg, #bf5af2 0%, #da8fff 100%);
}

.feature-icon--calendar {
    background: linear-gradient(135deg, #30d158 0%, #63e085 100%);
}

.feature-icon--sms {
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
}

.feature-icon--sync {
    background: linear-gradient(135deg, #ff9f0a 0%, #ffb340 100%);
}

.feature-icon--chat {
    background: linear-gradient(135deg, #ff375f 0%, #ff6b8a 100%);
}

.feature-icon--analytics {
    background: linear-gradient(135deg, #5e5ce6 0%, #7d7aff 100%);
}

.feature-card h3 {
    font-size: 17px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.5;
}

/* === Proof Section === */
.proof-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.industries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.industry-tag {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
}

.industry-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === Pricing Section === */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    text-align: center;
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-amount .dollar {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-amount .price {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-amount .period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-base {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 8px;
}

.pricing-plus {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-tertiary);
    margin: 24px 0;
}

.pricing-per-call {
    margin-bottom: 32px;
}

.per-call-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.per-call-amount .dollar {
    font-size: 24px;
    font-weight: 600;
    color: var(--success);
}

.per-call-amount .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.per-call-amount .per {
    font-size: 16px;
    color: var(--text-secondary);
}

.per-call-note {
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.pricing-example {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.pricing-example p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-example strong {
    color: var(--text-primary);
}

/* Tiered Pricing Variant */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .pricing-tiers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
}

.pricing-tier-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.pricing-tier-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.pricing-tier-card.enterprise {
    border-style: dashed;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.tier-price .dollar {
    font-size: 20px;
    color: var(--text-secondary);
}

.tier-price .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-price .period {
    font-size: 14px;
    color: var(--text-tertiary);
}

.tier-limit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tier-limit strong {
    color: var(--success);
}

.tier-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.tier-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 12px;
}

.tiered-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

/* === Waitlist Section === */
.waitlist-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.waitlist-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    overflow: hidden;
    box-sizing: border-box;
}

.waitlist-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.waitlist-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.waitlist-card>p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 17px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .waitlist-card {
        padding: 32px 24px;
    }
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.optional {
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 0.85em;
}

input,
select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--duration-fast) var(--ease-out);
}

input::placeholder {
    color: var(--text-tertiary);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
}

.checkbox-group label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.sms-compliance {
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-top: 4px;
}

.sms-compliance a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.01);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #30d158 0%, #63e085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon::before {
    content: "OK";
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 17px;
}

.waitlist-count {
    text-align: center;
    margin-top: 32px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.waitlist-count span {
    color: var(--text-secondary);
    font-weight: 600;
}

/* === Footer === */
.footer {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-content {
    text-align: center;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--primary);
}

.separator {
    opacity: 0.3;
}

/* === Responsive === */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }
}