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

:root {
    /* Colors using HSL */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 0%);
    --secondary-bg: hsl(240, 20%, 97%);
    --card: hsl(0, 0%, 100%);
    --primary: hsl(211, 100%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    --success: hsl(142, 59%, 49%);
    --muted-foreground: hsl(220, 5%, 57%);
    --border: hsl(240, 20%, 90%);

    /* Feature icon colors */
    --color-green: hsl(142, 59%, 49%);
    --color-orange: hsl(28, 100%, 50%);
    --color-blue: hsl(211, 100%, 50%);
    --color-red: hsl(4, 100%, 60%);
    --color-purple: hsl(281, 60%, 59%);
    --color-pink: hsl(348, 100%, 60%);

    /* Shadows */
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.12);

    /* Border radius */
    --radius: 0.75rem;
}

body {
    font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(240, 20%, 97%));
    padding: 5rem 0;
    text-align: center;
}

.language-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lang-btn {
    min-width: 60px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    border-radius: calc(var(--radius) - 4px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--secondary-bg);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.app-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-elevated);
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    height: 3.5rem;
    text-decoration: none;
}

.download-btn:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

.download-btn-ios {
    background: var(--foreground);
    color: var(--background);
}

.download-btn-ios:hover {
    background: hsl(0, 0%, 10%);
}

.download-btn-android {
    background: var(--primary);
    color: var(--primary-foreground);
}

.download-btn-android:hover {
    background: hsl(211, 100%, 45%);
}

.download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.download-text {
    text-align: left;
}

.download-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-platform {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--background);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--foreground);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-elevated);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon-green {
    background: hsla(142, 59%, 49%, 0.1);
    color: var(--color-green);
}

.feature-icon-orange {
    background: hsla(28, 100%, 50%, 0.1);
    color: var(--color-orange);
}

.feature-icon-blue {
    background: hsla(211, 100%, 50%, 0.1);
    color: var(--color-blue);
}

.feature-icon-red {
    background: hsla(4, 100%, 60%, 0.1);
    color: var(--color-red);
}

.feature-icon-purple {
    background: hsla(281, 60%, 59%, 0.1);
    color: var(--color-purple);
}

.feature-icon-pink {
    background: hsla(348, 100%, 60%, 0.1);
    color: var(--color-pink);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--foreground);
    color: var(--background);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    max-width: 400px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.toast-message {
    font-size: 0.875rem;
    opacity: 0.9;
}

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

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

    .section-title {
        font-size: 1.875rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
