/* ===================================
   LANDING.CSS - Original Parallax Design
   Matches the standalone HTML parallax page
   =================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    /* Allow columns to shrink without overflowing on mobile */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #000;
}

.hero-subhead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.waitlist-note {
    font-size: 0.9rem;
    color: #999;
}

/* Standardized hero right column wrapper */
.hero-visual,
.hero__visual {
    position: relative;
    height: 600px;
    min-width: 0;
    /* prevent overflow on narrow screens */
}

/* Internal container for stacking/overlapping visuals */
.hero-visuals {
    position: relative;
    display: grid;
    gap: 1.25rem;
    height: 100%;
}

.mockup-container {
    position: relative;
    height: 100%;
}

/* Base mockup styles shared across variants */
.mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    width: 100%;
    overflow: hidden;
    /* avoid visual cut-offs */
}

/* Ensure inner content wraps instead of overflowing */
.mockup *,
.mockup .text-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Position summary mockup at the top-left */
.mockup--summary {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    max-width: 500px;
}

/* Position chat/secondary mockup at the bottom-right (replaces old dashboard position) */
.mockup--creator-chat {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    max-width: 480px;
    border: 1px solid #e5e7eb;
}

/* When used as the creators' top mockup, anchor top-left to avoid overlap */
.mockup--creator-chat.creator-mockup {
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
}

.dashboard-mockup,
.mockup--dashboard {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    max-width: 480px;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .mockup--summary {
        top: -50px;
    }

    .dashboard-mockup,
    .mockup--dashboard {
        bottom: -10px;
    }

    .mockup--creator-chat {
        bottom: -50px;
    }

    .mockup--creator-chat.creator-mockup {
        top: -100px;
    }
}

.mockup-header,
.mockup__header {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-bubble {
    background: #f0f0f0;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.chat-bubble.user {
    background: #f8fafc;
    color: #111827;
    margin-left: 2rem;
    border: 1px solid #764ba2;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
}

.chat-bubble.ai {
    background: #f8fafc;
    color: #111827;
    margin-right: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.timestamp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Inline video embed preview inside AI bubble */
.video-embed-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.9rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem;
    margin-top: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Shared small pill for topic tags on summary page */
.topic-pill {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb .play-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-embed-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.duration-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.video-info {
    min-width: 0;
}

.video-title {
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.video-meta {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.95rem;
}

.dashboard-stat:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: 700;
    color: #4f46e5;
}

/* Iconic stats (match dashboard aesthetics) */
.stat-left {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #111827;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* Mini analytics inside dashboard mockup */
.analytics-mini {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.mini-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.sparkline {
    width: 130px;
    height: 24px;
}

.top-video-item {
    background: var(--gray-50);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem;
}

.top-video-item .tv-thumb {
    width: 54px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
    flex-shrink: 0;
}

.top-video-item .tv-info {
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
}

.tv-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-meta {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
}

.tv-action {
    font-size: 0.85rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile adjustments for top-video card */
@media (max-width: 968px) {
    .tv-action {
        display: none;
    }

    .tv-title {
        max-width: 100%;
    }
}

.sources {
    gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

/* Source legend mimic from analytics pie */
.legend-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    display: inline-block;
}

.legend-dot.chat {
    background: #6366f1;
}

.legend-dot.quiz {
    background: #06b6d4;
}

.legend-dot.summary {
    background: #f59e0b;
}

.legend-value {
    margin-left: 0.15rem;
    font-weight: 600;
    color: #111827;
}

/* Why Section */
.why-section {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.why-card {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    /* center content by default for consistency */
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
    text-align: center;
}

.why-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000;
}

.why-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* How It Works */
.how-section {
    padding: 8rem 4rem;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.how-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.step:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-5px);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.step p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sample Avatars */
.sample-section {
    padding: 6rem 4rem;
    background: #000;
    color: #fff;
}

.sample-section .section-title {
    color: #fff;
}

.avatars-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.avatar-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.avatar-card:hover {
    transform: scale(1.05);
}

.avatar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    text-align: center;
    font-size: 3rem;
}

.avatar-info {
    padding: 2rem;
}

.avatar-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    /* Fixed: was inheriting dark color */
}

.avatar-info p {
    color: #b0b0b0;
    /* Fixed: was #999 - too dark on #1a1a1a background */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.try-demo {
    display: inline-block;
    color: #8b9bff;
    /* Fixed: lighter blue for better contrast on dark */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.try-demo:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

.fan-note {
    text-align: center;
    color: #888;
    /* Fixed: was #666 - too dark on black */
    font-size: 0.95rem;
    margin-top: 3rem;
    font-style: italic;
}

/* Early Access Section */
.early-access {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: #fff;
}

.early-access h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #fff;
    /* Ensure white on gradient */
}

.early-access p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    /* Fixed: better contrast on gradient */
}

.spots-remaining {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #fff;
    /* Ensure white text */
}

.btn-white {
    background: #fff;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tighter hero for summarise page - prioritize form visibility */
.hero.hero-compact {
    padding: 4rem 4rem 2rem;
    min-height: auto;
}

.hero.hero-compact h1 {
    margin-bottom: 1rem;
}

.hero.hero-compact .hero-subhead {
    margin-bottom: 1rem;
}

/* Parallax elements */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.hide-on-mobile {
    display: none;
}

@media (min-width: 968px) {
    .hide-on-mobile {
        display: flex;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
        /* Reduced from 6rem 2rem 2rem - improves both pages */
    }

    .hero-visual,
    .hero__visual {
        height: auto;
        /* Changed from fixed 500px - allows natural stacking */
        min-height: 400px;
    }

    .mockup-container,
    .hero-visuals {
        position: relative;
        /* Changed from default - fixes overlap on both pages */
        height: auto;
        /* Allow natural height */
    }

    .chat-mockup,
    .mockup--summary,
    .mockup--creator-chat {
        position: relative;
        /* Changed from absolute - prevents overlap */
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
        /* Add spacing between mockups */
    }

    .dashboard-mockup,
    .mockup--dashboard {
        position: relative;
        /* Already present, keep it */
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        /* Changed from 2rem - better spacing */
    }

    .why-section,
    .how-section,
    .sample-section,
    .early-access {
        padding: 2.5rem 1.5rem;
        /* Reduced from 4rem 2rem - less whitespace on both pages */
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* Reduced from 1.5rem - tighter spacing */
    }

    .why-card {
        padding: 2rem;
        /* Reduced from 3rem - better mobile fit */
    }

    .steps-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        /* Single column layout for mobile - improves "How It Works" layout */
    }

    .step {
        padding: 1.5rem 1rem;
        /* Reduced from 2rem 1.5rem - better mobile fit */
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        /* Reduced from 3rem - less whitespace */
    }

    /* Perfect For Everyone section - force single column on mobile */
    .perfect-for-everyone-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Mobile styles for hero-compact */
    .hero.hero-compact {
        padding: 2rem 1.5rem 1.5rem;
    }
}