/* Landing Page Specific Styles - Isolated from main app */
/* This file contains styles ONLY for the landing page to avoid conflicts */

/* CSS Custom Properties for easy theming */
:root {
    --landing-primary: #667eea;
    --landing-secondary: #764ba2;
    --landing-gradient-start: #f093fb;
    --landing-gradient-end: #f5576c;
    --landing-text-dark: #333;
    --landing-text-light: #666;
    --landing-bg-light: #f8f9fa;
    --landing-bg-white: #fff;
    --landing-shadow: rgba(0,0,0,0.1);
    --landing-border-radius: 8px;
    --landing-transition: all 0.3s ease;
}

/* Reset for landing page */
.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--landing-text-dark);
}

/* Override container padding for landing page */
/* Using both :has() for modern browsers and fallback class for compatibility */
body:has(.landing-page) .container,
body.landing-page-active .container {
    max-width: 100%;
    padding: 0;
}

/* Landing Page Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.landing-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.landing-logo a:hover {
    opacity: 0.8;
}

.landing-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.landing-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.landing-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.landing-nav-link.signup-btn {
    background: white;
    color: var(--landing-primary);
    padding: 10px 24px;
}

.landing-nav-link.signup-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header scrolled state */
.landing-header.scrolled {
    background: rgba(103, 102, 234, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: white;
    padding: 80px 20px 40px; /* Much less padding */
    min-height: auto; /* Let content determine height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content horizontally */
    margin: -20px -15px 0 -15px; /* Offset container padding */
    position: relative;
    overflow: hidden; /* Prevent any content overflow */
}

.hero-container {
    display: flex;
    flex-direction: row; /* Side by side layout */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1 1 500px; /* Can grow and shrink */
    text-align: left; /* Left align for side-by-side layout */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem; /* Reduced margin */
    line-height: 1.15; /* Tighter line height */
    /* Ensure text doesn't break awkwardly */
    overflow-wrap: break-word;
    hyphens: manual;
}

.gradient-text {
    background: linear-gradient(45deg, var(--landing-gradient-start) 0%, var(--landing-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fix for gradient text display issues */
    display: inline-block;
    padding: 0 2px; /* Small padding to prevent clipping */
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem; /* Reduced margin */
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem; /* Even less margin */
    flex-wrap: wrap;
    justify-content: flex-start; /* Left align for side layout */
}

.btn-primary {
    background: var(--landing-bg-white);
    color: var(--landing-primary);
    padding: 12px 24px; /* Smaller padding */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Smaller font */
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #667eea;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px; /* Smaller padding */
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem; /* Smaller font */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem; /* Less gap */
    justify-content: flex-start; /* Left align */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem; /* Smaller */
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem; /* Smaller */
    opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
    flex: 1 1 450px; /* Smaller */
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-demo-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Smaller */
}

/* Modern Voice Input UI */
.voice-input-demo {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px; /* Less padding */
    position: relative;
    overflow: hidden;
}

.voice-input-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    text-align: center;
}

.voice-command-preview {
    background: rgba(255,255,255,0.95);
    color: var(--landing-text-dark);
    padding: 12px 16px 12px 36px; /* Less padding, room for icon */
    border-radius: 10px;
    font-size: 0.95rem; /* Smaller text */
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    font-weight: 500;
}

.voice-command-preview::before {
    content: "🎙️";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* Voice wave visualization */
.voice-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px; /* Smaller */
    margin: 16px 0; /* Less margin */
}

.voice-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: voice-pulse 1.2s ease-in-out infinite;
    opacity: 0.8;
}

.voice-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.voice-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.voice-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.voice-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.voice-bar:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.voice-bar:nth-child(6) { height: 25px; animation-delay: 0.5s; }
.voice-bar:nth-child(7) { height: 20px; animation-delay: 0.6s; }

@keyframes voice-pulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Result preview */
.mini-kanban-preview {
    background: white;
    border-radius: 10px;
    padding: 12px; /* Less padding */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: flex;
    gap: 10px; /* Less gap */
    margin-top: 16px;
    transform: scale(0.95);
    opacity: 0;
    animation: slide-up 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes slide-up {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.mini-column {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.mini-column-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--landing-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-card {
    background: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--landing-text-dark);
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Value Props Section */
.value-props {
    padding: 60px 20px; /* Reduced padding */
    background: var(--landing-bg-light);
    margin: 0 -15px;
}

.value-props h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem; /* Reduced margin */
    color: var(--landing-text-dark);
}

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

.prop-card {
    background: white;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.prop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prop-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.prop-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.prop-demo button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.prop-demo button:hover {
    background: #5a67d8;
}

.language-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: #e0e7ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Feature Showcase */
.feature-showcase {
    padding: 60px 20px; /* Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem; /* Reduced margin */
    flex-wrap: wrap;
}

.tab {
    background: transparent;
    border: 2px solid #ddd;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab.active, .tab:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.showcase-content {
    background: white;
    border-radius: 12px;
    padding: 2rem; /* Reduced padding */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-panel {
    display: none;
}

.feature-panel.active {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.terminal-style {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Monaco', 'Consolas', monospace;
}

.terminal-header {
    background: #333;
    padding: 10px 15px;
    color: #999;
    font-size: 0.85rem;
}

.terminal-body {
    padding: 20px;
    color: #f0f0f0;
}

.voice-input {
    color: #4fc3f7;
    margin: 15px 0 5px 0;
}

.voice-output {
    color: #81c784;
    margin: 5px 0 20px 20px;
}

.feature-benefits h4 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-benefits ul {
    list-style: none;
    padding: 0;
}

.feature-benefits li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.feature-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #81c784;
    font-weight: bold;
}

/* Use Cases */
.use-cases {
    padding: 60px 20px; /* Reduced padding */
    background: var(--landing-bg-light);
    margin: 0 -15px;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem; /* Reduced margin */
    color: var(--landing-text-dark);
}

.use-case-carousel {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 20px;
}

.use-case {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.persona {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #667eea;
}

blockquote {
    margin: 0;
    font-style: italic;
    color: #666;
    border-left: 3px solid #667eea;
    padding-left: 15px;
}

/* Try It Now */
.try-it-now {
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

.try-it-now h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.demo-subtitle {
    color: var(--landing-text-light);
    margin-bottom: 2rem; /* Reduced margin */
}

.live-demo-container {
    max-width: 600px;
    margin: 0 auto;
}

.demo-board {
    background: white;
    border-radius: 12px;
    padding: 2rem; /* Reduced padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.demo-instructions {
    margin-bottom: 2rem;
}

.demo-instructions p {
    color: #666;
    margin-bottom: 0.5rem;
}

.demo-voice-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.demo-voice-btn:hover {
    background: #5a67d8;
    animation: none;
}

.demo-voice-btn.recording {
    background: #ef4444;
    animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: white;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
    margin: 0 -15px -20px -15px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-options {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .cta-card {
        background: rgba(255,255,255,0.2);
    }
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.cta-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.cta-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.cta-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.no-card-required {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Tablet and medium screens */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        max-width: 500px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-header {
        padding: 15px 0;
    }
    
    .landing-logo a {
        font-size: 1.2rem;
    }
    
    .landing-nav {
        gap: 1rem;
    }
    
    .landing-nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .landing-nav-link.signup-btn {
        padding: 8px 16px;
    }
    
    .hero {
        padding: 80px 20px 40px; /* Adjusted for mobile header */
    }
    
    .hero-container {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 1.5rem; /* Reduce gap on mobile */
        text-align: center;
    }
    
    .hero-content {
        text-align: center; /* Center on mobile */
    }
    
    .hero-actions {
        justify-content: center; /* Center buttons on mobile */
    }
    
    .hero-stats {
        justify-content: center; /* Center stats on mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .gradient-text {
        display: block; /* Force new line on mobile */
        margin-top: 0.2rem;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
    
    .voice-demo-container {
        transform: scale(0.8);
    }
    
    .prop-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-panel.active {
        grid-template-columns: 1fr;
    }
    
    .showcase-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .use-case-carousel {
        flex-direction: column;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 1rem;
        padding: 12px 24px;
        width: 100%;
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat {
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Demo Results */
.demo-result {
    margin-top: 2rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    color: #0c4a6e;
    display: none;
}

.demo-result.success {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #86efac;
}

.demo-result.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}