:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-soft: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --muted: #64748b;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 18px 35px rgba(15, 23, 42, 0.10);
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Assistant', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Header
========================= */
.main-header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

/* Brand */
.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.18);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--dark);
    display: block;
    line-height: 1;
}

.brand-tag {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.2;
}

/* Nav */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 26px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    color: var(--dark);
    font-weight: 700;
    transition: var(--transition);
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-list > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transition: var(--transition);
}

.nav-list > li > a:hover {
    color: var(--primary);
}

.nav-list > li > a:hover::after,
.nav-list > li:hover > a::after,
.nav-list > li:focus-within > a::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.has-dropdown {
    position: relative;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 0 10px;
    list-style: none;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
}

/* hover bridge */
.has-dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 14px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: var(--dark-soft);
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
    display: block;
}

/* CTA */
.header-cta {
    display: flex;
    align-items: center;
}

.btn-contact-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.18);
    display: inline-block;
}

.btn-contact-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.24);
}

/* =========================
   Generic Sections
========================= */
.hero-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, #eef2ff, transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    background: #e0e7ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content h1 {
    font-family: 'Heebo', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero-desc {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 40px;
}

.btn-main {
    background: var(--primary);
    color: #fff;
    padding: 16px 35px;
    border-radius: var(--radius);
    font-weight: 800;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.f-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--light-bg);
    transition: var(--transition);
    text-align: center;
}

.f-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.f-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* =========================
   KX Slider
========================= */
.kx-hero {
    padding: 40px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.kx-slider-shell {
    position: relative;
    padding-inline: 64px;
}

.kx-slider {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.kx-slider-track {
    position: relative;
    min-height: 560px;
}

.kx-slide {
    display: none;
    padding: 34px;
    animation: kxFade 0.8s ease;
}

.kx-slide.is-active {
    display: block;
}

@keyframes kxFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kx-slide-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 56px;
    direction: ltr;
    min-height: 480px;
}

.kx-slide-content {
    direction: rtl;
    text-align: right;
}

.kx-badge {
    display: inline-block;
    padding: 10px 18px;
    background: #e9eafe;
    color: #4f46e5;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.kx-title {
    font-family: 'Heebo', sans-serif;
    font-size: 4.1rem;
    line-height: 1.08;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 22px;
}

.kx-desc {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 30px;
}

.kx-actions {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.kx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 16px 28px;
    border-radius: 18px;
    font-weight: 800;
    transition: var(--transition);
}

.kx-btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.kx-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.kx-btn-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.kx-btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.kx-slide-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kx-media-frame {
    width: 100%;
    max-width: 470px;
    height: 420px;
    border-radius: 30px;
    overflow: hidden;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.kx-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kx-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.10);
    z-index: 20;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kx-nav:hover {
    background: #4f46e5;
    color: #fff;
}

.kx-prev {
    left: 0;
}

.kx-next {
    right: 0;
}

.kx-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 24px;
}

.kx-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.kx-dot.is-active {
    width: 32px;
    background: #4f46e5;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1100px) {
    .kx-title {
        font-size: 3.4rem;
    }

    .kx-slide-layout {
        gap: 34px;
    }

    .kx-slider-shell {
        padding-inline: 48px;
    }
}

@media (max-width: 992px) {
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }

    .desktop-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        top: 100%;
    }

    .kx-slider-track {
        min-height: auto;
    }

    .kx-slide {
        padding: 26px;
    }

    .kx-slide-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 28px;
    }

    .kx-slide-content {
        order: 2;
        text-align: center;
    }

    .kx-slide-media {
        order: 1;
    }

    .kx-actions {
        justify-content: center;
    }

    .kx-title {
        font-size: 2.8rem;
    }

    .kx-desc {
        font-size: 1.05rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 26px;
    }

    .kx-media-frame {
        max-width: 100%;
        height: 340px;
    }

    .kx-slider-shell {
        padding-inline: 16px;
    }

    .kx-prev {
        left: 4px;
    }

    .kx-next {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 0;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-tag {
        font-size: 0.72rem;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .nav-list {
        gap: 14px;
    }

    .nav-list > li > a {
        font-size: 0.95rem;
    }

    .dropdown-menu {
        min-width: 210px;
    }

    .btn-contact-nav {
        padding: 11px 18px;
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .kx-hero {
        padding: 24px 0 50px;
    }

    .kx-slider {
        border-radius: 24px;
    }

    .kx-slide {
        padding: 18px;
    }

    .kx-title {
        font-size: 2.15rem;
    }

    .kx-desc {
        font-size: 0.98rem;
    }

    .kx-btn {
        width: 100%;
        min-width: 100%;
    }

    .kx-media-frame {
        height: 250px;
        border-radius: 22px;
    }

    .kx-nav {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .kx-slider-shell {
        padding-inline: 10px;
    }

    .kx-prev {
        left: 0;
    }

    .kx-next {
        right: 0;
    }
}