:root {
    --bg: #06060a;
    --bg-soft: #0d0d14;
    --card: rgba(255, 255, 255, 0.05);
    --card-solid: #11111a;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.74);
    --muted-2: rgba(255, 255, 255, 0.52);
    --border: rgba(255, 255, 255, 0.10);
    --primary: #6b46d9;
    --primary-hover: #7b57eb;
    --primary-soft: rgba(107, 70, 217, 0.14);
    --primary-light: #dacdff;
    --danger: #ff7b92;
    --success: #78e8bf;
    --shadow: 0 18px 60px rgba(107, 70, 217, 0.22);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
    --radius: 24px;
    --radius-lg: 32px;
    --container: 1200px;
    --transition: 0.28s ease;
}

body.light-mode {
    --bg: #f7f6fb;
    --bg-soft: #ffffff;
    --card: rgba(255, 255, 255, 0.92);
    --card-solid: #ffffff;
    --text: #171722;
    --muted: rgba(23, 23, 34, 0.72);
    --muted-2: rgba(23, 23, 34, 0.50);
    --border: rgba(23, 23, 34, 0.10);
    --primary: #6b46d9;
    --primary-hover: #5f3dca;
    --primary-soft: rgba(107, 70, 217, 0.08);
    --primary-light: #6b46d9;
    --shadow: 0 20px 50px rgba(107, 70, 217, 0.12);
    --shadow-soft: 0 12px 30px rgba(107, 70, 217, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(107, 70, 217, 0.18), transparent 25%),
        radial-gradient(circle at 15% 20%, rgba(107, 70, 217, 0.10), transparent 18%),
        linear-gradient(180deg, #020204 0%, #090911 50%, #030305 100%);
    overflow-x: hidden;
}

body.light-mode {
    background:
        radial-gradient(circle at top right, rgba(107, 70, 217, 0.10), transparent 25%),
        radial-gradient(circle at 15% 20%, rgba(107, 70, 217, 0.06), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f8f6fd 50%, #ffffff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1, h2, h3, h4, p {
    margin: 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    width: min(var(--container), calc(100% - 20px));
    margin: 20px auto 0;
    background: rgba(10, 10, 16, 0.72);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.82);
}

.header-inner {
    min-height: 76px;
    padding: 14px 24px; /* زودنا padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px; /* زودنا المسافة بين العناصر */
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-logo {
    width: 88px;
    height: 58px;
    object-fit: contain;
}

.logo-light {
    display: none;
}

body.light-mode .logo-dark {
    display: none;
}

body.light-mode .logo-light {
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px; /* كان 8 - صار أريح */
}

.header-actions .btn {
    padding: 10px 14px;
    min-height: 40px;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--primary-soft);
    border-color: rgba(107, 70, 217, 0.35);
    transform: translateY(-2px);
}

/* Shared */
.section {
    position: relative;
    padding: 78px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

body.light-mode .section.alt {
    background: rgba(107, 70, 217, 0.04);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(107, 70, 217, 0.28);
    background: rgba(107, 70, 217, 0.10);
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.section-title {
    max-width: 820px;
    margin-bottom: 36px;
}

.section-title .eyebrow {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.12;
    margin-bottom: 14px;
}

.section-title p {
    font-size: 17px;
    line-height: 1.95;
    color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4,
.stats-grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.card,
.stat,
.stat-card,
.info-strip div,
.enterprise-card,
.privacy-card,
.enterprise-cta-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.card {
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(107, 70, 217, 0.36);
}

.subtitle {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card h3,
.service-modal-content h3,
.testimonial h3 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.card p,
.card li,
.faq-answer,
.article-text,
.about-text,
.contact-text {
    color: var(--muted);
    line-height: 1.95;
    font-size: 16px;
}

.icon-circle {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(107, 70, 217, 0.14);
    color: var(--primary-light);
    font-size: 24px;
    margin-bottom: 18px;
}

body.light-mode .icon-circle {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 92px 0 70px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -140px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 70, 217, 0.22), transparent 68%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    bottom: -120px;
    left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 205, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    margin-bottom: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    line-height: 2;
    max-width: 700px;
}

.hero-actions,
.cta-actions,
.hero-pills,
.pills {
    display: flex;
    gap: 18px; /* زودنا المسافة */
    flex-wrap: wrap;
}

.cta-actions {
    margin-top: 28px; /* يعطي مسافة بين النص والأزرار */
}

.hero-actions {
    margin-top: 32px;
}

.hero .btn {
    min-height: 52px;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
}

body.light-mode .pill {
    background: rgba(107, 70, 217, 0.04);
}

/* Hero Cards */
.hero-card,
.hero-image-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 0;
    background: linear-gradient(135deg, #140e27, #08070c 58%, #020203);
}

body.light-mode .hero-card {
    background: linear-gradient(135deg, #efe9ff, #faf8ff 58%, #ffffff);
}

.hero-card-inner {
    position: relative;
    z-index: 1;
    padding: 28px;
    margin: 18px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid var(--border);
}

body.light-mode .hero-card-inner {
    background: rgba(255, 255, 255, 0.72);
}

.logo-box {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.04);
    padding: 10px;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mini-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

body.light-mode .mini-card {
    background: rgba(255,255,255,0.94);
}

.mini-card small {
    display: block;
    color: var(--muted-2);
    margin-bottom: 8px;
    font-size: 13px;
}

.mini-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.hero-cover {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-card:hover .hero-cover {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.42), rgba(107,70,217,0.18));
}

body.light-mode .hero-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.92), rgba(255,255,255,0.48), rgba(107,70,217,0.12));
}

.hero-overlay-content {
    width: 100%;
    padding: 22px;
    border-radius: 24px;
    background: rgba(8,8,12,0.42);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
}

body.light-mode .hero-overlay-content {
    background: rgba(255,255,255,0.68);
    border-color: rgba(23,23,34,0.08);
}

.hero-overlay-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-overlay-text {
    color: var(--muted);
    line-height: 1.85;
    font-size: 15px;
}

/* Stats */
.stat,
.stat-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.7;
}

.stat strong,
.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-light);
    font-size: 32px;
    font-weight: 900;
}

body.light-mode .stat strong,
body.light-mode .stat-card strong {
    color: var(--primary);
}

.stat span,
.stat-card span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.stat-card.highlight,
.pricing-card.featured {
    border-color: rgba(107, 70, 217, 0.82);
    box-shadow: var(--shadow);
}

/* Service / Pricing images */
.service-card,
.pricing-card {
    overflow: hidden;
}

.service-image-wrap,
.pricing-image-wrap {
    margin: -28px -28px 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.service-image-wrap::after,
.pricing-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.24), rgba(0,0,0,0.03));
    pointer-events: none;
}

.service-image,
.pricing-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-image,
.pricing-card:hover .pricing-image {
    transform: scale(1.06);
}

/* Pricing */
.pricing-card.featured {
    background: linear-gradient(180deg, #1b1235, #0b0813);
}

body.light-mode .pricing-card.featured {
    background: linear-gradient(180deg, #f2ecff, #ffffff);
}

.pricing-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.old-price {
    font-size: 18px;
    color: var(--danger);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.95;
}

.price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
}

body.light-mode .price {
    color: var(--primary);
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.18);
    padding: 14px 16px;
}

body.light-mode .feature-list li {
    background: rgba(107,70,217,0.04);
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group.full {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.24);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: rgba(255,255,255,0.94);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(107,70,217,0.45);
    box-shadow: 0 0 0 4px rgba(107,70,217,0.12);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-strip div {
    padding: 18px;
    color: var(--muted);
    font-size: 15px;
}

/* EMS section */
.ems-section {
    position: relative;
    overflow: hidden;
}

.ems-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
    gap: 52px;
    align-items: center;
}

.ems-image {
    position: relative;
    min-height: 480px;
    padding: 18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(107,70,217,0.20), transparent 28%),
        radial-gradient(circle at 50% 68%, rgba(218,205,255,0.08), transparent 38%),
        linear-gradient(160deg, rgba(18,12,35,0.95), rgba(8,7,11,0.98) 60%, rgba(0,0,0,1));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.light-mode .ems-image {
    background:
        radial-gradient(circle at 50% 18%, rgba(107,70,217,0.12), transparent 28%),
        radial-gradient(circle at 50% 68%, rgba(218,205,255,0.12), transparent 38%),
        linear-gradient(160deg, #f4efff, #ffffff 60%, #f7f5fd);
    border-color: rgba(23,23,34,0.08);
    box-shadow: 0 18px 40px rgba(107,70,217,0.08);
}

.ems-image img {
    width: auto;
    max-width: 86%;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 36px rgba(0,0,0,0.34));
}

.ems-content h2 {
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.ems-highlight {
    font-size: 22px;
    color: var(--primary-light);
    margin-bottom: 18px;
    line-height: 1.5;
}

body.light-mode .ems-highlight {
    color: var(--primary);
}

.ems-text {
    line-height: 2;
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 26px;
}

.ems-box {
    background: linear-gradient(135deg, rgba(107,70,217,0.18), rgba(107,70,217,0.05));
    border: 1px solid rgba(107,70,217,0.28);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.ems-box strong {
    display: block;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 6px;
}

.ems-box span {
    font-size: 16px;
    color: var(--muted);
}

/* Services page */
.services-page {
    position: relative;
}

.services-title {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 38px;
}

.services-grid .service-card {
    padding: 0;
    text-align: right;
    cursor: pointer;
    border-radius: 26px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    color: var(--text);
}

body.light-mode .services-grid .service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,245,253,0.98));
}

.services-grid .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
}

body.light-mode .services-grid .service-card:hover {
    box-shadow: 0 20px 40px rgba(107,70,217,0.12);
}

.services-grid .service-card:focus-visible {
    outline: 0;
    border-color: rgba(107,70,217,0.7);
    box-shadow: 0 0 0 4px rgba(107,70,217,0.14);
}

.service-card-body {
    padding: 24px;
}

.service-card h3 {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.service-card-desc {
    color: var(--muted);
    line-height: 1.9;
    font-size: 15px;
    min-height: 86px;
}

.service-icon {
    margin-bottom: 16px;
}

.service-read-more {
    margin-top: 18px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.light-mode .service-read-more {
    color: var(--primary);
}

.service-read-more::after {
    content: "←";
    font-size: 15px;
    transition: transform var(--transition);
}

.service-card:hover .service-read-more::after {
    transform: translateX(-4px);
}

/* Services modal */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.service-modal.active {
    display: block;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.light-mode .service-modal-backdrop {
    background: rgba(15,10,28,0.34);
}

.service-modal-dialog {
    position: relative;
    width: min(940px, calc(100% - 24px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

body.light-mode .service-modal-dialog {
    box-shadow: 0 24px 60px rgba(107,70,217,0.16);
}

.service-modal-image-wrap {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.service-modal-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.28), rgba(0,0,0,0.02));
    pointer-events: none;
}

body.light-mode .service-modal-image-wrap::after {
    background: linear-gradient(to top, rgba(107,70,217,0.08), rgba(255,255,255,0.02));
}

.service-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-modal-content {
    padding: 30px;
    color: var(--text);
}

.service-modal-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(107,70,217,0.14);
    color: var(--primary-light);
    font-size: 28px;
    margin-bottom: 16px;
}

body.light-mode .service-modal-icon {
    color: var(--primary);
}

.service-modal-content h3 {
    font-size: 34px;
    line-height: 1.3;
    margin: 10px 0 12px;
}

.service-modal-desc {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-modal-details {
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
}

.service-modal-details h4 {
    margin: 18px 0 10px;
    font-size: 18px;
    color: var(--text);
}

.service-modal-details p {
    margin-bottom: 12px;
}

.service-modal-details ul {
    margin: 0 0 12px;
    padding-right: 18px;
}

.service-modal-details li {
    margin-bottom: 8px;
}

.service-modal .cta-actions {
    margin-top: 24px;
}

.service-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.service-modal-close:hover {
    transform: scale(1.06);
    background: rgba(107,70,217,0.88);
}

body.light-mode .service-modal-close {
    background: rgba(23,23,34,0.18);
    color: #171722;
}

body.light-mode .service-modal-close:hover {
    background: rgba(107,70,217,0.16);
    color: var(--primary);
}

body.modal-open {
    overflow: hidden;
}

/* About / trainers */
.about-text {
    line-height: 2;
    font-size: 15px;
    color: var(--muted);
}

.trainer-card {
    text-align: center;
}

.trainer-image-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(107,70,217,0.30);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.04);
}

.trainer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-card .subtitle {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.light-mode .trainer-card .subtitle {
    color: var(--primary);
}

.about-cta .card {
    padding: 40px 24px;
}

/* Enterprise / Privacy */
.enterprise-hero {
    padding-top: 40px;
}

.enterprise-hero-grid,
.enterprise-grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.enterprise-hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.lead {
    font-size: 18px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 20px;
}

.enterprise-main-image,
.enterprise-side-image {
    width: 100%;
    border-radius: 24px;
    display: block;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.enterprise-main-image {
    min-height: 420px;
}

.enterprise-side-image {
    min-height: 320px;
}

.enterprise-card,
.privacy-card,
.enterprise-cta-box {
    padding: 30px; /* كان 28 */
    background: var(--card);
    border-radius: 20px;
    transition: 0.3s ease;
}

/* مسافة بين مربعات الخصوصية */
.privacy-card {
    margin-bottom: 22px;
}

/* تأثير hover ناعم */
.privacy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 70, 217, 0.4);
}

/* النص داخل الكروت */
.enterprise-card p,
.privacy-card p {
    line-height: 2;
    color: var(--muted);
    margin-bottom: 10px;
}

/* العناوين */
.enterprise-card h3,
.privacy-card h3 {
    margin-bottom: 14px;
    font-size: 22px; /* أخف شوي */
    line-height: 1.4;
}

/* القوائم */
.enterprise-list li,
.privacy-list li {
    line-height: 1.9;
    margin-bottom: 10px;
}

/* تحسين شكل القائمة داخل privacy */
.privacy-list {
    margin-top: 12px;
    gap: 10px;
}

/* كروت المميزات */
.enterprise-feature-card {
    padding: 28px;
    border-radius: 22px;
}

.enterprise-feature-card h3 {
    margin: 14px 0 10px;
}

.enterprise-feature-card p {
    line-height: 1.9;
    color: var(--muted);
}

/* CTA */
.enterprise-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* رابط الفوتر */
.footer-policy-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 800;
}

.service-excerpt.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.8em * 2);
    line-height: 1.8em;
}

/* CTA */
.cta-box {
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(90deg, #120b22, #000000, #120b22);
    border: 1px solid rgba(107,70,217,0.28);
}

body.light-mode .cta-box {
    background: linear-gradient(90deg, #f0e9ff, #ffffff, #f0e9ff);
}

.cta-box p {
    color: var(--muted);
    line-height: 1.9;
    margin-top: 16px;
}

/* Footer */
.footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.78);
}

body.light-mode .footer {
    background: rgba(255,255,255,0.80);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 40px 0;
}

.footer h4 {
    font-size: 14px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
}

body.light-mode .footer h4 {
    color: var(--primary);
}

.footer p,
.footer a {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

.quick-links {
    display: grid;
    gap: 10px;
}

.footer-brand {
    margin-bottom: 14px;
}

/* EMS Accordion */
.ems-accordion .ems-card {
    overflow: hidden;
}

.ems-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 0;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    cursor: pointer;
}

.ems-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107,70,217,0.12);
    color: var(--primary-light);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

body.light-mode .ems-icon {
    color: var(--primary);
}

.ems-accordion .ems-card.active .ems-icon {
    transform: rotate(180deg);
    background: rgba(107,70,217,0.20);
}

@media (max-width: 768px) {
    .ems-accordion .ems-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            margin-top 0.25s ease;
    }

    .ems-accordion .ems-card.active .ems-content {
        opacity: 1;
        margin-top: 12px;
    }

    .ems-toggle {
        margin-bottom: 0;
        min-height: 40px;
    }
}

@media (min-width: 769px) {
    .ems-accordion .ems-content {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        margin-top: 16px !important;
    }

    .ems-toggle {
        cursor: default;
    }

    .ems-icon {
        display: none;
    }
}

/* Responsive */
@media (min-width: 769px) {
    .ems-content {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 16px;
        overflow: visible;
    }

    .ems-toggle {
        cursor: default;
        pointer-events: none;
    }

    .ems-icon {
        display: none;
    }
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-grid,
    .grid-3,
    .contact-grid,
    .footer-grid,
    .info-strip,
    .enterprise-hero-grid,
    .enterprise-grid-2,
    .enterprise-cta-box {
        grid-template-columns: 1fr;
    }

    .grid-4,
    .grid-2,
    .form-grid,
    .hero-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 76px 0 54px;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(38px, 8vw, 64px);
    }

    .hero p {
        max-width: 100%;
    }

    .hero-card,
    .hero-image-card,
    .hero-cover {
        min-height: 520px;
    }

    .ems-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .enterprise-hero-content h1 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 58px 0;
    }

    .header {
        top: 8px;
        width: calc(100% - 12px);
        margin-top: 8px;
        border-radius: 18px;
    }

    .header-inner {
        min-height: 66px;
        padding: 8px 12px;
        gap: 10px;
    }

    .brand-logo {
        width: 72px;
        height: 46px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p,
    .lead,
    .section-title p {
        font-size: 15px;
    }

    .grid-4,
    .grid-2,
    .stats-grid,
    .form-grid,
    .hero-card-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-body {
        padding: 20px;
    }

    .service-card-desc {
        min-height: auto;
    }

    .service-modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 22px;
    }

    .service-modal-image-wrap {
        height: 220px;
        border-radius: 22px 22px 0 0;
    }

    .service-modal-content {
        padding: 20px;
    }

    .service-modal-content h3 {
        font-size: 26px;
    }

    .service-modal-desc,
    .service-modal-details {
        font-size: 15px;
    }

    .service-modal .cta-actions,
    .cta-actions {
        flex-direction: column;
    }

    .service-modal .cta-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .enterprise-card,
    .privacy-card,
    .enterprise-cta-box,
    .cta-box {
        padding: 20px;
        border-radius: 18px;
    }

    .enterprise-hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .section-title h2 {
        font-size: 28px;
    }

    .price {
        font-size: 28px;
    }

    .old-price {
        font-size: 16px;
    }
}