/* ============================================
   VizFlow — Landing Page Styles
   ============================================ */

/* === Navigation === */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,251,252,0.85);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.landing-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

[data-theme="dark"] .landing-nav {
    background: rgba(15,20,25,0.88);
}

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

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.landing-nav-links .btn-cta-primary {
    color: #ffffff !important;
}

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-actions .btn-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.3);
}

.btn-cta-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

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

.btn-cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero screenshot mockup */
.hero-mockup {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-mockup-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.hero-mockup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.hero-mockup-dot:nth-child(1) { background: #ff5f57; }
.hero-mockup-dot:nth-child(2) { background: #febc2e; }
.hero-mockup-dot:nth-child(3) { background: #28c840; }

.hero-mockup-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    min-height: 320px;
}

.hero-mockup-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-mockup-chart-area {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
}

/* Animated chart bars */
.mockup-bar {
    width: 12%;
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.5s ease-out forwards;
    opacity: 0;
}

.mockup-bar:nth-child(1) { height: 45%; background: var(--accent); animation-delay: 0.1s; }
.mockup-bar:nth-child(2) { height: 70%; background: #ec4899; animation-delay: 0.2s; }
.mockup-bar:nth-child(3) { height: 55%; background: #059669; animation-delay: 0.3s; }
.mockup-bar:nth-child(4) { height: 85%; background: #d97706; animation-delay: 0.4s; }
.mockup-bar:nth-child(5) { height: 60%; background: #7c3aed; animation-delay: 0.5s; }
.mockup-bar:nth-child(6) { height: 40%; background: #0891b2; animation-delay: 0.6s; }

@keyframes barGrow {
    from { height: 0; opacity: 0; }
    to { opacity: 1; }
}

/* Mockup sidebar elements */
.mockup-select {
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.mockup-label {
    height: 14px;
    width: 60%;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.mockup-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.mockup-cb {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.8;
}

.mockup-cb-text {
    height: 10px;
    width: 60%;
    background: var(--bg-tertiary);
    border-radius: 2px;
}

/* === Social Proof / Stats === */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* === Section Titles === */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Alternate section backgrounds */
.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-alt .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === How It Works === */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.2);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Connector line between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--border-color);
}

/* === Chart Types Showcase === */
.chart-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.chart-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.chart-type-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.chart-type-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.chart-type-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.chart-type-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Privacy Section === */
.privacy-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.privacy-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.privacy-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.privacy-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--accent);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-section .btn-cta {
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--accent);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === Landing Footer === */
.landing-footer {
    padding: 2.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* === Scroll Animations (CSS only) === */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Stagger animation delays for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.25s; }
.step:nth-child(3) { animation-delay: 0.4s; }

.chart-type-card:nth-child(1) { animation-delay: 0.05s; }
.chart-type-card:nth-child(2) { animation-delay: 0.1s; }
.chart-type-card:nth-child(3) { animation-delay: 0.15s; }
.chart-type-card:nth-child(4) { animation-delay: 0.2s; }
.chart-type-card:nth-child(5) { animation-delay: 0.25s; }
.chart-type-card:nth-child(6) { animation-delay: 0.3s; }
.chart-type-card:nth-child(7) { animation-delay: 0.35s; }
.chart-type-card:nth-child(8) { animation-delay: 0.4s; }
.chart-type-card:nth-child(9) { animation-delay: 0.45s; }

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 0.75rem 1rem;
    }
    
    .landing-nav-links {
        gap: 1rem;
    }
    
    .landing-nav-links a {
        font-size: 0.8125rem;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions .btn-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-mockup-body {
        flex-direction: column;
    }
    
    .hero-mockup-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 3.5rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .chart-types-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .landing-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .hero-mockup {
        padding: 0 1rem;
    }
    
    .hero-mockup-body {
        min-height: 200px;
    }
    
    .stats {
        gap: 1.5rem;
    }
    
    .privacy-badges {
        flex-direction: column;
        align-items: center;
    }
}
