/* ============================================================
   HOMEPAGE SECTIONS V2
   Below-hero redesign: Bento Grid, Use Cases, How It Works +
   Live Demo, Feature Grid, Condensed Testimonials.
   ============================================================ */

/* ============================================================
   SECTION 1: BENTO FEATURES V2
   Asymmetric dark cards with visual elements
   ============================================================ */

.cf-bento-v2 {
    padding: 96px 0 80px;
    background: #ffffff;
}

.cf-bento-v2__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cf-bento-v2__header {
    text-align: center;
    margin-bottom: 56px;
}

.cf-bento-v2__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 16px;
}

.cf-bento-v2__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cf-bento-v2__subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid: Row 1 = large (2/3) + medium (1/3), Row 2 = 3 equal */
.cf-bento-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
}

/* Card base */
.cf-bento-v2__card {
    background: #000000;
    border-radius: 20px;
    padding: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cf-bento-v2__card:hover {
    transform: translateY(-4px);
}

/* Large card: spans 2 columns */
.cf-bento-v2__card--large {
    grid-column: span 2;
    min-height: 340px;
}

/* Card content */
.cf-bento-v2__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.3;
}

.cf-bento-v2__card--large .cf-bento-v2__card-title {
    font-size: 28px;
}

.cf-bento-v2__card-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

/* Tags */
.cf-bento-v2__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.cf-bento-v2__card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s;
}

.cf-bento-v2__card:hover .cf-bento-v2__card-tag {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Flow visualization (large card) */
.cf-bento-v2__flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 8px;
}

.cf-bento-v2__flow-step {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-bento-v2__flow-step--accent {
    background: rgba(209, 254, 23, 0.08);
    border-color: rgba(209, 254, 23, 0.2);
}

.cf-bento-v2__flow-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cf-bento-v2__flow-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.cf-bento-v2__flow-text strong {
    color: #d1fe17;
    font-weight: 600;
}

.cf-bento-v2__flow-arrow {
    color: #d1fe17;
    flex-shrink: 0;
    font-size: 18px;
    opacity: 0.7;
}

/* CTA below grid */
.cf-bento-v2__cta {
    text-align: center;
    margin-top: 48px;
}

.cf-bento-v2__cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cf-bento-v2__cta-btn:hover {
    background: #d1fe17;
    color: #000;
}

.cf-bento-v2__cta-note {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
}

/* ============================================================
   SECTION 2: USE CASES / PERSONAS
   Persona cards with pill tags and solution links
   ============================================================ */

.cf-use-cases {
    padding: 80px 0;
    background: #fff;
}

.cf-use-cases__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cf-use-cases__header {
    text-align: center;
    margin-bottom: 56px;
}

.cf-use-cases__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 16px;
}

.cf-use-cases__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cf-use-cases__subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.cf-use-cases__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cf-use-cases__card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cf-use-cases__card:hover {
    transform: translateY(-4px);
    border-color: #d1fe17;
}

.cf-use-cases__card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.cf-use-cases__card-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cf-use-cases__card-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}

.cf-use-cases__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.cf-use-cases__card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.cf-use-cases__card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.cf-use-cases__card-link:hover {
    color: #d1fe17;
}

/* ============================================================
   SECTION 3: HOW IT WORKS + LIVE DEMO
   Dark section with steps + phone mockup + tabs
   ============================================================ */

.cf-live-demo {
    padding: 96px 0 80px;
    background: #000000;
    color: #fff;
}

.cf-live-demo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cf-live-demo__header {
    text-align: center;
    margin-bottom: 48px;
}

.cf-live-demo__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d1fe17;
    margin-bottom: 16px;
}

.cf-live-demo__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cf-live-demo__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How It Works steps */
.cf-live-demo__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

.cf-live-demo__step {
    text-align: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.cf-live-demo__step-number {
    width: 36px;
    height: 36px;
    background: #d1fe17;
    color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 14px;
}

.cf-live-demo__step-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.cf-live-demo__step-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Phone mockup */
.cf-live-demo__phone-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.cf-live-demo__phone {
    width: 300px;
    background: #1c1c1e;
    border-radius: 44px;
    padding: 14px;
    border: 2px solid #333;
    position: relative;
}

.cf-live-demo__phone-notch {
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 0;
    position: relative;
    z-index: 2;
}

.cf-live-demo__phone-screen {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    min-height: 420px;
    position: relative;
}

/* Chat header inside phone */
.cf-live-demo__chat-header {
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cf-live-demo__chat-back {
    color: #000;
    font-size: 18px;
}

.cf-live-demo__chat-avatar {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cf-live-demo__chat-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.cf-live-demo__chat-status {
    font-size: 11px;
    color: #6b7280;
}

/* Chat messages */
.cf-live-demo__conversation {
    display: none;
}

.cf-live-demo__conversation.is-active {
    display: block;
}

.cf-live-demo__chat-messages {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
}

.cf-live-demo__msg {
    max-width: 80%;
    font-size: 13px;
    line-height: 1.5;
    animation: cfMsgFadeIn 0.3s ease;
}

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

.cf-live-demo__msg--received {
    align-self: flex-start;
}

.cf-live-demo__msg--received p {
    background: #e5e7eb;
    color: #000;
    border-radius: 18px 18px 18px 4px;
    padding: 10px 14px;
    margin: 0;
}

.cf-live-demo__msg--sent {
    align-self: flex-end;
}

.cf-live-demo__msg--sent p {
    background: #000;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 14px;
    margin: 0;
}

/* Auto-reply badge inside phone */
.cf-live-demo__auto-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 11px;
    color: #6b7280;
}

.cf-live-demo__auto-badge-icon {
    font-size: 12px;
}

/* Phone home indicator */
.cf-live-demo__phone-home {
    width: 120px;
    height: 4px;
    background: #666;
    border-radius: 2px;
    margin: 12px auto 4px;
}

/* Tabs below phone */
.cf-live-demo__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.cf-live-demo__tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
    color: #fff;
    font-family: inherit;
}

.cf-live-demo__tab:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cf-live-demo__tab.is-active {
    border-color: #d1fe17;
    background: rgba(209, 254, 23, 0.06);
}

.cf-live-demo__tab-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cf-live-demo__tab.is-active .cf-live-demo__tab-title {
    color: #d1fe17;
}

.cf-live-demo__tab-desc {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ============================================================
   SECTION 4: FEATURE GRID
   Comprehensive uniform grid with Pro badges
   ============================================================ */

.cf-feature-grid {
    padding: 96px 0 80px;
    background: #ffffff;
}

.cf-feature-grid__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cf-feature-grid__header {
    text-align: center;
    margin-bottom: 56px;
}

.cf-feature-grid__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 16px;
}

.cf-feature-grid__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    margin: 0 0 16px;
}

.cf-feature-grid__subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cf-feature-grid__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cf-feature-grid__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cf-feature-grid__card:hover {
    transform: translateY(-3px);
    border-color: #d1fe17;
}

.cf-feature-grid__card-icon {
    width: 44px;
    height: 44px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.cf-feature-grid__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cf-feature-grid__card-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.cf-feature-grid__card-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #d1fe17;
    color: #000;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-feature-grid__card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* CTA below grid */
.cf-feature-grid__cta {
    text-align: center;
    margin-top: 48px;
}

.cf-feature-grid__cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cf-feature-grid__cta-btn:hover {
    background: #d1fe17;
    color: #000;
}

/* ============================================================
   SECTION 6: CONDENSED TESTIMONIALS
   Single compact row with shorter quotes
   ============================================================ */

.cf-testimonials-v2 {
    padding: 80px 0;
    background: #fff;
}

.cf-testimonials-v2__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cf-testimonials-v2__header {
    text-align: center;
    margin-bottom: 48px;
}

.cf-testimonials-v2__badge {
    display: inline-block;
    padding: 6px 16px;
    background: #d1fe17;
    color: #000;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.cf-testimonials-v2__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
}

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

.cf-testimonials-v2__card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.cf-testimonials-v2__quote {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.cf-testimonials-v2__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf-testimonials-v2__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.cf-testimonials-v2__author-info {
    display: flex;
    flex-direction: column;
}

.cf-testimonials-v2__niche {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.cf-testimonials-v2__handle {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    /* Bento */
    .cf-bento-v2__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cf-bento-v2__card--large {
        grid-column: span 2;
    }

    /* Use Cases */
    .cf-use-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Feature Grid */
    .cf-feature-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    .cf-bento-v2 {
        padding: 64px 0 56px;
    }

    .cf-bento-v2__header {
        margin-bottom: 36px;
    }

    /* Bento: single column */
    .cf-bento-v2__grid {
        grid-template-columns: 1fr;
    }

    .cf-bento-v2__card--large {
        grid-column: span 1;
    }

    .cf-bento-v2__card {
        min-height: auto;
        padding: 24px;
    }

    .cf-bento-v2__card--large .cf-bento-v2__card-title {
        font-size: 24px;
    }

    /* Flow stacks on mobile */
    .cf-bento-v2__flow {
        flex-direction: column;
        gap: 8px;
    }

    .cf-bento-v2__flow-arrow {
        transform: rotate(90deg);
    }

    /* Use Cases: single column */
    .cf-use-cases {
        padding: 64px 0;
    }

    .cf-use-cases__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Live Demo */
    .cf-live-demo {
        padding: 64px 0 56px;
    }

    .cf-live-demo__steps {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }

    .cf-live-demo__step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }

    .cf-live-demo__step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cf-live-demo__step-content {
        flex: 1;
    }

    .cf-live-demo__phone {
        width: 260px;
    }

    .cf-live-demo__phone-screen {
        min-height: 360px;
    }

    .cf-live-demo__tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Feature Grid: 2 columns on mobile */
    .cf-feature-grid {
        padding: 64px 0 56px;
    }

    .cf-feature-grid__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cf-feature-grid__card {
        padding: 20px;
    }

    /* Testimonials */
    .cf-testimonials-v2 {
        padding: 64px 0;
    }

    .cf-testimonials-v2__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    .cf-bento-v2 {
        padding: 48px 0 40px;
    }

    .cf-bento-v2__card {
        padding: 20px;
    }

    .cf-bento-v2__card-title {
        font-size: 20px;
    }

    .cf-bento-v2__card--large .cf-bento-v2__card-title {
        font-size: 22px;
    }

    .cf-bento-v2__flow-step {
        padding: 10px 12px;
    }

    .cf-bento-v2__flow-text {
        font-size: 12px;
    }

    /* Feature Grid: single column on small phones */
    .cf-feature-grid__grid {
        grid-template-columns: 1fr;
    }

    /* Live Demo */
    .cf-live-demo__phone {
        width: 240px;
    }

    .cf-live-demo__chat-messages {
        min-height: 260px;
    }
}
