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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

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

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap; /* keep label and title on one line */
}

.app-icon {
    font-size: 1.5rem;
}

/* Visual chip for file reference placed before brand title */
.app-file-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    color: #475569; /* slate-600 */
    background: #f1f5f9; /* slate-100 */
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Logo image placed before brand title */
.app-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #007AFF;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007AFF;
}

.download-btn {
    background: #007AFF;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #0056CC;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.app-store-badge {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.hero-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: #000;
    border-radius: 25px;
    padding: 10px;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #007AFF;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.demo-code {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'SF Mono', monospace;
    margin-bottom: 1rem;
}

.demo-title {
    font-size: 1rem;
    font-weight: 500;
}

.notebook-mockup {
    width: 300px;
    height: 200px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notebook-lines {
    height: 100%;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 24px,
        #e2e8f0 24px,
        #e2e8f0 26px
    );
}

.handwritten-note {
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    transform: rotate(-0.5deg);
}

.handwritten-note:nth-child(2) {
    transform: rotate(0.3deg);
}

.handwritten-note:nth-child(3) {
    transform: rotate(-0.2deg);
}

.handwritten-note:nth-child(4) {
    transform: rotate(0.1deg);
}

.code-highlight {
    background: #fef5e7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #d69e2e;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: #fff;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #007AFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.step p {
    color: #4a5568;
    line-height: 1.6;
}

/* Features */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.feature p {
    color: #4a5568;
    line-height: 1.6;
}

/* Perfect For */
.perfect-for {
    padding: 5rem 0;
    background: #fff;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.use-case {
    text-align: center;
    padding: 2rem;
}

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

.use-case h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.use-case p {
    color: #4a5568;
    line-height: 1.6;
}

/* Support */
.support {
    padding: 5rem 0;
    background: #f8fafc;
}

.support-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq h3, .contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
}

.faq-item {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
}

.contact {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #0056CC;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-name {
    color: white;
}

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

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

.footer-bottom p {
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-demo {
        flex-direction: column;
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .notebook-mockup {
        width: 250px;
        height: 150px;
        padding: 1rem;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
}

/* Ensure 4 steps appear in one row on larger screens */
@media (min-width: 900px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px; /* allow room for 4 columns plus gaps */
        gap: 1.5rem;
    }
}
