:root {
    --primary-color: #004d9f;
    --secondary-color: #4643e6;
    --text-color: #333333;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --container-width: min(1200px, 95%);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: clamp(2rem, 8vh, 4rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: min(800px, 90%);
    margin: 0 auto;
}

.hero__logo {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    margin-bottom: var(--spacing-unit);
}

.hero__title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding: 0 var(--spacing-unit);
    opacity: 0.9;
}

.hero__cta {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    box-shadow: var(--card-shadow);
}

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

/* Apps Showcase */
.apps-showcase {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vh, 3rem);
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    padding: 0 calc(var(--spacing-unit) * 0.5);
}

.app-card {
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
}

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

.app-card__icon {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 28%;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-card__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--primary-color);
    font-weight: 700;
}

.app-card__description {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0 calc(var(--spacing-unit) * 0.5);
}

.app-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.app-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1.25rem, 3vw, 1.75rem);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-card__button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.app-card__button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.app-card__button--secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--card-background);
    padding: clamp(1.5rem, 4vh, 2rem) 0;
    text-align: center;
    margin-top: clamp(2rem, 5vh, 3rem);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .app-card:hover {
        transform: none;
    }
    
    .app-card__button:hover {
        transform: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero__cta,
    .app-card,
    .app-card__button {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none;
        color: black;
    }
    
    .hero__cta,
    .app-card__button {
        display: none;
    }
}
