/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Typography */
    --font-primary: 'Noto Sans', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Kannada',
        'Noto Sans Malayalam', 'Noto Sans Devanagari', 'Noto Sans Bengali',
        'Noto Sans Gujarati', 'Noto Sans Gurmukhi', 'Noto Sans Oriya',
        'Noto Sans Arabic', sans-serif;

    /* Premium Color Palette */
    --color-bg-deep: #070b14;
    --color-bg-mid: #0d1525;
    --color-bg-surface: #131d33;
    --color-accent-gold: #f5a623;
    --color-accent-amber: #fbbf24;
    --color-accent-orange: #fb923c;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(16px);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow-gold: 0 0 30px rgba(245, 166, 35, 0.3);
    --shadow-glow-card: 0 0 20px rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-deep);
    min-height: 100vh;
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Floating particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 75%, rgba(255, 255, 255, 0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 55% 25%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 255, 255, 0.18) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.22) 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.15) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 95% 10%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: particleDrift 20s linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-30px);
    }
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

@media (max-width: 639px) {
    .container {
        padding: 0.8rem 0.6rem;
    }
}

/* ===================================
   HERO / HEADER SECTION
   =================================== */
.header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease;
}

/* Decorative glow orb inside header */
.header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 639px) {
    .header {
        margin-bottom: 1.2rem;
        padding: 1.2rem 0.8rem;
        border-radius: var(--radius-lg);
    }
}

.main-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #fb923c 60%, #f87171 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    animation: gradientText 4s ease infinite;
    position: relative;
    z-index: 2;
}

@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 639px) {
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
}

.subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto var(--spacing-md) auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 639px) {
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
}

/* ===================================
   PLAY STORE BADGE & CTA
   =================================== */
.badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease 0.5s both;
}

.play-store-badge {
    height: 52px;
    width: auto;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

.play-store-badge:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 20px rgba(251, 191, 36, 0.3));
}

@media (max-width: 639px) {
    .badge-container {
        margin-top: 0.6rem;
    }

    .play-store-badge {
        height: 44px;
    }
}

/* CTA Install Button */
.cta-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    position: relative;
    z-index: 2;
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.cta-install-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
}

.cta-install-btn:active {
    transform: translateY(-1px) scale(1.01);
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    }

    50% {
        box-shadow: 0 4px 30px rgba(34, 197, 94, 0.55), 0 0 60px rgba(34, 197, 94, 0.15);
    }
}

@media (max-width: 639px) {
    .cta-install-btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   TRUST BAR / STATS
   =================================== */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.2rem 1.5rem;
    margin-bottom: var(--spacing-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-item .trust-icon {
    font-size: 1.3rem;
}

.trust-item .trust-value {
    color: var(--color-accent-amber);
    font-weight: 700;
}

@media (max-width: 639px) {
    .trust-bar {
        gap: 0.8rem;
        padding: 0.8rem 0.6rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
    }

    .trust-item {
        font-size: 0.72rem;
        gap: 0.3rem;
    }

    .trust-item .trust-icon {
        font-size: 1rem;
    }
}

/* ===================================
   FEATURE BADGES
   =================================== */
.feature-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-pill);
    color: var(--color-accent-amber);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.feature-badge:hover {
    background: rgba(251, 191, 36, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

@media (max-width: 639px) {
    .feature-badges {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .feature-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.65rem;
    }
}

/* ===================================
   SECTION HEADER
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--color-text-muted);
}

@media (max-width: 639px) {
    .section-header {
        margin-bottom: 0.8rem;
    }

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

    .section-subtitle {
        font-size: 0.72rem;
    }
}

/* ===================================
   GRID CONTAINER
   =================================== */
.grid-container {
    display: grid;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@media (max-width: 639px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (min-width: 1280px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   APP CARDS — Glassmorphism
   =================================== */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: var(--spacing-md);
    aspect-ratio: 1 / 1;
    min-height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glass overlay on cards */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Shimmer swipe on hover */
.app-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.app-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Card hover effects */
.app-card:hover,
.app-card:focus {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-lg), var(--shadow-glow-card);
    border-color: rgba(255, 255, 255, 0.18);
    filter: brightness(1.1);
}

.app-card:active {
    transform: translateY(-2px) scale(1.01);
}

/* INSTALL badge on each card */
.install-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

@media (max-width: 639px) {
    .install-badge {
        top: 5px;
        right: 5px;
        padding: 2px 7px;
        font-size: 0.5rem;
    }
}

/* Card icon */
.card-icon {
    position: relative;
    z-index: 3;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Card content */
.card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-name-native {
    display: block;
    font-size: clamp(0.9rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
    word-wrap: break-word;
}

.app-name-english {
    display: block;
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.app-tagline {
    font-size: clamp(0.68rem, 1.2vw, 0.82rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile card styles */
@media (max-width: 639px) {
    .app-card {
        min-height: 110px;
        max-height: 125px;
        border-radius: var(--radius-md);
        padding: 0.6rem 0.5rem;
        width: 100%;
        height: 100%;
    }

    .card-icon {
        display: none;
    }

    .card-content {
        gap: 0.2rem;
    }

    .app-name-native {
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .app-name-english {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.15;
    }

    .app-tagline {
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.15;
        margin-top: 0.05rem;
    }
}

/* Tablet adjustments */
@media (min-width: 640px) and (max-width: 1023px) {
    .app-card {
        min-height: 140px;
        padding: 0.85rem;
    }

    .card-icon {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
    }

    .app-name-native {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .app-name-english {
        font-size: clamp(0.7rem, 1.4vw, 0.85rem);
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .app-card {
        min-height: 160px;
        padding: var(--spacing-md);
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-xs);
    }

    .app-name-native {
        font-size: 1.2rem;
    }

    .app-name-english {
        font-size: 0.9rem;
    }
}

/* ===================================
   PAGE CONTAINERS
   =================================== */
.main-page-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

@media (max-width: 639px) {
    .main-page-container {
        gap: 0.8rem;
    }
}

.hindi-page-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

@media (max-width: 639px) {
    .hindi-page-container {
        gap: 0.8rem;
    }
}

/* Languages Section */
.languages-section {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Regional Section */
.regional-section {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===================================
   FEATURED SECTION & CARD
   =================================== */
.featured-section {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.featured-card {
    min-height: 160px;
    max-height: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    aspect-ratio: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: visible;
}

.featured-card .card-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.featured-card .app-name-native {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.featured-card .app-name-english {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.featured-card .app-tagline {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

@media (max-width: 639px) {
    .featured-card {
        min-height: auto;
        max-height: none;
        max-width: 100%;
        padding: 1rem 0.8rem;
        aspect-ratio: auto;
    }

    .featured-card .card-icon {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 0.3rem;
    }

    .featured-card .app-name-native {
        font-size: 1.15rem;
    }

    .featured-card .app-name-english {
        font-size: 0.72rem;
    }

    .featured-card .app-tagline {
        font-size: 0.62rem;
    }

    .featured-card .install-badge {
        top: 6px;
        right: 6px;
    }
}

/* ===================================
   BACK BUTTON
   =================================== */
.back-button-container {
    margin-top: var(--spacing-md);
    animation: fadeIn 0.8s ease 0.3s both;
    position: relative;
    z-index: 2;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.back-button:hover,
.back-button:focus {
    background: var(--glass-highlight);
    border-color: var(--color-accent-amber);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

@media (max-width: 639px) {
    .back-button-container {
        margin-top: 0.5rem;
    }

    .back-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ===================================
   STICKY MOBILE INSTALL BAR
   =================================== */
.sticky-install-bar {
    display: none;
}

@media (max-width: 767px) {
    .sticky-install-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        padding: 0.7rem 1rem;
        background: rgba(7, 11, 20, 0.92);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        animation: slideUpBar 0.5s ease 1s both;
    }

    .sticky-install-bar .sticky-text {
        color: var(--color-text-primary);
        font-size: 0.8rem;
        font-weight: 600;
    }

    .sticky-install-bar .sticky-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.5rem 1.2rem;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 700;
        text-decoration: none;
        border-radius: var(--radius-pill);
        box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
        transition: all var(--transition-smooth);
    }

    .sticky-install-bar .sticky-btn:hover {
        transform: scale(1.05);
    }

    /* Add bottom padding to body so content isn't hidden behind sticky bar */
    body {
        padding-bottom: 60px;
    }
}

@keyframes slideUpBar {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeIn 1s ease 0.4s both;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 639px) {
    .footer {
        margin-top: 1.2rem;
        padding-top: 0.8rem;
    }

    .footer p {
        font-size: 0.72rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll-reveal classes (applied via JS) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.app-card {
    opacity: 0;
    animation: cardAppear 0.5s ease forwards;
}

.app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.app-card:nth-child(2) {
    animation-delay: 0.18s;
}

.app-card:nth-child(3) {
    animation-delay: 0.26s;
}

.app-card:nth-child(4) {
    animation-delay: 0.34s;
}

.app-card:nth-child(5) {
    animation-delay: 0.42s;
}

.app-card:nth-child(6) {
    animation-delay: 0.5s;
}

.app-card:nth-child(7) {
    animation-delay: 0.58s;
}

.app-card:nth-child(8) {
    animation-delay: 0.66s;
}

.app-card:nth-child(9) {
    animation-delay: 0.74s;
}

.app-card:nth-child(10) {
    animation-delay: 0.82s;
}

.app-card:nth-child(11) {
    animation-delay: 0.9s;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

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

/* ===================================
   SEARCH CONTAINER (if used)
   =================================== */
.search-container {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0 auto;
    animation: fadeIn 0.8s ease 0.3s both;
}

@media (max-width: 639px) {
    .search-container {
        margin: 0.25rem auto 0 auto;
    }
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: var(--font-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #ffffff;
    outline: none;
    transition: all var(--transition-smooth);
    backdrop-filter: var(--glass-blur);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-input:focus {
    background: var(--glass-highlight);
    border-color: var(--color-accent-amber);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    border: 1px dashed var(--glass-border);
}

@media (max-width: 639px) {
    .search-input {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        border-radius: 8px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.app-card:focus {
    outline: 3px solid var(--color-accent-amber);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    body::before,
    body::after {
        display: none;
    }

    .app-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .sticky-install-bar {
        display: none !important;
    }
}