/* Landing Page Styles */

/* Variables */
:root {
    --primary: #4a90d9;
    --primary-dark: #3a7bc8;
    --secondary: #2d3748;
    --accent: #ed8936;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --text-dark: #1a202c;
    --text-gray: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Header */
.landing-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .landing-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: 'Germania One', cursive;
    font-size: 28px;
    color: var(--primary);
    letter-spacing: 1px;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.lang-switch {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 14px;
}

/* Hero Section */
.landing-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.landing-hero .landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.cta-note {
    font-size: 14px;
    color: var(--text-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Demo Card */
.demo-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-input {
    padding: 20px;
    background: var(--primary);
    color: white;
}

.demo-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.demo-sentence {
    font-size: 18px;
    font-weight: 500;
}

.demo-output {
    padding: 20px;
}

.demo-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component {
    font-size: 14px;
    color: var(--text-gray);
}

.component strong {
    color: var(--text-dark);
}

/* Stats Section */
.stats-section {
    padding: 48px 0;
    background: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

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

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.testimonial-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.landing-footer {
    padding: 48px 0;
    background: var(--secondary);
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .landing-hero .landing-container {
        grid-template-columns: 1fr;
    }

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

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

    .landing-nav {
        display: none;
    }
}

/* Component Tree Demo */
.demo-tree {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.tree-line {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    margin: 2px 0;
    font-weight: 600;
}

.tree-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

.tree-line.subject {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}

.tree-line.predicate {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

/* Branch-specific leaf styling */
.tree-branch.subject-branch .tree-leaf {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}

.tree-branch.predicate-branch .tree-leaf {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.tree-branch.adverbial-branch .tree-leaf {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #e65100;
}

.tree-line.adverbial {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #e65100;
}

.tree-children {
    margin-left: 24px;
    border-left: 1px dashed #cbd5e0;
    padding-left: 8px;
}

.tree-branch {
    margin: 4px 0;
}

.tree-leaf {
    padding: 4px 12px;
    background: #f7fafc;
    border-radius: 4px;
    margin: 2px 0;
    color: var(--text-dark);
    font-weight: 500;
}
