/* Landing Page - Minimalistic Design */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Background */
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

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

/* Landing Page Body Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Landing Container */
.landing-container {
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: clamp(400px, 50vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

/* Hero Background Animation */
.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -300px;
    right: -300px;
    animation-delay: 7s;
}

.gradient-orb-3 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(800px, 90vw);
    padding: var(--space-xl);
    color: var(--text-white);
}

/* Hero Character Images */
.hero-character {
    position: absolute;
    z-index: 0;
    opacity: 0.9;
    animation: fadeIn 1s ease-in-out;
    pointer-events: none;
}

.hero-character-left {
    left: 5%;
    bottom: 0;
    width: clamp(150px, 20vw, 300px);
    max-height: 80%;
    object-fit: contain;
    object-position: bottom left;
}

.hero-character-right {
    right: 5%;
    bottom: 0;
    width: clamp(150px, 20vw, 300px);
    max-height: 80%;
    object-fit: contain;
    object-position: bottom right;
}

/* Hide characters on smaller screens */
@media (max-width: 1024px) {
    .hero-character {
        width: clamp(100px, 15vw, 200px);
    }
}

@media (max-width: 768px) {
    .hero-character {
        display: none;
    }
}

/* Brand */
.brand {
    margin-bottom: var(--space-2xl);
}

.brand-name {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--text-white);
}

.brand-tagline {
    font-size: var(--font-size-base);
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Value Proposition */
.value-prop {
    margin-bottom: 2rem;
}

.headline {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.subheadline {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    opacity: 0.9;
    max-width: min(600px, 85vw);
    margin: 0 auto;
}

/* CTA */
.cta-container {
    margin-bottom: var(--space-lg);
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

/* Shimmer effect on hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}


/* Trust Indicator */
.trust-indicator {
    margin-top: 1rem;
}

.trust-text {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp var(--transition-slow) both;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 400px;
        min-height: 400px;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-tagline {
        font-size: 0.875rem;
    }
    
    .headline {
        font-size: 1.75rem;
    }
    
    .subheadline {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .headline {
        font-size: 1.5rem;
    }
    
    .subheadline {
        font-size: 0.95rem;
    }
    
    .brand {
        margin-bottom: 1.5rem;
    }
    
    .value-prop {
        margin-bottom: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== NEW SECTIONS ===== */

/* Container */
/* Note: .container class is now defined in base.css */

/* Section Titles */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-3xl);
    line-height: 1.2;
}

/* Benefits Section */
.benefits {
    padding: var(--space-3xl) 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #f1f5f9;
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

.benefit-card:nth-child(1) .benefit-icon { animation-delay: 0s; }
.benefit-card:nth-child(2) .benefit-icon { animation-delay: 0.2s; }
.benefit-card:nth-child(3) .benefit-icon { animation-delay: 0.4s; }

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

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    font-size: 2rem;
    color: var(--bg-gradient-start);
    opacity: 0.5;
}

/* Social Proof Section */
.social-proof {
    padding: 5rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Center the third stat card when it's alone */
.stat-card-centered {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
}

.cta-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-button-large {
        padding: 1.25rem 3rem;
        font-size: 1.125rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .benefits,
    .how-it-works,
    .social-proof,
    .final-cta {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .benefit-card,
    .step-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Language Cycling Animation */
.language-cycling-test {
    margin-top: 2rem;
    text-align: center;
}

.cycling-text {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
}

.language-rotator {
    display: inline-block;
    position: relative;
    width: 140px; /* Fixed width to prevent layout shift */
    height: 1.2em;
    vertical-align: middle;
}

/* When in headline, inherit font size */
.headline .language-rotator {
    display: block; /* Make it take full width */
    width: 100%;
    height: 0; /* No height - doesn't affect spacing */
    overflow: visible; /* Allow text to show */
    margin: 0; /* Remove extra margins - let <br> handle spacing */
    position: relative;
}

.language-word {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    right: 0;
    top: 0; /* Position at container level */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.language-word.active {
    opacity: 1;
    transform: translateY(0);
}

.language-word.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Inline language rotator for section titles */
.language-rotator-inline {
    display: inline-block;
    position: relative;
    width: 140px; /* Fixed width for inline context */
    height: 1.2em;
    vertical-align: baseline;
}

.language-rotator-inline .language-word {
    top: 0;
}

/* Section title language rotator (on its own line) */
.language-rotator-section {
    display: block;
    width: 100%;
    height: 0; /* No height to maintain equal spacing */
    overflow: visible;
    margin: 0;
    position: relative;
    text-align: center;
}

.language-rotator-section .language-word {
    top: 0;
}