/* EchoFlow Landing Page Styles */
/* Using Palette 1: Tech Pro */

/* Import Color Palette */
@import 'assets/colors/palette-1-tech-pro.css';

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverted);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: block;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: white;
    margin-top: 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-cta .btn {
    flex: 1;
    min-width: 200px;
}

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

.hero-cta .btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* App Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 100%;
    max-width: 400px;
}

.app-window {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.window-header {
    background: var(--color-dark);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.window-content {
    padding: 24px;
}

.sample-text {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sample-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: var(--bg-main);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.demo-input {
    margin-bottom: 20px;
}

.demo-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

#demo-text {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

#demo-text:focus {
    outline: none;
    border-color: var(--color-primary);
}

.demo-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.control-group select {
    padding: 8px 12px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.control-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.demo-progress {
    margin-bottom: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-container .progress-bar {
    flex: 1;
    height: 12px;
}

.progress-container span {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
}

.demo-summary {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.demo-summary h4 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

#ai-summary ul {
    list-style: none;
    padding: 0;
}

#ai-summary li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

#ai-summary li:last-child {
    border-bottom: none;
}

.summary-placeholder {
    color: var(--text-light);
    font-style: italic;
}

.demo-note {
    background: #FEF3C7;
    border-left: 4px solid var(--color-accent);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #78350F;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.pricing h2, .pricing .section-subtitle {
    color: white;
}

.pricing-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-header {
    background: var(--color-dark);
    color: white;
    padding: 32px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.price-suffix {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 8px;
}

.pricing-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.pricing-features {
    padding: 32px;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.05rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features strong {
    color: var(--color-primary);
}

.pricing-cta {
    padding: 32px;
    text-align: center;
    background: var(--bg-alt);
}

.guarantee {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-comparison {
    padding: 24px 32px;
    background: white;
    border-top: 2px solid var(--border-light);
}

.pricing-comparison h4 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-alt);
    border-radius: 6px;
}

.comp-item.highlight {
    background: var(--color-primary);
    color: white;
    font-weight: 700;
}

.comp-price {
    font-weight: 700;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-main);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-card);
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

details summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    transition: background 0.2s ease;
}

details summary:hover {
    background: var(--bg-alt);
}

details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

details[open] summary::after {
    content: '−';
}

details[open] summary {
    border-bottom: 1px solid var(--border-light);
}

details p {
    padding: 16px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-group select {
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

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

.feature-card, .demo-container, .pricing-card {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
button:focus, a:focus, select:focus, textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}