:root {
    color-scheme: light dark;
    --primary-color: #4F46E5;
    --secondary-color: #0891B2;
    --accent-color: #22D3EE;
    --background-color: #0B1020;
    --surface-color: #FFFFFF;
    --surface-2: #F5F7FF;
    --text-primary-color: #0F172A;
    --text-secondary-color: #64748B;
    --header-bg: rgba(7, 10, 22, 0.6);
    --header-border: rgba(255, 255, 255, 0.08);
    --header-text: #E6EEF8;
    --header-pill: rgba(124, 58, 237, 0.12);
    --hero-gradient: radial-gradient(1200px circle at 15% -10%, rgba(79, 70, 229, 0.45), transparent 55%),
        radial-gradient(900px circle at 90% 10%, rgba(34, 211, 238, 0.35), transparent 50%),
        linear-gradient(135deg, #101834, #0B1020 55%, #0C1328);
    --glass: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(255, 255, 255, 0.28);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.35);
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.15);
}

@media (prefers-color-scheme: light) {
    :root {
        --background-color: #F8FAFF;
        --surface-color: #FFFFFF;
        --surface-2: #F1F5FF;
        --text-primary-color: #0F172A;
        --text-secondary-color: #475569;
        --header-bg: rgba(255, 255, 255, 0.78);
        --header-border: rgba(15, 23, 42, 0.08);
        --header-text: #0F172A;
        --header-pill: rgba(79, 70, 229, 0.1);
        --hero-gradient: radial-gradient(1200px circle at 10% -10%, rgba(79, 70, 229, 0.22), transparent 55%),
            radial-gradient(900px circle at 90% 10%, rgba(34, 211, 238, 0.2), transparent 50%),
            linear-gradient(135deg, #F5F8FF, #EDF2FF 60%, #F8FAFF);
        --glass: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(79, 70, 229, 0.14);
        --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.12);
        --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
    }
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #0B1020 0%, #0E1730 48%, #0B1020 100%);
    color: var(--text-primary-color);
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 90px;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.35;
    animation: floatBlob 12s ease-in-out infinite;
}

body::before {
    top: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.65), transparent 70%);
}

body::after {
    bottom: -160px;
    left: -140px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 70%);
    animation-delay: 1.4s;
}

@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 50%, #F8FAFF 100%);
        color: var(--text-primary-color);
    }

    body::before {
        background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
    }

    body::after {
        background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern header (match 404) */
.site-header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 18px;
    animation: slideInDown 0.8s ease-in-out;
}

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

    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1100px, 100%);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.3);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand svg {
    height: 34px;
    /* animation: floatBlob 8s ease-in-out infinite; */
}

.brand svg path {
    fill: var(--primary-color) !important;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--header-pill);
    border: 1px solid var(--header-border);
    transition: transform 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(6, 182, 212, 0.55);
}

.nav-link:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.6);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 18px;
    }

    .site-nav {
        justify-content: center;
    }
}

.hero {
    text-align: center;
    padding: 100px 0;
    background: var(--hero-gradient);
    color: #F8FAFC;
    animation: zoomIn 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%);
    transform: rotate(12deg);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -50% -25%;
    background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
    transform: rotate(-10deg);
    pointer-events: none;
    animation: pulseGlow 7.5s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    color: rgba(248, 250, 252, 0.88);
}

@media (prefers-color-scheme: light) {
    .hero {
        color: var(--text-primary-color);
    }

    .hero p {
        color: var(--text-secondary-color);
    }
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    size: 100px;
}

img {
    width: 100%;
    height: auto;

}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--surface-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-google-play img {
    height: 90px;
    align-items: center;
    justify-content: center;
    display: flex;


}

.btn-app-store img {
    height: 70px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.about {
    padding: 80px 0;
    text-align: center;
    animation: slideInUp 1s ease-in-out;
    color: #0F172A;
    background: var(--surface-2);
}

/* Modern app download section */
.hero-content {
    max-width: 740px;
    margin: 0 auto 26px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.app-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px 18px;
    text-align: right;
    backdrop-filter: blur(12px);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 255, 255, 0.45);
}

.app-card::after {
    content: '';
    position: absolute;
    inset: -40% 0 auto 0;
    height: 120%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-120%);
    transition: transform 700ms ease;
}

.app-card:hover::after {
    transform: translateX(120%);
}

.app-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.app-card__header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: var(--surface-color);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.app-card__desc {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

@media (prefers-color-scheme: light) {
    .chip {
        background: rgba(79, 70, 229, 0.12);
        border-color: rgba(79, 70, 229, 0.24);
        color: var(--text-primary-color);
    }

    .app-card__desc {
        color: var(--text-secondary-color);
    }
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
}

.store-badge img {
    width: auto;
    height: 64px;
    max-width: 240px;
}

@media (max-width: 420px) {
    .store-badge img {
        height: 56px;
    }
}

/* Scroll reveal (JS toggles .is-visible) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

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

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

    to {
        transform: translateY(0);
    }
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

footer {
    background-color: var(--surface-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

.footer-credit {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary-color);
    font-weight: 600;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.12), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--text-primary-color);
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.github-link:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 16px 30px rgba(34, 211, 238, 0.18);
}

.github-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    border-radius: 50%;
    padding: 4px;
}

.github-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.github-name {
    font-weight: 700;
}

.privacy-policy-container {
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
}

.lang-switcher {
    text-align: right;
    margin-bottom: 20px;
}

.lang-switcher button {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lang-switcher button:hover {
    background-color: var(--accent-color);
}

@keyframes floatBlob {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-18px) translateX(12px);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}