:root {
    --primary-sand: #C4A77D;
    --secondary-brown: #8B7355;
    --bg-offwhite: #FAF6F0;
    --text-dark: #3D3D3D;
    --success-green: #6B8E23;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-offwhite);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: var(--secondary-brown);
    margin-bottom: 0.5em;
}

a {
    color: var(--secondary-brown);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-sand);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    background-image: linear-gradient(135deg, #C4A77D 0%, #8B7355 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.app-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    background: white;
    border-radius: 20px;
    padding: 5px;
    box-shadow: var(--shadow-md);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-download {
    display: inline-block;
    background-color: var(--text-dark);
    /* Contrast */
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    background-color: #222;
}

.hero-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.feature-graphic {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Features */
.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--secondary-brown);
}

/* Gallery */
.gallery {
    background-color: #EBE5DB;
    padding: 60px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.slide img {
    height: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Responsive & Desktop Gallery Adjustment */
@media (min-width: 900px) {
    .carousel {
        display: flex;
        flex-wrap: nowrap;
        /* Keep in one row if they fit */
        justify-content: center;
        /* Center them */
        overflow-x: visible;
        scroll-snap-type: none;
    }

    /* Ensure screenshots fit if screen is slightly smaller */
    .slide img {
        max-width: 100%;
        height: 500px;
        /* Maintain fixed height */
    }
}


/* Policy Page */
.mini-hero {
    background-color: var(--secondary-brown);
    color: var(--white);
    padding: 20px 0;
}

.mini-hero h1 {
    color: var(--white);
    margin: 0;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.policy-content {
    background: var(--white);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.policy-content h2 {
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer nav {
    margin-top: 20px;
}

footer nav a {
    color: #ccc;
    margin: 0 10px;
}

footer nav a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image-container {
        max-width: 100%;
    }

    .slide img {
        height: 350px;
    }
}