/* ==========================================
   WAY COMPANION TOY - FIGMA MATCHING DESIGN
   ========================================== */

/* Container for all sections - matches site standard */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 24px;
    }
}

/* Hero Section - FIGMA DESIGN */
.companion-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: #0a0e27;
    overflow: hidden;
}

/* Grid layout for two-column hero */
.companion-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.companion-hero-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.companion-hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(83, 234, 253, 0.15));
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
}

.companion-hero-content {
    position: relative;
    z-index: 2;
}

.companion-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to right, #22d3ee, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.companion-hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    color: #D1D5DC;
    margin-bottom: 48px;
}

.companion-hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.companion-hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.companion-hero-features img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.companion-hero-features span {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
}

/* Highlighted keywords in cyan */
.highlight-cyan {
    color: #53EAFD !important;
}

.companion-hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary Button - Figma style */
.companion-hero-buttons .btn-primary {
    padding: 13px 30px;
    background: linear-gradient(90deg, rgba(0, 184, 219, 0.2) 0%, rgba(142, 81, 255, 0.2) 100%);
    border: 1px solid #00D3F2;
    border-radius: 8px;
    color: #53EAFD;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.3125px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.companion-hero-buttons .btn-primary:hover {
    background: linear-gradient(90deg, rgba(0, 184, 219, 0.3) 0%, rgba(142, 81, 255, 0.3) 100%);
    box-shadow: 0 0 20px rgba(0, 211, 242, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    background: transparent;
    border: 1px solid #00D3F2;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.3125px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 211, 242, 0.1);
    border-color: #53EAFD;
}

.play-icon {
    display: none;
}

/* Problem Section - FIGMA DESIGN */
.companion-problem {
    padding: 72px 0;
    background: linear-gradient(180deg, #0A0E27 0%, #0D1230 50%, #0A0E27 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative dots for Problem section */
.companion-problem::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    left: 40px;
    top: 80px;
    background: #53EAFD;
    border-radius: 50%;
    z-index: 0;
}

.companion-problem::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    right: 86px;
    top: 160px;
    background: #C4B4FF;
    border-radius: 50%;
    z-index: 0;
}

/* Section title - gradient */
.companion-problem .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    letter-spacing: 1.2px;
    background: linear-gradient(90deg, #53EAFD 0%, #C4B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.companion-problem .section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 64px;
    max-width: none;
}

.companion-problem-cards {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
    margin-top: 0;
}

/* Glassmorphism Cards with alternating gradient borders - FIGMA */
.companion-problem-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1px 0px;
    gap: 8px;
    width: 201px;
    height: 321px;
    background: linear-gradient(135deg, rgba(0, 184, 219, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(0, 211, 242, 0.3);
    filter: drop-shadow(0px 0px 20px rgba(34, 211, 238, 0.15));
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

/* Card 2 - Purple gradient */
.companion-problem-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(142, 81, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(166, 132, 255, 0.3);
    filter: drop-shadow(0px 0px 20px rgba(139, 92, 246, 0.15));
}

/* Card 3 - Blue gradient */
.companion-problem-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(81, 162, 255, 0.3);
    filter: drop-shadow(0px 0px 20px rgba(59, 130, 246, 0.15));
}

/* Card 4 - Cyan again */
.companion-problem-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(0, 184, 219, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(81, 162, 255, 0.3);
    filter: drop-shadow(0px 0px 20px rgba(59, 130, 246, 0.15));
}

/* Card 5 - Purple again */
.companion-problem-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(142, 81, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(166, 132, 255, 0.3);
    filter: drop-shadow(0px 0px 20px rgba(139, 92, 246, 0.15));
}

.companion-problem-card:hover {
    transform: translateY(-5px);
}

/* Inner wrapper with glassmorphism */
.companion-problem-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    z-index: 0;
}

.companion-problem-card>* {
    position: relative;
    z-index: 1;
}

.companion-problem-card img {
    width: auto;
    height: 112px;
    max-width: 127px;
    object-fit: contain;
    margin: 24px auto 16px;
    display: block;
}

.companion-problem-card p {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    padding: 0 24px 24px;
}

/* Features Section */
.companion-features {
    padding: 96px 0;
    background: #0a0e27;
    overflow: hidden;
}

.companion-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.companion-feature-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 184, 219, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid #00D3F24D;
    box-shadow: 0px 0px 20px 0px #22D3EE26;
}

.companion-feature-card:nth-child(2),
.companion-feature-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(142, 81, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid #A684FF4D;
    box-shadow: 0px 0px 20px 0px #8B5CF626;
}

.companion-feature-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid #51A2FF4D;
    box-shadow: 0px 0px 20px 0px #3B82F626;
}

.companion-feature-card:hover {
    background: linear-gradient(135deg, rgba(0, 211, 242, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.companion-feature-card:nth-child(2):hover,
.companion-feature-card:nth-child(4):hover {
    background: linear-gradient(135deg, rgba(166, 132, 255, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.companion-feature-card:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}


.companion-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(0, 211, 242, 0.4);
    background: linear-gradient(135deg, rgba(0, 211, 242, 0.1) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0 24px 32px;
}

.companion-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 32px 20px;
}

.companion-feature-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 32px 32px;
}

.companion-feature-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #99a1af;
    font-size: 1rem;
    line-height: 1.5;
}

.companion-feature-card li::before {
    content: '•';
    color: #53eafd;
    font-size: 1.25rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.companion-feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Experience Section */
.companion-experience {
    padding: 96px 0;
    background: #0a0e27;
}

/* Fix title overflow */
.companion-experience .section-title {
    overflow: visible !important;
    line-height: 1.2;
    padding-bottom: 8px;
}

.companion-experience-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 128px;
}

/* Row 1 - Full width background with gradient fades */
.companion-experience-row.row-1 {
    position: relative;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px calc(50vw - 50%);
}

.companion-experience-row.row-1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/companion-toy/experience-bg.png') center center / cover no-repeat;
    z-index: 0;
    /* Gradient fade on top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Content z-index above background */
.companion-experience-row.row-1 .companion-experience-content,
.companion-experience-row.row-1 .companion-experience-image {
    position: relative;
    z-index: 2;
}

/* Row 2 - Full width background with gradient fades */
.companion-experience-row.row-2 {
    position: relative;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px calc(50vw - 50%);
}

.companion-experience-row.row-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/companion-toy/experience-bg-2.png') center center / cover no-repeat;
    z-index: 0;
    /* Gradient fade on top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Content z-index above background */
.companion-experience-row.row-2 .companion-experience-content,
.companion-experience-row.row-2 .companion-experience-image {
    position: relative;
    z-index: 2;
}

.companion-experience-row:last-child {
    margin-bottom: 0;
}

.companion-experience-row-reverse {
    direction: rtl;
}

.companion-experience-row-reverse>* {
    direction: ltr;
}

.companion-experience-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.companion-experience-block {
    position: relative;
    padding: 32px;
    background: linear-gradient(180deg, rgba(0, 211, 242, 0.1) 0%, transparent 100%);
    border-top: 1px solid rgba(0, 211, 242, 0.3);
    border-radius: 16px;
}

.companion-experience-block::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(0, 211, 242, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    z-index: 0;
}

.companion-experience-block>* {
    position: relative;
    z-index: 1;
}

.companion-experience-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.companion-experience-block h3:not(:first-child) {
    margin-top: 32px;
}

.companion-experience-block p {
    color: #99a1af;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.companion-experience-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.companion-experience-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    display: block;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .companion-problem-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .companion-features-grid {
        grid-template-columns: 1fr;
    }

    .companion-experience-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .companion-experience-row-reverse {
        direction: ltr;
    }
}

/* Desktop: Hide carousel dots */
.carousel-dots {
    display: none;
}

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

    .companion-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .companion-hero-image {
        order: -1;
    }

    .companion-hero-image img {
        max-width: 350px;
    }

    .companion-hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .companion-hero-subtitle {
        font-size: 1rem;
    }

    .companion-hero-features {
        gap: 12px;
    }

    .companion-hero-features img {
        width: 18px;
        height: 18px;
    }

    .companion-hero-features span {
        font-size: 0.875rem;
    }

    .companion-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .companion-problem {
        padding: 60px 0;
    }

    /* Mobile Carousel for Problem Cards */
    .companion-problem-carousel {
        position: relative;
        width: calc(100% + 48px);
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .companion-problem-cards {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 16px;
    }

    .companion-problem-cards::-webkit-scrollbar {
        display: none;
    }

    .companion-problem-card {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 280px;
        height: auto;
        min-height: 280px;
    }

    /* Carousel Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dots .dot.active {
        background: #53EAFD;
        transform: scale(1.2);
    }

    .companion-features {
        padding: 60px 0;
    }

    .companion-features-grid {
        gap: 24px;
    }

    .companion-experience {
        padding: 60px 0;
    }

    .companion-experience-row {
        margin-bottom: 60px;
        gap: 32px;
    }
}

/* Signup Section - Fix overflow for descenders (y, g) */
.signup-section .section-title {
    overflow: visible !important;
    line-height: 1.2;
    padding-bottom: 8px;
}