/* Reset and 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', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary: #06476c;
    --primary-dark: #043654;
    --primary-light: #0a5a8a;
    --accent: #4ECDC4;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(6, 71, 108, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(6, 71, 108, 0.1);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

img.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    opacity: 1 !important; /* Ensure logos are always visible */
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.btn-icon {
    width: 20px;
    height: 20px;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 71, 108, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    margin-bottom: 30px;
}

.hero-note {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(6, 71, 108, 0.2);
}

.mockup-image {
    width: 100%;
    border-radius: 20px;
    background: #f8fafc;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--border);
}

/* Problem Section */
.problem {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

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

.problem-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s ease-out;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-style: italic;
}

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

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.feature-icon {
    font-size: 2.5rem;
    width: fit-content;
    padding: 15px;
    display: inline-block;
    vertical-align: middle;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: inline-block;
    vertical-align: middle;
}

.feature-card .feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-card .feature-header .feature-icon {
    margin-bottom: 0;
    margin-right: 15px;
}

.feature-card .feature-header h3 {
    margin-bottom: 0;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    display: block;
    width: 100%;
    clear: both;
}

.feature-examples-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-example {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.example-input {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.example-output .step {
    padding: 8px 0;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 5px;
}

.research-note {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(153, 102, 255, 0.1) 100%);
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.research-note strong {
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 5px;
}

.feature-screenshot {
    width: 200px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: white;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: var(--text-secondary);
}

/* Screenshots */
.screenshots {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.screenshot-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.screenshot-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-light);
    display: block;
    text-align: center;
    padding: 20px;
}

.screenshot-item p {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: white;
}

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

.testimonial {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author {
    color: var(--text-secondary);
    font-weight: 600;
}

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

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    margin-bottom: 20px;
}

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

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

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.cta-feature {
    opacity: 0.9;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img.logo {
    background: white;
    padding: 5px;
    border-radius: 10px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-made {
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s ease-out;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card.featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    
    .feature-examples-container {
        grid-template-columns: 1fr;
    }
    
    .problem-grid,
    .steps,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /* Container padding adjustment */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation improvements */
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .nav .btn-small {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
    }
    
    .stat {
        flex: 1 1 calc(50% - 15px);
        min-width: 120px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card.featured {
        grid-column: span 1;
        padding: 20px 15px;
    }
    
    .feature-examples-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .research-note {
        padding: 12px;
        font-size: 0.85rem;
        margin: 15px -5px 0 -5px;
    }
    
    .feature-icon {
        font-size: 2rem;
        padding: 10px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* Problem section */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .problem-card {
        padding: 20px;
    }
    
    /* Screenshots */
    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .screenshot-item img {
        height: 300px;
        padding: 15px;
    }
    
    /* CTA section */
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .cta-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* How it works */
    .steps {
        gap: 30px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 20px;
    }
}