:root {
    --primary: #1e40af;
    --primary-dark: #1e1b4b;
    --accent: #3b82f6;
    --bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.88);
    --border: rgba(255, 255, 255, 0.55);
    --card-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.14);
    --card-shadow-strong: 0 28px 55px -24px rgba(30, 64, 175, 0.28);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text-main: #1e293b;
    --text-soft: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--site-font);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f8fafc 55%, #f3f7fb 100%);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: rgba(59, 130, 246, 0.18);
    color: var(--primary-dark);
}

.container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-intro {
    text-align: center;
    padding: 4rem 0 2.5rem;
}

.page-intro-title {
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-intro-text {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.site-footer {
    padding: 4rem 0;
    margin-top: 5rem;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

.footer-download {
    display: grid;
    justify-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-download-title {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 800;
}

/* From Uiverse.io by Yaya12085 */
.playstore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px solid #000;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 1);
    padding: 0.625rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    outline: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.playstore-button:hover {
    background-color: transparent;
    color: rgba(0, 0, 0, 1);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.icon {
    height: 1.5rem;
    width: 1.5rem;
    flex: 0 0 auto;
}

.texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.text-1 {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-2 {
    font-weight: 600;
    font-size: 1rem;
}

html[dir="rtl"] .texts {
    align-items: flex-start;
    text-align: right;
}

html[dir="ltr"] .texts {
    text-align: left;
}

#custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: multiply;
    transition: transform 0.15s ease-out, opacity 0.2s ease-out;
    transform: translate(-50%, -50%);
    opacity: 0.45;
}

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1120px);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 26px;
    z-index: 1000;
    padding: 0.8rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.12);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.25s ease;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(30, 64, 175, 0.08);
}

.lang-switch-btn,
.btn-main,
.submit-btn,
.btn {
    cursor: pointer;
}

.lang-switch-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.5rem 0.95rem;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.18);
}

.btn-main,
.submit-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-main:hover,
.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    filter: saturate(1.02);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .navbar {
        width: min(94%, 1120px);
        padding: 0.75rem 1.05rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.55rem 0.72rem;
    }

    .brand {
        font-size: 1.06rem;
    }
}

@media (min-width: 1440px) {
    .container {
        width: min(100%, 1240px);
        padding: 0 2rem;
    }

    .navbar {
        width: min(90%, 1180px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        top: 12px;
        width: min(94%, 1120px);
        padding: 0.7rem 0.9rem;
        border-radius: 22px;
    }

    .brand {
        gap: 10px;
        font-size: 1rem;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86%, 340px);
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        padding: 1.6rem;
        gap: 1rem;
        transition: right 0.35s ease;
        box-shadow: -18px 0 44px rgba(15, 23, 42, 0.12);
    }

    .nav-links a,
    .lang-switch-btn {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .lang-switch-btn {
        padding: 0.85rem 1rem;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #custom-cursor {
        display: none;
    }

    * {
        cursor: auto !important;
    }

    .container {
        padding: 0 1rem;
    }

    .page-intro {
        padding: 3.4rem 0 2rem;
    }

    .page-intro-title {
        font-size: clamp(2rem, 10vw, 2.9rem);
    }

    .page-intro-text {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading p {
        font-size: 0.98rem;
    }

    .site-footer {
        padding: 3rem 0;
        margin-top: 3.5rem;
    }
}
