/* ============================================
   أدالة تيكنولوجي — تصميم مبتكر
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --secondary: #1e40af;
    --bg-page: #ffffff;
    --bg-section-alt: #f8fafc;
    --bg-blue-light: #eff6ff;
    --text: #1e293b;
    --text-muted: #475569;
    --text-soft: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    --shadow-lg: 0 12px 40px rgba(30, 58, 138, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}

body.theme-blue-white { background: var(--bg-page); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.08);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 4px;
}

.site-header.scrolled .logo-img {
    border-color: rgba(37, 99, 235, 0.25);
}

.logo:hover .logo-img {
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-header.scrolled .nav-toggle-bar { background: var(--primary-dark); }

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-switcher .lang-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-switcher .lang-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.lang-switcher .lang-link.active {
    color: var(--white);
    font-weight: 700;
}

.lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.site-header.scrolled .lang-switcher .lang-link {
    color: var(--text);
}

.site-header.scrolled .lang-switcher .lang-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.site-header.scrolled .lang-switcher .lang-link.active {
    color: var(--primary-dark);
}

.site-header.scrolled .lang-switcher .lang-sep {
    color: var(--text-soft);
}

/* LTR: lang switcher on left side of nav */
html[dir="ltr"] .header-inner {
    flex-direction: row;
}

html[dir="ltr"] .lang-switcher {
    margin-inline-end: 1rem;
}

html[dir="rtl"] .lang-switcher {
    margin-inline-end: 1rem;
}

.nav-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-close {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li { margin: 0; }

.nav-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--white) !important;
    color: var(--primary-dark) !important;
}

.site-header.scrolled .nav-links a {
    color: var(--text-muted);
}

.site-header.scrolled .nav-links a.nav-link-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.site-header.scrolled .nav-links a.nav-link-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.site-header.scrolled .nav-links a:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

/* Nav dropdowns */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.95);
    background: none;
    border: none;
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-dropdown-arrow {
    font-size: 0.7em;
    opacity: 0.8;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin: 0.25rem 0 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

html[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 0;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.site-header.scrolled .nav-dropdown-trigger {
    color: var(--text-muted);
}

.site-header.scrolled .nav-item-dropdown:hover .nav-dropdown-trigger,
.site-header.scrolled .nav-dropdown-trigger:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        linear-gradient(160deg, #1e40af 0%, #2563eb 35%, #3b82f6 100%);
    animation: gradientShift 18s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; }
    100% { opacity: 0.92; }
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 52%);
    background-size: 8px 8px;
    opacity: 0.5;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2);
    bottom: 20%;
    left: -80px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.75rem;
    color: var(--white);
    animation: fadeInDown 0.9s var(--ease-out) both;
}

.hero h1 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s var(--ease-out) 0.15s both;
    letter-spacing: -0.02em;
}

.hero-title-line { display: block; color: var(--white); }

.hero-title-accent {
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 680px;
    margin: 0 auto 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    animation: fadeInUp 0.9s var(--ease-out) 0.3s both;
    line-height: 1.7;
}

.hero-desc-secondary {
    font-size: clamp(0.95rem, 1.7vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    animation: fadeInUp 0.9s var(--ease-out) 0.4s both;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s var(--ease-out) 0.55s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: var(--primary-50);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.section-white .btn-primary,
.contact-section .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.section-white .btn-primary:hover,
.contact-section .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    animation: bounce 2.5s infinite;
    z-index: 2;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg { width: 100%; height: auto; display: block; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }

.section-white { background: var(--white); }

.section-blue-light {
    background: var(--bg-blue-light);
    border-top: 1px solid var(--border);
}

.section-blue {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

.section-header .section-desc:last-of-type { margin-bottom: 0; }

/* قوائم إبداعية — أرقام في دوائر مع خط ربط */
.content-list {
    list-style: none;
    max-width: 620px;
    margin: 1.5rem auto;
    padding: 0;
    counter-reset: list-num;
}

.content-list li {
    position: relative;
    padding: 0.85rem 0;
    padding-inline-start: 3.5rem;
    padding-inline-end: 0;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    counter-increment: list-num;
    border-inline-start: 3px solid transparent;
    transition: var(--transition);
}

.content-list li:not(:last-child) {
    border-inline-start-color: var(--primary-100);
}

.content-list li::before {
    content: counter(list-num);
    position: absolute;
    inset-inline-start: 0;
    top: 0.6rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

.content-list li:hover {
    color: var(--text);
}

.content-list li:hover::before {
    background: var(--primary-dark);
    transform: scale(1.08);
}

/* Arabic numerals for RTL lists */
:lang(ar) .content-list li::before {
    content: counter(list-num, arabic-indic);
}

.highlight-box {
    background: var(--primary-50);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-sm);
    border-inline-start: 4px solid var(--primary);
    margin-top: 1.25rem !important;
    color: var(--text-muted);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(36px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section About ---------- */
.section-about .section-desc { color: var(--text-muted); }

/* ---------- Section KnowledgeTech / Gap ---------- */
.section-gap .section-header .section-desc,
.section-gap .highlight-box { color: var(--text-muted); }

/* ---------- Methodology (Timeline) ---------- */
.section-methodology { position: relative; }

.methodology-steps {
    display: grid;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.methodology-steps::before {
    content: '';
    position: absolute;
    inset-inline-end: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
    opacity: 0.5;
    border-radius: 2px;
}

.methodology-step {
    padding: 2rem;
    padding-inline-start: 3.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.04);
    transition: var(--transition);
    position: relative;
}

.methodology-step:hover {
    border-color: var(--primary-100);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
    transform: translateX(-4px);
}

html[dir="rtl"] .methodology-step:hover { transform: translateX(4px); }

.methodology-step::before {
    content: '';
    position: absolute;
    inset-inline-end: calc(2rem - 5px);
    top: 2.2rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-blue-light);
}

.step-num {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.methodology-step h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.methodology-step p { color: var(--text-muted); margin: 0; line-height: 1.75; }

/* ---------- شبكة البطاقات متماثلة (3 أعمدة + توسيط الصف الناقص) ---------- */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.06);
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-100);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.12);
}

.value-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
}

/* ---------- قسم المنصّات (تصميم مبهر) ---------- */
.section-platforms.section-blue-light {
    position: relative;
    padding: 5.5rem 0;
    overflow: hidden;
    background: var(--bg-blue-light);
}

.section-platforms .container {
    position: relative;
    z-index: 1;
}

.platforms-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.4) 100%);
    pointer-events: none;
}

.platforms-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.platforms-badge {
    display: inline-block;
    color: #2563eb;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.platforms-title {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.platforms-subtitle {
    color: #475569;
    font-size: 1.1rem;
}

/* بطاقة المنصة الرائدة */
.platform-hero {
    position: relative;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #3730a3 100%);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(37, 99, 235, 0.28);
}

.platform-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -20%);
    pointer-events: none;
}

.platform-hero-inner {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 2.5rem 3rem;
    min-height: 200px;
}

.platform-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.platform-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: platformPulse 2s ease-in-out infinite;
}

@keyframes platformPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.platform-hero-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-hero-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.5rem;
    border-radius: 14px;
    flex-shrink: 0;
}

.platform-hero-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}

.platform-hero-head h3 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1d4ed8;
    margin: 0;
}

.platform-hero-head h3 em {
    font-style: normal;
    font-weight: 500;
    color: #64748b;
    font-size: 0.95em;
}

.platform-hero-desc {
    color: #475569;
    margin-bottom: 1.75rem;
    line-height: 1.75;
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.platform-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.platform-feature:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.platform-feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 8px;
}

.platform-feature span:last-child {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
}

.platform-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.platform-hero-btns .platform-visit-btn,
.platform-hero .btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.platform-hero-btns .platform-visit-btn:hover,
.platform-hero .btn-outline:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.platform-hero-note {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* منصة قيد التطوير */
.platform-coming {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.platform-coming:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
}

.platform-coming-ribbon {
    position: absolute;
    top: 1.25rem;
    right: 0;
    padding: 0.5rem 1.25rem;
    background: #64748b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px 0 0 8px;
}

.platform-coming-inner {
    padding: 2.5rem 2.5rem 2rem;
    background: #ffffff;
}

.platform-coming-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 7rem;
}

.platform-coming-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.platform-coming-head h3 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.platform-coming-head h3 em {
    font-style: normal;
    font-weight: 500;
    color: #64748b;
    font-size: 0.9em;
}

.platform-coming-desc {
    color: #475569;
    margin-bottom: 1rem;
}

.platform-coming-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.platform-coming-list li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: #475569;
}

.platform-coming-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    left: auto;
    color: #2563eb;
    font-weight: 700;
}

.platform-coming-note {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.platform-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 100px;
}

.platform-coming-pulse {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    animation: platformPulse 2s ease-in-out infinite;
}

.platforms-all-link {
    text-align: center;
    margin-top: 2.5rem;
}

.platforms-all-link .btn {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.platforms-all-link .btn:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* ---------- Platforms Page ---------- */
.platforms-page-hero {
    position: relative;
    padding: 9rem 0 5rem;
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
}

.platforms-page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.platforms-page-header {
    position: relative;
    z-index: 2;
    text-align: center;
}

.platforms-back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.platforms-back-link:hover {
    color: var(--white);
}

.platforms-page-header .section-badge {
    color: rgba(255, 255, 255, 0.9);
}

.platforms-page-header h1 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.platforms-page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.platforms-list-section {
    padding-top: 4rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
}

.platform-card-coming {
    opacity: 0.85;
}

.platform-card-link {
    display: block;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.platform-card-link-disabled {
    cursor: default;
}

.platform-card-logo {
    margin: 0 auto 1.25rem;
    text-align: center;
    padding: 1rem;
    background: var(--primary-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.platform-card-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.platform-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    padding: 1rem;
    background: var(--primary-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.platform-card-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--primary-100);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.platform-card-title {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.platform-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.platform-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.platform-card-cta-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.platform-card-cta-link:hover {
    color: var(--primary-dark);
}

.platform-card-visit-link {
    color: var(--text-muted);
}

.platform-card-visit-link:hover {
    color: var(--primary);
}

.platform-card-cta-disabled {
    color: var(--text-soft);
    font-weight: 600;
}

.platforms-cta-block {
    text-align: center;
}

.platforms-cta-block h2 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.platforms-cta-block p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ---------- Projects Page ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
    transition: var(--transition);
    text-align: center;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.1);
}

.project-card-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-blue-light);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-placeholder {
    height: 120px;
    background: var(--bg-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-card-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--primary-100);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    margin: 1rem 1.25rem 0;
}

.project-card-title,
.project-card-desc,
.project-card-category {
    text-align: center;
}

.project-card-title {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin: 0.75rem 1.25rem;
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 1.25rem 1rem;
}

.project-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.25rem 1.5rem;
}

.project-card-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.project-card-link:hover {
    color: var(--primary-dark);
}

/* Projects section on home page */
.projects-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.project-home-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.04);
    text-align: center;
}

.project-home-card:hover {
    border-color: var(--primary-100);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
}

.project-home-image {
    margin: -1.75rem -1.75rem 1rem -1.75rem;
    height: 140px;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.project-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-home-card h3 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-home-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.project-home-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.project-home-link:hover {
    text-decoration: underline;
}

.projects-home-cta {
    text-align: center;
}

.project-single-image {
    max-height: 80px;
    width: auto;
}

.section-projects .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

/* Improved hover for demo button in project cards */
.project-card .btn-primary,
.project-home-card .btn-primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.project-card .btn-primary:hover,
.project-home-card .btn-primary:hover,
.section-projects .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
    color: var(--white);
}

/* ---------- Software Development Page ---------- */
.software-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.software-service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
    transition: var(--transition);
}

.software-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.1);
}

.software-service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.software-service-card h3 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.software-service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.software-service-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.software-service-features li {
    position: relative;
    padding: 0.4rem 0;
    padding-inline-start: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.software-service-features li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Software section on home page */
.software-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.software-home-card {
    background: var(--bg-blue-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.software-home-card:hover {
    border-color: var(--primary-100);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.software-home-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.75rem;
}

.software-home-card h3 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.software-home-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.software-home-cta {
    text-align: center;
}

/* ---------- Platform Single Page ---------- */
.platform-single-hero {
    position: relative;
    padding: 9rem 0 5rem;
    min-height: 35vh;
}

.platform-single-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.platform-single-header {
    position: relative;
    z-index: 2;
    text-align: center;
}

.platform-single-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.platform-single-badge-coming {
    background: rgba(255, 255, 255, 0.35);
}

.platform-single-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.platform-single-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.platform-single-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.platform-single-head h1 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
}

.platform-single-head h1 em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.9;
}

.platform-single-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.platform-single-content {
    max-width: 720px;
    margin: 0 auto;
}

.platform-single-features-title {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.platform-single-soon {
    margin-top: 1.5rem;
}

.platform-single-cta {
    text-align: center;
}

.platform-single-cta h2 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.platform-single-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ---------- Audience — شبكة متماثلة مع توسيط الصف الناقص ---------- */
.audience-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.audience-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.04);
}

.audience-card:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
}

.audience-icon { font-size: 2rem; }

.audience-card span:last-child { color: var(--text); font-weight: 500; }

/* ---------- Vision ---------- */
.section-vision .vision-block {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-vision .vision-block:last-child { margin-bottom: 0; }

.vision-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.vision-block h2 {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.85rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.vision-text { color: rgba(255, 255, 255, 0.9); line-height: 1.85; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 560px; margin: 0 auto; }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-soft); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success { background: var(--primary-50); color: var(--primary-dark); border: 1px solid var(--primary-100); }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
}

.footer-inner { max-width: 560px; margin: 0 auto; }

.footer-brand {
    font-family: 'Almarai', 'Tajawal', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-tagline { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 22px;
    height: 22px;
}

.footer-cta {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    background: var(--white);
}

.footer-cta:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.footer-ip {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copy { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.footer-sep { margin: 0 0.35em; opacity: 0.8; }
.footer-terms-link { color: rgba(255, 255, 255, 0.95); text-decoration: underline; }
.footer-terms-link:hover { color: var(--white); }

/* ---------- Terms modal ---------- */
.terms-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.terms-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.terms-dialog {
    position: relative;
    width: 100%;
    max-width: 42rem;
    max-height: 90vh;
    background: var(--bg-page);
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}
.terms-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.terms-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.terms-close-btn:hover { background: rgba(0, 0, 0, 0.06); }
.terms-content {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    -webkit-overflow-scrolling: touch;
}
.terms-body { font-size: 0.95rem; line-height: 1.65; }
.terms-body h1.terms-main-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.terms-body .terms-meta { color: var(--muted, #6b7280); margin-bottom: 1rem; }
.terms-body .terms-hr { border: none; border-top: 1px solid var(--border, #e5e7eb); margin: 1.25rem 0; }
.terms-body h2 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.terms-body p { margin: 0 0 0.75rem; }
.terms-body ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.terms-body li { margin-bottom: 0.25rem; }
.terms-body a { color: var(--primary); text-decoration: underline; }

/* ---------- 404 ---------- */
.page-404 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.page-404 h1 { font-size: 4rem; color: var(--primary); margin-bottom: 0.5rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .value-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
    .audience-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        max-width: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 900px) {
    .platform-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .platform-hero-inner { padding: 2rem 1.5rem; }
    .platform-coming-inner { padding: 2rem 1.5rem; }
    .platform-hero-head h3 { font-size: 1.5rem; }
    .platform-coming-head h3 { font-size: 1.35rem; }
    .nav-toggle { display: flex; }
    .nav-wrap {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -8px 0 32px rgba(30, 58, 138, 0.12);
        transition: var(--transition);
        border-left: 1px solid var(--border);
        padding: 5rem 1.5rem 2rem;
        z-index: 999;
    }
    .nav-close {
        display: flex;
        position: absolute;
        top: 1rem;
        inset-inline-end: 1rem;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 2rem;
        line-height: 1;
        color: var(--text);
        transition: var(--transition);
    }
    .nav-close:hover {
        color: var(--primary-dark);
        background: var(--primary-50);
        border-radius: 50%;
    }
    .nav-wrap.active { right: 0; }
    html[dir="ltr"] .nav-wrap {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border);
        box-shadow: 8px 0 32px rgba(30, 58, 138, 0.12);
    }
    html[dir="ltr"] .nav-wrap.active {
        right: auto;
        left: 0;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--text) !important;
        border-radius: var(--radius-sm);
    }
    .nav-links a:hover {
        background: var(--primary-50) !important;
        color: var(--primary-dark) !important;
    }
    .nav-links a.nav-link-cta {
        background: var(--primary-100) !important;
        color: var(--primary-dark) !important;
        font-weight: 600;
    }
    .nav-links a.nav-link-cta:hover {
        background: var(--primary) !important;
        color: var(--white) !important;
    }
    /* Mobile: always show dropdown content */
    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        color: var(--text) !important;
        padding: 0.75rem 1rem;
    }
    .nav-dropdown-trigger:hover {
        background: var(--primary-50) !important;
        color: var(--primary-dark) !important;
    }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0.25rem 0 0.25rem 1.25rem;
        background: transparent;
        display: block;
    }
    html[dir="rtl"] .nav-dropdown-menu {
        padding: 0.25rem 1.25rem 0.25rem 0;
    }
    .nav-dropdown-menu a {
        padding: 0.5rem 0;
        color: var(--text-muted);
    }
    .nav-dropdown-menu a:hover {
        color: var(--primary-dark);
    }

    .methodology-steps::before { inset-inline-end: 1rem; }
    .methodology-step { padding: 2rem; padding-inline-start: 3.5rem; }
    .methodology-step::before { inset-inline-end: calc(2rem - 5px); }

    .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .software-services-grid { grid-template-columns: 1fr; }
    .software-home-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-home-grid { grid-template-columns: 1fr; }
    .value-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .audience-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
