/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007AFF;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1d1d1f;
    line-height: 1.1;
}

.hero-subtitle {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    color: #6e6e73;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1d1d1f;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 40px 20px 20px;
    height: 100%;
}

.status-bar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #1d1d1f;
    border-radius: 2px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.app-header h3 {
    font-size: 18px;
    color: #1d1d1f;
    font-weight: 600;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon {
    background: linear-gradient(135deg, #007AFF, #5856D6);
}

.document-icon {
    background: linear-gradient(135deg, #34C759, #30D158);
}

.history-icon {
    background: linear-gradient(135deg, #FF9500, #FF6B35);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.feature-description {
    font-size: 1rem;
    color: #6e6e73;
    line-height: 1.6;
}

/* Force 3-up layout on desktop */
.features-grid,
.audience-grid,
.coming-soon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Remove audience emoji icon spacing */
.audience-icon { display: none; }

/* Center items nicely with 3 columns */
.features-grid,
.audience-grid,
.coming-soon-grid { gap: 32px; }

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .audience-grid,
    .coming-soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .audience-grid,
    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-input {
        min-width: 100%;
    }
    
    .early-access-benefits {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }
    
    .phone-mockup:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.audience-item,
.coming-soon-item,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.nav-link:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav,
    .early-access,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .section-title {
        color: #1d1d1f !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
}

.logo-img { height: 36px; width: 36px; object-fit: contain; }

/* Chat demo inside phone */
.chat-window { display: flex; flex-direction: column; gap: 12px; height: 420px; overflow: hidden; padding-right: 4px; }
.chat-message { display: flex; align-items: flex-end; gap: 10px; }
.chat-message .avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); display:flex; align-items:center; justify-content:center; }
.chat-message .avatar img { width: 100%; height:100%; object-fit: cover; }
.chat-message .bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.chat-message.bot .bubble { background: #eef2ff; color: #111; border-top-left-radius: 6px; }
.chat-message.user { justify-content: flex-end; }
.chat-message.user .bubble { background: #007AFF; color: #fff; border-top-right-radius: 6px; }
.checklist { margin-top: 8px; padding-left: 18px; color: #333; }
.checklist li { margin-bottom: 4px; }
.typing { display:flex; gap:4px; padding: 6px 10px; background:#eef2ff; border-radius: 12px; width: 52px; margin-left: 38px; }
.typing span { width:6px; height:6px; background:#7c7cff; border-radius:50%; animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2){ animation-delay: .15s; }
.typing span:nth-child(3){ animation-delay: .3s; }
@keyframes bounce{ 0%,80%,100%{transform:scale(0.6); opacity:.6;} 40%{transform:scale(1); opacity:1;} }

/* Ensure chat fits in phone */
.phone-screen .app-interface { display:flex; flex-direction:column; gap: 16px; }
.phone-screen .app-header { margin-bottom: 8px; }
