/* Brayv AI - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-blue: #0037fe;
    --primary-blue-dark: #002ed1;
    --secondary-purple: #6366f1;
    --accent-purple: #8b5cf6;
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --border-accent: #3f3f46;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    /*border-bottom: 1px solid var(--border-color);*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Mobile logo adjustment */
@media (max-width: 768px) {
    .logo img {
        height: 48px;
    }
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
}

.login-trigger {
    color: var(--text-primary);
    background: none;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.login-trigger:hover {
    color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.login-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover:not(.disabled) {
    background: rgba(0, 55, 254, 0.1);
    color: var(--primary-blue);
}

.dropdown-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    position: relative;
}

.coming-soon {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
}

.cta-header {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cta-header:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(ellipse at center top, rgba(0, 55, 254, 0.15) 0%, transparent 70%);
}

.hero .container {
    width: 100%;
}

.hero-content {
    text-align: left;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 36px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 1200px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 16px 32px;
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-cta-btn:hover {
    background: linear-gradient(90deg, var(--primary-blue-dark) 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 55, 254, 0.4);
}

/* Hero CTA Buttons Container */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
}

/* Hero Countdown Button */
.hero-countdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-blue);
    padding: 16px 32px;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.hero-countdown-btn:hover {
    background: rgba(0, 55, 254, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 55, 254, 0.2);
}

.hero-countdown-btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile CTA Buttons */
@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .hero-countdown-btn {
        text-align: left;
    }
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

/* Launch Timer */
.launch-timer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.launch-timer h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.countdown {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

/* Social Proof */
.social-proof {
    padding: 120px 0 60px 0;
    background: var(--bg-secondary);
}

.proof-content {
    text-align: center;
    margin-bottom: 80px;
}

.proof-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.proof-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 80px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial {
    background: var(--bg-tertiary);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.author-info p {
    color: var(--primary-blue);
    font-size: 0.875rem;
}

/* Customer Journeys - Railway Style */
.customer-journeys {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.customer-journeys::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 55, 254, 0.03) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.journeys-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.journeys-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.journeys-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.journey-animation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.step-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
}

.step-icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-step.active .step-icon-container::before {
    opacity: 1;
}

.step-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.journey-step.active .step-icon {
    color: var(--primary-blue);
}

.step-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card {
    --progress: 0%;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: var(--progress);
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    transition: none;
    z-index: 10;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 55, 254, 0.4);
    opacity: 1;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.goal-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-block;
}

.goal-badge.secondary {
    background: var(--secondary-purple);
}

.progress-bar {
    position: absolute;
    left: 32px; /* Center of 64px icon container */
    top: 88px; /* 64px icon height + 2px border extension + 4px gap */
    bottom: -30px; /* Extend to next step */
    width: 2px;
    background: var(--border-color);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.journey-step:last-child .progress-bar {
    display: none;
}

.progress-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-purple));
    transition: height 0.8s ease;
}

.journey-step.active .progress-fill {
    height: 100%;
}

.journey-step.active .progress-bar {
    opacity: 0.6;
}

/* Hide mobile content on desktop */
.mobile-content {
    display: none;
}

.journey-content {
    position: relative;
    min-height: 400px;
}

.content-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.content-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desktop: Dynamic positioning for content panels */
@media (min-width: 769px) {
    .content-panel[data-content="0"].active { top: 0; }
    .content-panel[data-content="1"].active { top: 96px; } /* 64px icon + 32px gap */
    .content-panel[data-content="2"].active { top: 192px; }
    .content-panel[data-content="3"].active { top: 288px; }
    .content-panel[data-content="4"].active { top: 384px; }
}

.content-panel h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-panel p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.content-panel ul {
    list-style: none;
    padding: 0;
}

.content-panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.content-panel li::before {
    content: '✓';
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 50px -12px rgba(0, 55, 254, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Customer Journeys */
@media (max-width: 1200px) {
    .journey-animation {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .journey-animation {
        display: block; /* Change from grid to block */
    }
    
    .journey-steps {
        display: block;
    }
    
    .journey-content {
        display: none; /* Hide the original content container on mobile */
    }
    
    .journey-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .step-icon-container {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
    }
    
    .step-card {
        width: 100%;
        margin-bottom: 16px;
    }
    
    /* Mobile content panels - shown inline with steps */
    .journey-step .mobile-content {
        display: block;
        width: 100%;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: -8px;
        margin-bottom: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        min-height: 140px; /* Reserve minimum space to prevent layout shift */
    }
    
    .journey-step.active .mobile-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Mobile step activation transitions */
    .journey-step .step-icon-container,
    .journey-step .step-card {
        transition: all 0.3s ease;
    }
    
    .journey-step.active .step-icon-container {
        transform: scale(1.1);
    }
    
    .journey-step.active .step-card {
        border-color: var(--primary-blue);
        box-shadow: 0 4px 20px rgba(0, 55, 254, 0.15);
    }
    
    .mobile-content h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 12px;
    }
    
    .mobile-content p {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    .mobile-content ul {
        list-style: none;
        padding: 0;
    }
    
    .mobile-content li {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-secondary);
        margin-bottom: 8px;
        font-size: 0.8125rem;
    }
    
    .mobile-content li::before {
        content: '✓';
        width: 14px;
        height: 14px;
        background: var(--primary-blue);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: bold;
        flex-shrink: 0;
    }
    
    .progress-bar {
        display: none; /* Hide vertical progress bars on mobile */
    }
}

/* AI Management Section */
.ai-management {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(0, 55, 254, 0.03) 0%, transparent 70%);
}

.management-header {
    text-align: center;
    margin-bottom: 80px;
}

.management-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.management-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.comparison-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

/* Complex Automation Side */
.complexity-points {
    margin-bottom: 24px;
}

.complexity-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.complexity-points li {
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.complexity-points li i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Simple AI Side */
.simplicity-points {
    margin-bottom: 24px;
}

.simplicity-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.simplicity-points li {
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simplicity-points li i {
    width: 16px;
    height: 16px;
    color: #0037fe !important;
    flex-shrink: 0;
}

.complex-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}

.complex-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
}

/* Chat Interface */
.chat-interface {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
}

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

.chat-header .avatar i {
    width: 20px;
    height: 20px;
}

.chat-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-info .status {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
}

.chat-message {
    max-width: 80%;
    animation: messageSlide 0.5s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.chat-message.ai .message-icon {
    background: var(--primary-blue);
    color: white;
}

.chat-message.user .message-icon {
    background: var(--primary-blue);
    color: white;
}

.message-icon i {
    width: 12px;
    height: 12px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.chat-message.ai .message-bubble {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.chat-message.user .message-bubble {
    background: var(--primary-blue);
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--primary-blue);
    border-radius: 18px;
    max-width: 60px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}



/* Animations */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-management {
        padding: 80px 0;
    }
    
    .management-header h2 {
        font-size: 2.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .chat-messages {
        min-height: 300px;
    }
}

/* AI Ads Section */
.ai-ads {
    padding: 120px 0;
    background: var(--bg-primary);
}

.ads-header {
    text-align: center;
    margin-bottom: 80px;
}

.ads-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ads-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.ads-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Form Side */
.ads-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-step {
    opacity: 0.4;
    transform: translateY(0);
    transition: all 0.5s ease;
    pointer-events: none;
}

.form-step.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.form-step.completed {
    opacity: 0.4;
    transform: translateY(0);
    pointer-events: none;
}

.form-step.completed input {
    color: var(--text-secondary);
}

.form-step.completed .option-btn.selected {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.form-step.inactive {
    opacity: 0.4;
}

.form-step label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.animated-input {
    margin-bottom: 24px;
}

.animated-input input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.animated-input input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 254, 0.1);
}

.media-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.option-btn {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 55, 254, 0.05);
}

.option-btn.selected {
    border-color: var(--primary-blue);
    background: rgba(0, 55, 254, 0.1);
    color: var(--primary-blue);
}

.option-btn i {
    width: 24px;
    height: 24px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    transition: width 1s ease;
}

/* Result Side */
.ads-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.ads-result h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ad-preview {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ad-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.launch-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.launch-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.launch-benefits li i {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Typing Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary-blue);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-ads {
        padding: 80px 0;
    }
    
    .ads-header h2 {
        font-size: 2.5rem;
    }
    
    .ads-demo {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .media-options {
        flex-direction: column;
    }
    
    .ads-form {
        order: 1;
    }
    
    .ads-result {
        order: 2;
    }
}

/* Platform Features Section */
.platform-features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.features-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.features-accordion {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1024px) {
    .features-accordion {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.accordion-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(0, 55, 254, 0.3);
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 55, 254, 0.05);
}

.accordion-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 240px;
    padding: 0 24px 20px 24px;
}

.accordion-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Mobile styling */
@media (max-width: 768px) {
    .platform-features {
        padding: 80px 0;
    }
    
    .features-header h2 {
        font-size: 2.5rem;
    }
    
    .features-header p {
        font-size: 0.875rem;
    }
    
    .accordion-header {
        padding: 16px 20px;
    }
    
    .accordion-header h3 {
        font-size: 1.125rem;
    }
    
    .accordion-content {
        padding: 0 20px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 20px 16px 20px;
    }
}

/* CTA Section */
.final-cta {
    padding: 120px 0 0 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 55, 254, 0.1) 0%, transparent 70%);
}

.final-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.waitlist-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 16px;
}

.waitlist-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.waitlist-form button {
    padding: 16px 32px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waitlist-form button:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

/* Waitlist Form Container */
.waitlist-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 0;
    }

    .hero-content .subtitle {
        font-size: 0.875rem;
    }

    /* Make h2s responsive and smaller than h1 */
    .proof-content h2,
    .journeys-header h2,
    .management-header h2,
    .ads-header h2,
    .features-header h2 {
        font-size: 2.25rem;
    }
    .proof-content p,
    .journeys-header p,
    .management-header p,
    .ads-header p,
    .features-header p {
        font-size: 0.875rem;
    }

    .final-cta h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .waitlist-form {
        flex-direction: column;
    }



    .proof-stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .final-cta h2 {
        font-size: 2.5rem;
    }

    /* Scale h2s down further on smaller screens, keeping them smaller than h1 */
    .proof-content h2,
    .journeys-header h2,
    .management-header h2,
    .ads-header h2,
    .features-header h2 {
        font-size: 1.75rem;
    }

    .final-cta h2 {
        font-size: 2rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 48px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 40px;
    }
}

/* Testimonials Carousel Styles */
.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-secondary);
    padding: 0.5rem;
    min-height: 240px;
    flex: 1;
}

.testimonial {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    pointer-events: none;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: block;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.control-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonials-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        justify-items: center;
        align-items: center;
    }
    
    .testimonials-container {
        padding: 1.5rem;
        min-height: 200px;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .testimonial {
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
        grid-row: 2;
    }
    
    .control-btn.prev {
        grid-column: 1;
        justify-self: end;
        margin-right: 1rem;
    }
    
    .control-btn.next {
        grid-column: 2;
        justify-self: start;
        margin-left: 1rem;
    }
}
