/* ============================================
   COMPONENTS
   Buttons, Cards, Badges, and other reusable components
   ============================================ */

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Button sizes */
.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-small);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-large);
}

.btn-xl {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
}

/* Primary button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border-medium);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Button groups */
.btn-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    .btn-xl {
        padding: 9px 20px;
        font-size: 15px;
        line-height: 1;
    }

    .btn-lg {
        padding: 8px 18px;
        font-size: 15px;
        line-height: 1;
    }
}


/* ========== Badges ========== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    background: var(--color-bg-light);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-float {
    position: absolute;
    background: white;
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    z-index: var(--z-base);
}

/* Floating badge positions (customized per usage) */
.badge-float-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.badge-float-2 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.badge-float-3 {
    top: 0;
    right: 0;
    animation-delay: 2s;
}

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

/* Special float animation for centered badge */
.badge-float-2 {
    animation: float-centered 3s ease-in-out infinite;
}

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


/* ========== Cards ========== */

.card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-title {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.card-description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Step cards */
.step-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: white;
}

.step-title {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.step-description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Use case cards */
.use-case-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.use-case-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-primary);
}

.use-case-title {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.use-case-description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}


/* ========== Trust Badges ========== */

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4);
    gap: var(--space-2);
}

.trust-badge svg {
    color: var(--color-primary);
}

.trust-badge p {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    margin: 0;
}


/* ========== Lists ========== */

.feature-list {
    list-style: none;
    margin-top: var(--space-4);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.trust-list {
    list-style: none;
    margin-top: var(--space-4);
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
}

.check-icon {
    flex-shrink: 0;
    color: var(--color-success);
    margin-top: 2px;
}


/* ========== Coming Soon Badge ========== */

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-light);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
}


/* ========== Phone Mockup (Placeholder) ========== */

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    background: var(--color-bg-dark);
    border-radius: var(--space-6);
    padding: var(--space-2);
    box-shadow: var(--shadow-2xl);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--space-5);
    overflow: hidden;
    position: relative;
}

.chat-placeholder {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    color: white;
}

.chat-bubble p {
    font-size: var(--font-size-small);
    margin-bottom: var(--space-2);
}

.waveform {
    display: flex;
    gap: 4px;
    height: 24px;
    align-items: center;
}

.waveform::before,
.waveform::after {
    content: "";
    width: 3px;
    height: 100%;
    background: white;
    border-radius: var(--radius-full);
    animation: wave 1s ease-in-out infinite;
}

.waveform::after {
    animation-delay: 0.3s;
}

@keyframes wave {
    0%, 100% {
        height: 30%;
    }
    50% {
        height: 100%;
    }
}


/* ========== Responsive Adjustments ========== */

@media (max-width: 767px) {
    .card,
    .step-card,
    .use-case-card {
        padding: var(--space-4);
    }

    .step-icon,
    .use-case-icon {
        width: 64px;
        height: 64px;
    }

    .badge-float {
        display: none; /* Hide floating badges on mobile for cleaner look */
    }

    .phone-mockup {
        max-width: 280px;
    }
}
