/* ============================================
   YouCare Download Landing Page — Design System
   ============================================ */

:root {
    /* Brand Colors */
    --youcare-red: #B71E33;
    --youcare-red-light: #D4263E;
    --youcare-red-dark: #8E1728;
    --youcare-dark: #2E2A26;
    --youcare-gray: #6B7280;

    /* Neutral Palette */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(183, 30, 51, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Page Layout
   ============================================ */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    background: var(--white);
    padding: 60px 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

/* Logo Full (YOU + CARE + icon) */
.logo-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-you {
    color: var(--youcare-red);
}

.logo-care {
    color: var(--youcare-dark);
}

.logo-icon-inline {
    width: clamp(48px, 8vw, 80px);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(183, 30, 51, 0.2));
    transition: transform var(--transition-smooth);
}

.logo-icon-inline:hover {
    transform: scale(1.05) rotate(-3deg);
}

/* Hero Title */
.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--gray-700);
    letter-spacing: -0.01em;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   Download Section
   ============================================ */

.download-section {
    background: var(--gray-50);
    padding: 60px 24px 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
}

.download-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px 56px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--youcare-red), var(--youcare-red-light), var(--youcare-red));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

.download-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* App Icon */
.app-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.app-icon-container {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    padding: 16px;
}

.app-icon-container:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   Store Buttons
   ============================================ */

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-smooth);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.4s forwards;
}

.store-btn:nth-child(2) {
    animation-delay: 0.55s;
}

.store-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    min-width: 180px;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.store-btn:hover .store-btn-content {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-700);
}

.store-btn:active .store-btn-content {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn-label {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.store-btn-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.store-platform {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.store-btn:hover .store-platform {
    color: var(--youcare-red);
}

/* Google Play button adjustment */
.store-btn-google .store-btn-content {
    background: var(--gray-800);
}

.google-play-icon {
    width: 26px;
    height: 26px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--gray-50);
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.footer p {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Intersection observer animation class */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
    .hero {
        padding: 48px 20px 64px;
        min-height: 35vh;
    }

    .logo-full {
        gap: 8px;
        margin-bottom: 24px;
    }

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

    .download-section {
        padding: 40px 16px 60px;
    }

    .download-card {
        padding: 36px 24px 44px;
        border-radius: var(--radius-lg);
    }

    .download-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .app-icon-container {
        width: 100px;
        height: 100px;
        padding: 14px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .store-btn-content {
        min-width: 200px;
        padding: 14px 28px;
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 2rem;
    }

    .logo-icon-inline {
        width: 40px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
