/* === Master Team — Landing Page Styles === */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --primary-50: #e6f0ff;
    --accent: #00d4ff;
    --gradient: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-soft: linear-gradient(135deg, #e6f0ff 0%, #f0faff 100%);
    --ink: #0a1628;
    --ink-2: #1e2a3d;
    --gray: #5a6678;
    --gray-light: #8a95a5;
    --border: #e5eaf0;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-dark: #0a1628;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.04);
    --shadow: 0 8px 30px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.12);
    --shadow-blue: 0 12px 40px rgba(0, 102, 255, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[dir="rtl"] body { font-family: var(--font-ar); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(0, 102, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.btn-ghost-light {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-blue);
}
.logo-text strong { color: var(--primary); font-weight: 700; }
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-links a {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-50);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-2);
    transition: all 0.2s;
    font-family: var(--font-ar);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* === Hero === */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -150px;
    left: -100px;
    opacity: 0.25;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}
.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-title span { display: block; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}
.stat-value span { color: var(--primary); }
.stat-label {
    font-size: 13px;
    color: var(--gray);
    margin-top: 6px;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
}
.visual-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.card-main {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
}
.card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}
.card-dot:nth-child(2) { background: #ffbd2e; }
.card-dot:nth-child(3) { background: #28ca42; }
.card-header span {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}
.card-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mini-product {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid transparent;
}
.mini-product:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.mini-product span {
    font-size: 20px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.card-float {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    animation: float 4s ease-in-out infinite;
}
.card-1 {
    top: -20px;
    right: -30px;
    z-index: 2;
    animation-delay: 0s;
}
.card-2 {
    bottom: -20px;
    left: -30px;
    z-index: 2;
    animation-delay: 2s;
}
.float-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-title { font-weight: 600; font-size: 14px; }
.float-sub { font-size: 12px; color: #28ca42; font-weight: 500; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Trusted === */
.trusted {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.trusted-label {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}
.trusted-logo {
    color: var(--gray-light);
    font-weight: 600;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.trusted-logo:hover { opacity: 1; color: var(--ink); }

/* === Sections === */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 18px;
    color: var(--gray);
}

/* === Products === */
.products { background: var(--bg-soft); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-card.featured {
    background: var(--gradient);
    color: white;
    border: none;
    grid-column: span 2;
}
.product-card.featured h3,
.product-card.featured p { color: white; }
.product-card.featured .product-link { color: white; }
.product-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.product-card.featured .product-icon { background: rgba(255,255,255,0.2); }
.product-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}
.product-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.product-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

/* === Services === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.service-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-50);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card p { color: var(--gray); font-size: 15px; }

/* === About === */
.about { background: var(--bg-soft); }
.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}
.about-text > p {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 32px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-2);
}
.check {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.about-visual {
    display: grid;
    gap: 16px;
}
.about-stat-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.about-stat-card:nth-child(2) {
    background: var(--gradient);
    color: white;
    border: none;
    transform: translateX(40px);
}
.about-stat-card:hover { transform: translateY(-4px); }
.about-stat-card:nth-child(2):hover { transform: translateX(40px) translateY(-4px); }
.about-stat-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}
.about-stat-num span { color: var(--primary); }
.about-stat-card.alt .about-stat-num span { color: white; opacity: 0.7; }
.about-stat-label { font-size: 14px; opacity: 0.85; }

/* === Clients === */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.client-logo {
    background: white;
    border: 1px solid var(--border);
    padding: 28px 16px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
}
.client-logo:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* === CTA === */
.cta { padding: 60px 0; }
.cta-card {
    background: var(--bg-dark);
    color: white;
    padding: 80px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-bg-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    top: -300px;
    right: -200px;
}
.cta-card h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.02em;
}
.cta-card p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
    position: relative;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* === Contact === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info .section-title { margin-bottom: 40px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.contact-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.contact-item a, .contact-item span {
    font-weight: 600;
    color: var(--ink);
}
.contact-item a:hover { color: var(--primary); }

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}
.form-status {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #28ca42;
    min-height: 20px;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo-text strong { color: var(--accent); }
.footer-brand p { font-size: 14px; max-width: 320px; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

/* === RTL adjustments === */
[dir="rtl"] .hero-container,
[dir="rtl"] .about-container,
[dir="rtl"] .contact-container { direction: rtl; }
[dir="rtl"] .product-tag { right: auto; left: 24px; }
[dir="rtl"] .about-stat-card:nth-child(2) { transform: translateX(-40px); }
[dir="rtl"] .about-stat-card:nth-child(2):hover { transform: translateX(-40px) translateY(-4px); }
[dir="rtl"] .card-header span { margin-left: 0; margin-right: auto; }
[dir="rtl"] .card-1 { right: auto; left: -30px; }
[dir="rtl"] .card-2 { left: auto; right: -30px; }
[dir="rtl"] .product-link::after { content: ''; }

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card.featured { grid-column: span 2; }
    .services-grid { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; gap: 48px; }
    .contact-container { grid-template-columns: 1fr; gap: 48px; }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-stat-card:nth-child(2) { transform: none !important; }
}

@media (max-width: 720px) {
    section { padding: 70px 0; }
    .hero { padding: 110px 0 60px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .menu-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .hero-stats { gap: 28px; }
    .stat-value { font-size: 28px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card.featured { grid-column: span 1; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .cta-card { padding: 60px 24px; }
    .contact-form { padding: 28px; }
    .trusted-logos { gap: 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}
