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

:root {
    --primary-color: #1D1D1F;
    --text-dark: #1D1D1F;
    --text-light: #5E5E62;
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --border-color: #D2D2D7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* App brand colors */
    --nutrie-color: #667eea;
    --faste-color: #2DD4BF;
    --rewarde-color: #FBBF24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Apps Grid */
.apps-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 28px 32px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.app-card-image {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.app-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-card .app-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 44px;
}

.app-card .app-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.app-card .app-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-app-store {
    background: var(--text-dark);
    color: white;
}

.btn-app-store:hover {
    background: #333;
}

.btn-website {
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-website:hover {
    background: var(--bg-light);
}

.btn-coming-soon {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
    cursor: default;
}

/* Color accents per app */
.app-card.nutrie .app-card-image {
    background: linear-gradient(135deg, #667eea20, #764ba220);
}

.app-card.faste .app-card-image {
    background: linear-gradient(135deg, #2DD4BF20, #0D947820);
}

.app-card.rewarde .app-card-image {
    background: linear-gradient(135deg, #FBBF2420, #F59E0B20);
}

.app-card.cutie .app-card-image {
    background: linear-gradient(135deg, #FF69B420, #FF149320);
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Legal pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.legal-content .last-updated {
    color: var(--text-light);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--nutrie-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Support page */
.support-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.support-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.support-content .support-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.support-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.contact-card a {
    color: var(--nutrie-color);
    font-weight: 500;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 50px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}
