:root {
    --primary: #7D8E7D; /* Sage Green */
    --primary-dark: #6A7A6A;
    --accent: #C98B7C; /* Muted Terracotta */
    --warm-mustard: #E2C391;
    --peach: #FAF0E6;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-xl: 6rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --phone-bg: #000;
    --app-bg: #F9F9F9;
}

h1, h2, h3, h4, .section-title {
    font-family: 'Playfair Display', serif;
}

.legal-page h1 { font-size: 2.5rem; margin-bottom: 2rem; color: var(--primary); }
.legal-page h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); margin-top: 2rem; }
.legal-page p { margin-bottom: 1rem; line-height: 1.6; color: var(--text-muted); }
.last-updated { font-style: italic; color: var(--text-light); margin-bottom: 3rem; opacity: 0.7; }

.content-narrow { max-width: 800px; margin: 0 auto; }
.py-xl { padding-top: 6rem; padding-bottom: 6rem; }
.py-lg { padding-top: 3rem; padding-bottom: 3rem; }
.border-top { border-top: 1px solid var(--border-color); }

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-sm { margin-bottom: 1rem; }
.mb-xl { margin-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 12px;
}

.logo-img-small {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .nav-links a:not(.btn) {
        display: none;
    }
}

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--peach) 0%, #fff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #1d1d1f;
}

.hero-content .accent {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 520px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.feature-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Security */
.security {
    padding: 8rem 0;
    background-color: #f0f2f0;
}

.security-container {
    max-width: 800px;
    text-align: center;
}

.security-list {
    list-style: none;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.security-list li {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* CTA */
.cta-banner {
    padding: 8rem 0;
    background-color: var(--primary);
    color: white;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-banner .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta-banner .btn-primary:hover {
    background-color: var(--peach);
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.store-badge {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.store-badge:hover {
    opacity: 1;
}

/* App Interface Display (Naked UI) */
.app-interface-display {
    display: block;
    width: 280px; /* Reduced base width slightly for a tighter, refined look */
    aspect-ratio: 1000 / 1514;
    border-radius: 24px; /* More subtle corner, like a modern card */
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(0,0,0,0.03); /* Extremely subtle border to define edge */
    margin: 0 auto;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    object-fit: cover;
    object-position: top;
    background: #fff;
}

/* Redefined Sections */
.hero {
    padding: 8rem 0 4rem;
}

.hero-image {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.hero-app-screen {
    transform: rotateY(-8deg) rotateX(4deg);
}

.hero-image:hover .hero-app-screen {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.preview-image-stack {
    position: relative;
    height: 600px; /* Slightly reduced height as there are no top/bottom bezels */
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-1 {
    transform: translateX(-40px) translateY(-10px) rotate(-3deg);
    z-index: 2;
}

.phone-2 {
    transform: translateX(60px) translateY(20px) rotate(4deg);
    z-index: 1;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: 6rem 0 3rem;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-app-screen {
        transform: scale(0.9);
        width: 100%;
        max-width: 280px; /* Limit max size on mobile */
    }

    .nav-links .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .preview-image-stack {
        height: auto;
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .security-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phone-1, .phone-2 {
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
