:root {
    --primary-color: #007AFF;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --background: #1A1A1A;
    --surface: #2A2A2A;
    --border: #3A3A3A;
    --muted: #8A8A8A;
    --success: #34C759;
    --accent: #FF7DA6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: radial-gradient(1000px 600px at -10% -10%, rgba(255,255,255,0.04), transparent),
                radial-gradient(800px 500px at 110% -20%, rgba(255,255,255,0.03), transparent),
                var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; }
.logo { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.version-badge { color: var(--muted); font-size: 12px; border: 1px solid var(--border); padding: 2px 6px; border-radius: 8px; margin-left: 8px; }

.header-nav { display: flex; gap: 20px; }
.header-nav a { color: var(--text-secondary); font-size: 14px; }
.header-nav a:hover { color: var(--text-primary); text-decoration: none; }
.header-cta { padding: 8px 12px; border-radius: 10px; background: #111; border: 1px solid var(--border); color: var(--text-primary) !important; }
.header-cta:hover { border-color: rgba(255,255,255,0.16); }

main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero-title { font-size: 46px; line-height: 1.1; font-weight: 800; margin-bottom: 14px; }
.hero-subtitle { color: var(--text-secondary); font-size: 18px; margin-bottom: 28px; }
.highlight { background: linear-gradient(180deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.08) 60%); padding: 0 4px; border-radius: 6px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.hero-visual { display: flex; justify-content: center; }
.device-mock {
    width: 320px; height: 640px; border-radius: 36px; background: linear-gradient(180deg, #2A2A2A, #1F1F1F);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
}
.device-mock::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.device-mock::after { content: ''; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: 140px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); }

/* Store buttons */
.store-buttons { display: flex; gap: 14px; align-items: center; }
.store-button { display: inline-flex; flex-direction: column; justify-content: center; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); background: #111; color: var(--text-primary); min-width: 160px; transition: transform .08s ease, border-color .2s ease, background .2s ease; cursor: pointer; }
.store-button .store-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; }
.store-button .store-name { font-size: 16px; font-weight: 700; }
.store-button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.16); }
.store-button:active { transform: translateY(0); }

.store-button.ios.active { background: linear-gradient(180deg, #0B0B0B, #171717); border-color: rgba(255,255,255,0.18); box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.04); }

.store-button.android.disabled { background: transparent; color: var(--muted); border-style: dashed; cursor: not-allowed; }
.store-button.android.disabled .store-name { color: var(--muted); }

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h4 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 24px;
    color: var(--text-primary);
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 12px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.legal-links ul {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.legal-links li {
    font-size: 18px;
}

.contact {
    text-align: center;
}

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Features */
.features { padding-top: 12px; }
.bullets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.bullet { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.bullet h3 { font-size: 18px; margin-bottom: 8px; }
.bullet p { margin: 0; }

/* Bottom CTA */
.cta-bottom { display: flex; justify-content: center; padding: 40px 0 24px; }

/* Legal pages specific styles */
.legal-header {
    margin-bottom: 40px;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.legal-content {
    max-width: 700px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section ul {
    list-style: disc;
    padding-left: 30px;
    margin-top: 12px;
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .store-buttons { flex-direction: column; align-items: stretch; }
    .device-mock { width: 100%; max-width: 320px; margin: 0 auto; }
    
    .legal-links ul {
        flex-direction: column;
        gap: 15px;
    }
    .bullets { grid-template-columns: 1fr; }
}