:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #007AFF;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    --background-color: #f5f5f7;
    --card-background: #ffffff;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
    --border-radius: 12px;
    --nav-height: 60px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #e5e5e5;
        --background-color: #000000;
        --card-background: #1c1c1e;
        --text-color: #f5f5f7;
        --text-secondary: #86868b;
    }
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%);
    margin-top: -var(--nav-height);
    padding-top: calc(var(--nav-height) + 40px);
    gap: 60px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    z-index: 1;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 8px solid var(--card-background);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.app-screenshot:hover {
    transform: rotate(0deg) scale(1.02);
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 300px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .btn-secondary {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

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

.card {
    background: var(--card-background);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--card-background);
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    footer {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legal Pages Specific */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    /* Added top padding for fixed nav */
}

.content {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    display: block;
    margin-bottom: 40px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

ul {
    list-style-type: none;
    margin-bottom: 16px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    position: relative;
}

li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.contact-email {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}