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

:root {
    /* Colors */
    --primary-green: #8db596;
    --text-dark: #000000;
    --text-gray: #666666;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border-light: #e5e5e5;
    
    /* Shadows */
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

p {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    padding: var(--space-xxl) 0 var(--space-xl);
    text-align: center;
}

/* Atlas Logo */
.atlas-logo {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.app-store-button {
    display: inline-block;
    margin-top: var(--space-sm);
}

.app-store-button img {
    height: 60px;
    width: auto;
}

/* Features Section */
.features {
    padding: 0 0 var(--space-xxl);
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xxl);
}

.feature.reverse {
    direction: rtl;
}

.feature.reverse .feature-content {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.feature-image {
    direction: ltr;
}

/* Screenshot Placeholders */
.screenshot-placeholder {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.screenshot-placeholder p {
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Chat Comparison */
.chat-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    width: 100%;
    align-items: center;
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-gray);
    padding: 0 var(--space-sm);
}

.chat-example {
    text-align: center;
}

.chat-example h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-gray);
}

.chat-example img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Habit Screenshots */
.habit-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.habit-main,
.habit-heatmap {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Feature Screenshots */
.feature-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Goals and Dreams Screenshots */
.goals-dreams-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.goals-screenshot,
.dreams-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Insights Screenshots */
.insights-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.insights-quote,
.insights-dreams {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Letters Screenshots */
.letters-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.letter-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Comparison Table */
.comparison {
    padding: var(--space-xxl) 0;
    background-color: var(--bg-light);
}

.comparison h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.comparison-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: 1.125rem;
}

.comparison-note {
    text-align: center;
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    font-style: italic;
}

.comparison-table {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 800px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-light);
}

th, td {
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    background-color: var(--bg-light);
}

th.highlight {
    background-color: var(--primary-green);
    color: white;
}

td {
    font-size: 1.25rem;
}

td.highlight {
    background-color: rgba(141, 181, 150, 0.1);
    font-weight: 500;
}

td:first-child {
    text-align: left;
    font-size: 1rem;
    color: var(--text-gray);
}

tr:last-child td {
    border-bottom: none;
}

/* Final CTA */
.final-cta {
    padding: var(--space-xxl) 0;
    text-align: center;
}

.final-cta h2 {
    margin-bottom: var(--space-sm);
}

.final-cta p {
    margin-bottom: var(--space-lg);
}

/* Handle features without descriptions */
.feature-content h2:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer p {
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
}

.footer a {
    color: var(--text-gray);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .feature {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature.reverse {
        direction: ltr;
    }
    
    .feature-image {
        order: 2;
    }
    
    .feature-content {
        order: 1;
    }
    
    .screenshot-placeholder {
        min-height: 250px;
    }
    
    .insight-cards-preview {
        flex-wrap: wrap;
    }
    
    /* Keep chat comparison side by side on mobile with smaller gap */
    .chat-comparison {
        grid-template-columns: 1fr auto 1fr;
        gap: var(--space-xs);
    }
    
    .vs-divider {
        font-size: 1rem;
        padding: 0 var(--space-xs);
    }
    
    /* Keep screenshots side by side on mobile with smaller gap */
    .habit-screenshots,
    .goals-dreams-screenshots,
    .insights-screenshots,
    .letters-screenshots {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xs);
    }
    
    /* Add padding to container for better mobile spacing */
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* Smaller font size for mobile chat examples */
    .chat-example h4 {
        font-size: 0.875rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: var(--space-sm);
    }
    
    td {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xxl: 4rem;
        --space-xl: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .app-store-button img {
        height: 50px;
    }
    
    .atlas-logo {
        width: 100px;
        height: 100px;
    }
    
    /* Smaller font sizes for feature headings on small screens */
    .feature-content h2 {
        font-size: 1.5rem;
    }
    
    /* Ensure images don't get too small on very small screens */
    .habit-screenshots img,
    .goals-dreams-screenshots img,
    .insights-screenshots img,
    .letters-screenshots img,
    .chat-example img {
        min-height: 150px;
        object-fit: cover;
        object-position: top;
    }
    
    /* Adjust comparison table for very small screens */
    .comparison-table {
        font-size: 0.75rem;
    }
    
    td {
        font-size: 0.875rem;
    }
    
    /* Reduce padding for very small screens */
    th, td {
        padding: var(--space-xs);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}