:root {
    --bg-color: #FCF3E6;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --btn-bg: #1A1A1A;
    --btn-text: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.4);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Mobile-first base font size */
    font-size: 16px;
    line-height: 1.5;
}

/* Subtle texture overlay for premium feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Container for constrained content */
.container {
    padding: 0 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Hero Section (Mobile First) --- */
.hero {
    min-height: 90vh;
    /* Slightly less on mobile for address bar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-logo {
    height: 40px;
    /* Smaller on mobile */
    width: auto;
    object-fit: contain;
}

.app-display {
    position: relative;
    width: 120px;
    /* Smaller on mobile */
    height: 120px;
    margin: 1rem auto 2.5rem;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    /* Adjusted visual curve */
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    transition: transform 0.1s ease-out;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(252, 243, 230, 0) 70%);
    filter: blur(20px);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

.hero-tagline {
    font-size: 2rem;
    /* Mobile */
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    /* Mobile */
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.cta-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1s forwards;
    width: 100%;
    /* Full width container on mobile */
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    width: 100%;
    /* Full width button on mobile */
    max-width: 320px;
    /* But don't get absurdly wide */
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-store-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* --- Features Section (Mobile First) --- */
.features {
    padding: 2rem 1.5rem 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.features-container {
    display: flex;
    flex-direction: column;
    /* Stack vertically on mobile */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
    /* Align left for readability on mobile list */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.app-info {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

.compatibility-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.7;
    padding: 0 1rem;
}

/* --- Footer --- */
footer {
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.2);
}

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

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* --- Animations --- */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* --- Desktop / Tablet Enhancements --- */
@media (min-width: 768px) {
    body {
        font-size: 18px;
        /* Larger base font */
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 2rem;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-logo {
        height: 60px;
    }

    .app-display {
        width: 160px;
        height: 160px;
        margin: 1rem auto 3rem;
    }

    .app-icon {
        border-radius: 38px;
    }

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

    .hero-description {
        font-size: 1.25rem;
        max-width: 600px;
        margin-bottom: 3rem;
    }

    .app-store-btn {
        width: auto;
        /* Auto width on desktop */
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .app-store-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    /* Features */
    .features {
        padding: 4rem 2rem 8rem;
    }

    .features-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-card {
        flex-direction: column;
        /* Icon top, text below */
        align-items: center;
        text-align: center;
        /* Center text again on desktop */
        padding: 2rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .compatibility-text {
        font-size: 0.9rem;
    }
}