:root {
    /* Light Theme (Default) */
    --bg: #F0F3F2;
    --surface: #FAFBFB;
    --surface-high: #E6EBE9;
    --text: #171B1A;
    --muted: #7B8481;
    --outline: #DDE4E1;
    --track: #E0E6E4;
    --accent: #15785A;
    --accent-text: #FFFFFF;
    --accent-soft: #D6E8E1;
    --accent-soft-text: #0D5B43;
    --error: #C0392B;
    
    --font-family: 'Inter', 'Roboto', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Theme */
        --bg: #101413;
        --surface: #191E1C;
        --surface-high: #232A27;
        --text: #EDF1EF;
        --muted: #8B9591;
        --outline: #2A312E;
        --track: #2A312E;
        --accent: #34A67C;
        --accent-text: #052018;
        --accent-soft: #182C25;
        --accent-soft-text: #7FD3B4;
        --error: #E5705F;
    }
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--bg);
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 0 5%;
    gap: 4rem;
}

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

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    height: 48px;
    background-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 700;
    border-radius: 24px; /* Pill shape */
    font-size: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* The "Flying" Hero Image Styling */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-image img {
    max-width: 320px;
    height: auto;
    border-radius: 26px; /* Matches app card radii */
    /* Add a subtle outline to the device frame */
    border: 4px solid var(--surface-high);
    
    /* The requested "flying" perspective */
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(-10px);
    box-shadow: -20px 30px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.features {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px; /* 14-16dp grid per spec */
}

.card {
    background-color: var(--surface);
    border-radius: 26px; /* 26-28dp per spec */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Level 1 soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--accent-soft);
    color: var(--accent-soft-text);
    border-radius: 14px; /* Soft square */
    font-size: 24px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    font-size: 15px;
    color: var(--muted);
}

/* Privacy Policy Layout */
.page-container {
    padding: 40px 5% 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-container h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.content-block {
    background-color: var(--surface);
    border-radius: 26px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-block h2 {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 32px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p, .content-block ul {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 15px;
}

.content-block ul {
    padding-left: 2rem;
}

.content-block li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

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

@media (prefers-color-scheme: dark) {
    .card, .content-block {
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .hero-image img {
        box-shadow: -20px 30px 40px rgba(0, 0, 0, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}
