:root {
    /* Modern Mediterranean Palette */
    --color-bg: #F5F1E8;
    /* Beige background */
    --color-text: #4A3B32;
    /* Dark brown text */
    --color-text-light: #8C7E72;
    --color-white: #FFFFFF;

    /* Theme Colors */
    --color-teal: #00A896;
    --color-red: #E75A5A;
    --color-yellow: #EBC944;
    --color-blue: #2D89EF;
    --color-green: #27AE60;
    --color-pink: #D67BB1;
    --color-purple: #9B59B6;
    --color-orange: #E67E22;

    --color-success: #27AE60;
    --color-error: #C0392B;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-accent: 'Crimson Text', Georgia, serif;
}

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

/* Base Body Styles */
body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Card Base Class */
.card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-bg);
}

.hero-title {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Responsive: larger hero title on desktop */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero {
        padding: 6rem 2rem;
    }
}

/* App Cards Section */
.app-cards {
    padding: 2rem 1rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.app-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.app-card-flag {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.app-card-title {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.app-card-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card--disabled {
    opacity: 0.7;
    cursor: default;
}

.card--disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Responsive: larger app cards section padding on desktop */
@media (min-width: 768px) {
    .app-cards {
        padding: 4rem 2rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--color-white);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    text-align: left;
    background-color: var(--color-bg);
}

.feature-card-title {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-teal);
    margin-bottom: 0.75rem;
}

.feature-card-description {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Desktop: 3-column grid for feature cards */
@media (min-width: 768px) {
    .how-it-works {
        padding: 4rem 2rem;
    }

    .how-it-works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 479px) {
    /* Ensure hero works on small screens */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    /* Section titles on mobile */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* App cards grid: ensure single column on very small screens */
    .app-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .app-card-flag {
        font-size: 3rem;
    }

    .app-card-title {
        font-size: 1.25rem;
    }

    /* How it works on mobile */
    .how-it-works-grid {
        padding: 0 0.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card-title {
        font-size: 1.1rem;
    }

    .feature-card-description {
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
