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

:root {
    --primary-color: #8B7355;
    --primary-dark: #6B5745;
    --text-dark: #2C2416;
    --text-light: #6B5D54;
    --bg-light: #FAF8F5;
    --bg-card: #FFFFFF;
    --border-color: #E5DDD5;
    --accent-green: #7A9A65;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --primary-color: #A68B6F;
    --primary-dark: #8B7355;
    --text-dark: #F5F2ED;
    --text-light: #C5B8AE;
    --bg-light: #1A1612;
    --bg-card: #252118;
    --border-color: #3A3328;
    --accent-green: #8FAA75;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Dark mode specific styles */
[data-theme="dark"] .nav-cta {
    background: var(--primary-color);
    color: var(--bg-card);
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: var(--bg-card);
}

[data-theme="dark"] .cta .btn-primary {
    background: var(--text-dark);
    color: var(--bg-card);
}

[data-theme="dark"] .nav-cta:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background: var(--bg-card);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-light);
}

.theme-toggle svg {
    transition: opacity 0.3s;
}

.sun-icon {
    position: absolute;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background: var(--text-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.apple-logo {
    width: 20px;
    height: 20px;
}

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

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s;
}

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

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

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* App Showcase */
.app-showcase {
    padding: 80px 0;
    background: var(--bg-card);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    text-align: center;
}

.showcase-screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.showcase-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.showcase-item p {
    color: var(--text-light);
    max-width: 280px;
    margin: 0 auto;
}

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

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

.step {
    text-align: center;
}

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

.step h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* Philosophy Section */
.philosophy {
    padding: 80px 0;
    background: var(--bg-card);
}

.philosophy-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-text {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.philosophy-subtext {
    font-size: 18px;
    color: var(--text-light);
}

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

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-item {
    text-align: center;
}

.privacy-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.privacy-item h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.privacy-item p {
    color: var(--text-light);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.privacy-statement {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

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

.tech-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tech-item span {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 36px;
    margin-bottom: 16px;
}

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

.cta .btn-primary {
    background: var(--bg-card);
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 400px;
        margin-top: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .philosophy-text {
        font-size: 20px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .showcase-screenshot {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features,
    .app-showcase,
    .how-it-works,
    .philosophy,
    .privacy,
    .technical,
    .cta {
        padding: 60px 0;
    }
    
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .privacy-icon {
        font-size: 36px;
    }
    
    .privacy-statement {
        font-size: 16px;
        padding-top: 32px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .nav-cta {
        padding: 6px 16px;
        font-size: 14px;
    }
}