/* =========================================================
   RANIXON - MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   RESET & BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #111827;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   RTL SUPPORT
   ========================================================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
}

html[dir="rtl"] .container {
    text-align: right;
}

html[dir="rtl"] .nav-links {
    text-align: right;
}

html[dir="rtl"] .hero-btns {
    justify-content: flex-end;
}

html[dir="rtl"] .hero-stats {
    justify-content: flex-end;
}

html[dir="rtl"] .flow-diagram {
    flex-direction: row-reverse;
}


/* =========================================================
   LANGUAGE VISIBILITY
   ========================================================= */

/*
   فقط زبان‌های غیر فعال مخفی می‌شوند.
   این روش عمداً با نسخه قبلی فرق دارد:
   دیگر همه عناصر ابتدا display:none نمی‌شوند.
*/

body.lang-en .lang-tr,
body.lang-en .lang-fa {
    display: none !important;
}

body.lang-tr .lang-en,
body.lang-tr .lang-fa {
    display: none !important;
}

body.lang-fa .lang-en,
body.lang-fa .lang-tr {
    display: none !important;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.navbar {
    background: #0B1220;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #0B1220;
    flex-shrink: 0;
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text small {
    font-weight: 300;
    font-size: 0.65rem;
    opacity: 0.7;
    display: block;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    border-bottom-color: #1769FF;
}


/* =========================================================
   LANGUAGE SELECTOR
   ========================================================= */

.lang-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 8px;
    border-radius: 40px;
    margin: 0 8px;
}

.lang-selector button {
    display: inline-block;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.lang-selector button.active-lang {
    background: #1769FF;
    color: white;
}

.lang-selector button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   NAV CTA
   ========================================================= */

.nav-cta {
    background: #1769FF;
    padding: 8px 20px;
    border-radius: 40px;
    color: white !important;
    font-weight: 600;
    border-bottom: none !important;
    transition: 0.2s;
    font-size: 0.85rem;
}

.nav-cta:hover {
    background: #1a5cdb;
    transform: scale(1.02);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: 0.2s;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: #0B1220;
    color: white;
    padding: 60px 0 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(23, 105, 255, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 50%;
    min-width: 280px;
}

.hero-content .badge {
    background: rgba(23, 105, 255, 0.2);
    color: #16D9FF;
    padding: 4px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(22, 217, 255, 0.15);
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 .highlight {
    background: linear-gradient(
        135deg,
        #1769FF,
        #16D9FF
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #b0c7e7;
    margin: 24px 0 32px;
    max-width: 500px;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #1769FF;
    color: white;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a5cdb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   HERO STATS
   ========================================================= */

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stats div {
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}

.hero-stats span {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: #9bb1d4;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    flex: 1 1 40%;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

.hero-visual .device-show {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.device-chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 22px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e9f5;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-chip i {
    color: #16D9FF;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0B1220;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-sub {
    color: #4b5563;
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 40px;
}


/* =========================================================
   DARK SECTION
   ========================================================= */

.section-dark {
    background: #0B1220;
    color: white;
    padding: 60px 0;
}

.section-dark .section-title {
    color: white;
}

.section-dark .section-sub {
    color: #b0c7e7;
}


/* =========================================================
   GENERAL CARD GRID
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 1fr)
    );
    gap: 28px;
    margin: 30px 0;
}


/* =========================================================
   GENERAL CARD
   ========================================================= */

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    border-color: #1769FF;
}

.card .icon-lg {
    font-size: 2.2rem;
    color: #1769FF;
    margin-bottom: 12px;
}

.card h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.card p {
    color: #4b5563;
    font-size: 0.95rem;
}


/* =========================================================
   PRODUCT CARDS
   ========================================================= */

.product-card-dark {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.2s;
}

.product-card-dark:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: #1769FF;
}

.product-card-dark .model {
    font-weight: 800;
    font-size: 1.8rem;
    color: #16D9FF;
    letter-spacing: -0.5px;
}

.product-card-dark h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 4px 0 8px;
    color: white;
}

.product-card-dark p {
    color: #b0c7e7;
    font-size: 0.9rem;
}

.product-card-dark .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.product-card-dark .tags span {
    background: rgba(23, 105, 255, 0.15);
    color: #16D9FF;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-card-dark .link {
    color: #1769FF;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}


/* =========================================================
   FLOW DIAGRAM
   ========================================================= */

.flow-diagram {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 30px;
    padding: 20px 0;
    color: #b0c7e7;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 18px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-step i {
    color: #16D9FF;
    font-size: 1.2rem;
}

.flow-arrow {
    color: #1769FF;
    font-size: 1.4rem;
}


/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
    background: #0B1220;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner h2 {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-banner p {
    color: #b0c7e7;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 28px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #0B1220;
    color: #b0c7e7;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(180px, 1fr)
    );
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0c7e7;
    display: block;
    margin: 6px 0;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-col a:hover {
    color: white;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #b0c7e7;
    margin-left: 16px;
}

.footer-bottom a:hover {
    color: white;
}


/* =========================================================
   RESPONSIVE - TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar .container {
        position: relative;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .lang-selector {
        margin-left: 0;
        margin-right: 0;
    }

    .hero {
        padding: 45px 0 55px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-grid {
        flex-direction: column;
        gap: 35px;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
        flex: 1 1 100%;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .flow-arrow {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .logo-text small {
        font-size: 0.58rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero {
        padding: 35px 0 45px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stats div {
        font-size: 1.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom a {
        margin-left: 0;
        margin-right: 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-sub {
        font-size: 1rem;
    }

    .cta-banner {
        padding: 40px 0;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #16D9FF;
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}