:root {
    --tsx-primary: #2563eb;
    --tsx-secondary: #06b6d4;
    --tsx-accent: #0f172a;
    --tsx-bg: #f8fafc;
    --tsx-card: #ffffff;
    --tsx-text: #334155;
    --tsx-muted: #64748b;
    --tsx-border: #e2e8f0;
    --tsx-soft: #eff6ff;
    --tsx-radius: 24px;
    --tsx-shadow: 0 24px 70px rgba(15, 23, 42, .10);
    --tsx-font: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tsx-bg);
    color: var(--tsx-text);
    font-family: var(--tsx-font);
    line-height: 1.85;
}

body.tsx-dark {
    --tsx-bg: #020617;
    --tsx-card: #0f172a;
    --tsx-text: #e2e8f0;
    --tsx-muted: #94a3b8;
    --tsx-border: #1e293b;
    --tsx-soft: #111827;
    --tsx-accent: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.tsx-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--tsx-primary);
    font-weight: 900;
}

.tsx-preloader div {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 5px solid #dbeafe;
    border-top-color: var(--tsx-primary);
    animation: tsxSpin 1s linear infinite;
}

.tsx-preloader.hide {
    opacity: 0;
    visibility: hidden;
    transition: .4s;
}

@keyframes tsxSpin {
    to {
        transform: rotate(360deg);
    }
}

.tsx-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--tsx-border);
}

.tsx-dark .tsx-header {
    background: rgba(15, 23, 42, .92);
}

.tsx-topbar {
    padding: 8px 6%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--tsx-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--tsx-border);
}

.tsx-navbar {
    padding: 16px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tsx-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tsx-accent);
    font-size: 20px;
    font-weight: 900;
}

.tsx-logo img {
    max-height: 54px;
    width: auto;
}

.tsx-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.tsx-nav,
.tsx-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tsx-nav a {
    color: var(--tsx-muted);
    font-weight: 800;
}

.tsx-nav a:hover {
    color: var(--tsx-primary);
}

.tsx-menu-toggle {
    display: none;
    border: 0;
    background: var(--tsx-soft);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 22px;
    color: var(--tsx-accent);
}

.tsx-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
}

.tsx-btn:hover {
    transform: translateY(-2px);
}

.tsx-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    box-shadow: 0 14px 34px rgba(37, 99, 235, .24);
}

.tsx-btn-soft {
    background: var(--tsx-soft);
    color: var(--tsx-primary);
    border: 1px solid var(--tsx-border);
}

.tsx-btn-dark {
    background: var(--tsx-accent);
    color: #fff;
}

.tsx-link {
    color: var(--tsx-primary);
    font-weight: 900;
    margin-top: 14px;
    display: inline-block;
}

.tsx-hero {
    padding: 95px 6%;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, .13), transparent 34%);
}

.tsx-badge {
    display: inline-flex;
    background: var(--tsx-card);
    color: var(--tsx-primary);
    border: 1px solid var(--tsx-border);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 900;
    margin-bottom: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.tsx-hero h1 {
    color: var(--tsx-accent);
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.15;
    margin: 0 0 22px;
    letter-spacing: -1px;
}

.tsx-hero p {
    color: var(--tsx-muted);
    font-size: 19px;
    max-width: 720px;
}

.tsx-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.tsx-hero-mini {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--tsx-muted);
    font-weight: 800;
}

.tsx-hero-mini span {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 999px;
    padding: 8px 14px;
}

.tsx-hero-card {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 34px;
    padding: 24px;
    box-shadow: var(--tsx-shadow);
}

.tsx-dashboard {
    min-height: 465px;
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(135deg, var(--tsx-card), var(--tsx-soft));
    display: grid;
    gap: 16px;
    align-content: center;
    position: relative;
    overflow: hidden;
}

.tsx-dash-box {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, .06);
}

.tsx-dash-box strong {
    display: block;
    color: var(--tsx-accent);
    margin-bottom: 12px;
}

.tsx-dash-box span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
}

.tsx-floating-report {
    position: absolute;
    bottom: 22px;
    left: 22px;
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 22px;
    padding: 18px;
    width: 220px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.tsx-floating-report b {
    color: var(--tsx-primary);
    font-size: 28px;
}

.tsx-floating-report p {
    margin: 0;
    color: var(--tsx-muted);
}

.tsx-section {
    padding: 88px 6%;
}

.tsx-white {
    background: var(--tsx-card);
}

.tsx-section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
}

.tsx-section-label {
    display: inline-flex;
    color: var(--tsx-primary);
    font-weight: 900;
    margin-bottom: 8px;
}

.tsx-section-head h2 {
    color: var(--tsx-accent);
    font-size: 42px;
    margin: 0 0 10px;
}

.tsx-section-head p {
    color: var(--tsx-muted);
    font-size: 18px;
}

.tsx-grid {
    display: grid;
    gap: 24px;
}

.tsx-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tsx-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tsx-card {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: var(--tsx-radius);
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    transition: .25s;
}

.tsx-card:hover {
    transform: translateY(-7px);
    border-color: var(--tsx-primary);
}

.tsx-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--tsx-soft);
    color: var(--tsx-primary);
    display: grid;
    place-items: center;
    font-size: 29px;
    margin-bottom: 18px;
}

.tsx-card h3 {
    color: var(--tsx-accent);
    font-size: 22px;
    margin: 0 0 10px;
}

.tsx-card p {
    color: var(--tsx-muted);
    margin: 0;
}

.tsx-about {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.tsx-about-box {
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    color: #fff;
    border-radius: 34px;
    padding: 40px;
    box-shadow: var(--tsx-shadow);
}

.tsx-about-box span {
    font-weight: 900;
    opacity: .88;
}

.tsx-about-box h2 {
    font-size: 38px;
    margin: 12px 0 14px;
}

.tsx-about-box p {
    font-size: 18px;
    opacity: .94;
}

.tsx-features {
    display: grid;
    gap: 16px;
}

.tsx-features div {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .05);
}

.tsx-features span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tsx-soft);
    color: var(--tsx-primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 12px;
}

.tsx-stats-section {
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
}

.tsx-stat {
    text-align: center;
    color: #fff;
}

.tsx-stat strong {
    display: block;
    font-size: 46px;
    font-weight: 900;
}

.tsx-stat span {
    opacity: .92;
    font-weight: 800;
}

.tsx-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tsx-filter button {
    border: 1px solid var(--tsx-border);
    background: var(--tsx-card);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    color: var(--tsx-muted);
    cursor: pointer;
}

.tsx-filter button.active {
    background: var(--tsx-primary);
    color: #fff;
    border-color: var(--tsx-primary);
}

.tsx-project-cover,
.tsx-thumb {
    height: 190px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tsx-soft), var(--tsx-card));
    display: grid;
    place-items: center;
    font-size: 48px;
    margin-bottom: 18px;
    overflow: hidden;
}

.tsx-project-cover img,
.tsx-thumb img,
.tsx-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsx-team {
    text-align: center;
}

.tsx-avatar {
    width: 96px;
    height: 96px;
    border-radius: 32px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    display: grid;
    place-items: center;
    font-size: 42px;
}

.tsx-process b {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.tsx-price strong {
    color: var(--tsx-primary);
    display: block;
    font-size: 34px;
    margin: 15px 0;
}

.tsx-price.featured {
    border-color: var(--tsx-primary);
    box-shadow: var(--tsx-shadow);
}

.tsx-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tsx-testimonial {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--tsx-shadow);
    text-align: center;
}

.tsx-testimonial p {
    color: var(--tsx-text);
    font-size: 18px;
}

.tsx-testimonial strong,
.tsx-testimonial span {
    display: block;
}

.tsx-testimonial strong {
    color: var(--tsx-accent);
}

.tsx-testimonial span {
    color: var(--tsx-muted);
}

.tsx-faq {
    max-width: 900px;
    margin: auto;
    display: grid;
    gap: 14px;
}

.tsx-faq-item {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: 20px;
    overflow: hidden;
}

.tsx-faq-item button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--tsx-accent);
    padding: 18px 22px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.tsx-faq-item div {
    display: none;
    padding: 0 22px 18px;
    color: var(--tsx-muted);
}

.tsx-faq-item.active div {
    display: block;
}

.tsx-contact-section {
    padding: 88px 6%;
    background: var(--tsx-card);
}

.tsx-contact-box {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
    align-items: start;
}

.tsx-contact-box h2 {
    color: var(--tsx-accent);
    font-size: 42px;
    margin: 12px 0;
}

.tsx-contact-info {
    color: var(--tsx-muted);
}

.tsx-contact-form {
    background: var(--tsx-bg);
    border: 1px solid var(--tsx-border);
    border-radius: 28px;
    padding: 28px;
}

.tsx-contact-form label {
    font-weight: 900;
    display: block;
    margin: 12px 0 6px;
}

.tsx-contact-form input,
.tsx-contact-form textarea,
.tsx-contact-form select {
    width: 100%;
    border: 1px solid var(--tsx-border);
    border-radius: 14px;
    background: var(--tsx-card);
    color: var(--tsx-text);
    padding: 13px 15px;
}

.tsx-alert {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 900;
}

.tsx-alert.success {
    background: #dcfce7;
    color: #166534;
}

.tsx-cta {
    margin: 80px 6%;
    padding: 58px;
    border-radius: 34px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .25), transparent 34%),
        linear-gradient(135deg, var(--tsx-primary), var(--tsx-secondary));
    box-shadow: var(--tsx-shadow);
}

.tsx-cta h2 {
    font-size: 42px;
    margin: 0 0 12px;
}

.tsx-cta p {
    max-width: 720px;
    margin: 0 auto 26px;
    opacity: .94;
    font-size: 18px;
}

.tsx-footer {
    background: var(--tsx-card);
    border-top: 1px solid var(--tsx-border);
    padding: 42px 6%;
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 28px;
    color: var(--tsx-muted);
}

.tsx-footer h3 {
    color: var(--tsx-accent);
}

.tsx-footer a {
    display: block;
    margin: 7px 0;
}

.tsx-footer a:hover {
    color: var(--tsx-primary);
}

.tsx-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tsx-whatsapp,
.tsx-dark-toggle,
.tsx-back-top {
    position: fixed;
    z-index: 1500;
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.tsx-whatsapp {
    left: 24px;
    bottom: 24px;
    background: #25d366;
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(37, 211, 102, .28);
}

.tsx-dark-toggle {
    right: 24px;
    bottom: 24px;
    background: var(--tsx-accent);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.tsx-back-top {
    right: 24px;
    bottom: 84px;
    background: var(--tsx-primary);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.tsx-back-top.show {
    opacity: 1;
    visibility: visible;
}

.tsx-page {
    padding: 90px 6%;
    max-width: 1180px;
    margin: auto;
}

.tsx-page h1 {
    color: var(--tsx-accent);
    font-size: 44px;
}

.tsx-content {
    background: var(--tsx-card);
    border: 1px solid var(--tsx-border);
    border-radius: var(--tsx-radius);
    padding: 32px;
    box-shadow: var(--tsx-shadow);
}

.tsx-single-thumb {
    margin: 24px 0;
    border-radius: var(--tsx-radius);
    overflow: hidden;
}

.tsx-center {
    text-align: center;
}

.tsx-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: .65s ease;
}

.tsx-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1150px) {
    .tsx-hero,
    .tsx-about,
    .tsx-contact-box {
        grid-template-columns: 1fr;
    }

    .tsx-grid-4,
    .tsx-grid-3,
    .tsx-testimonials {
        grid-template-columns: 1fr;
    }

    .tsx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 6%;
        right: 6%;
        background: var(--tsx-card);
        border: 1px solid var(--tsx-border);
        border-radius: 20px;
        padding: 20px;
        box-shadow: var(--tsx-shadow);
    }

    .tsx-nav.active,
    .tsx-nav.active ul {
        display: grid;
    }

    .tsx-menu-toggle {
        display: block;
    }

    .tsx-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tsx-topbar,
    .tsx-navbar {
        flex-direction: column;
        text-align: center;
    }

    .tsx-hero {
        text-align: center;
        padding: 58px 6%;
    }

    .tsx-actions,
    .tsx-hero-mini {
        justify-content: center;
    }

    .tsx-floating-report {
        position: relative;
        left: auto;
        bottom: auto;
        width: auto;
    }

    .tsx-cta {
        margin: 45px 6%;
        padding: 34px 20px;
    }
}
