:root {
    --blue: #33a4ef;
    --blue-dark: #168bd3;
    --green: #18c75b;
    --ink: #202020;
    --muted: #6f747b;
    --line: #e5ebf0;
    --surface: #fff;
    --white: #fff;
    --shadow: 0 18px 48px rgba(28, 57, 78, .09);
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
    line-height: 1.7;
    padding-top: 90px;
}
::selection { color: white; background: var(--blue); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 88px; }
section[id] { scroll-margin-top: 108px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(55, 165, 235, .45); outline-offset: 3px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(229, 235, 240, .5); backdrop-filter: blur(12px); }
.header-inner { min-height: 90px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; margin-left: auto; }
.brand img { width: 98px; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.primary-nav a { position: relative; color: #666; font-weight: 500; padding-block: 8px; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--blue-dark); }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.language-button { min-height: 42px; border: 0; border-radius: 12px; padding: 8px 14px; color: #505963; background: #f5f7f9; cursor: not-allowed; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin-block: 5px; background: var(--ink); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 12px 28px; font-weight: 600; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(55, 165, 235, .2); }
.button-primary:hover { background: var(--blue-dark); }
.button-outline { color: var(--blue-dark); border-color: #b9def6; background: white; }
.button-success-outline { color: var(--green); border-color: var(--green); background: white; }
.button-muted { color: #59636d; border-color: var(--line); background: #f5f7f9; }
.button-small { min-height: 44px; padding: 9px 20px; }

.home-hero { min-height: 566px; padding-block: 56px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero-copy h1 { margin: 0 0 24px; font-size: clamp(2rem, 3.2vw, 2.5rem); line-height: 1.32; letter-spacing: -.02em; animation: hero-rise .8s ease-out both; }
.hero-copy h1 span { color: var(--blue); }
.hero-description { max-width: 620px; margin: 0 0 24px; color: rgba(33, 33, 33, .6); font-size: 1.0625rem; font-weight: 500; animation: hero-fade .8s .2s ease-out both; }
.compliance { margin: 0 0 32px; color: var(--green); font-size: .9375rem; font-weight: 500; animation: hero-fade .8s .4s ease-out both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 0; animation: hero-fade .8s .6s ease-out both; }
.hero-visual { direction: ltr; }
.hero-visual { animation: hero-fade .8s .5s ease-out both; }
.hero-visual img { width: 100%; border-radius: 0; object-fit: contain; }

.partners-section { min-height: 300px; padding-block: 64px; border: 0; background: white; text-align: center; }
.partners-section h2 { margin: 0 0 34px; font-size: 1.55rem; }
.partner-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); }
.partner-logos img { width: auto; max-width: 130px; max-height: 64px; object-fit: contain; }

.section-heading { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.25rem); line-height: 1.3; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.wide-heading { max-width: 850px; }
.advantages-section { min-height: 652px; padding-block: 112px; background: white; }
.advantages-layout { display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: 70px; }
.advantage-heading { margin: 0; text-align: right; }
.advantage-heading h2 { font-size: 2.25rem; }
.advantage-grid { min-height: 420px; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); grid-template-rows: 1fr 1fr; align-items: center; gap: 24px; }
.advantage-card { min-height: 176px; display: grid; place-content: center; gap: 14px; margin: 0; border: 1px solid #f3f5f7; border-radius: 32px; background: white; text-align: center; box-shadow: 0 20px 50px rgba(0, 116, 217, .06); transition: box-shadow .3s ease, translate .3s ease; }
.advantage-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.advantage-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.advantage-card:nth-child(3) { grid-column: 2; grid-row: 1; }
.advantage-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.advantage-card:nth-child(5) { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.advantage-card:hover { translate: 0 -8px; box-shadow: 0 28px 55px rgba(0, 116, 217, .1); }
.advantage-card span { width: 54px; height: 54px; display: grid; place-items: center; margin-inline: auto; border-radius: 50%; color: var(--blue); background: #eaf7ff; }
.advantage-card svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.advantage-card h3 { margin: 0; font-size: 1.12rem; }

.features-section { min-height: 1270px; padding-block: 64px; background: white; }
.feature-layout { display: flex; flex-direction: column; align-items: center; gap: 72px; }
.feature-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; border: 1px solid #f0f2f4; border-radius: 16px; background: white; text-align: center; box-shadow: 0 15px 40px rgba(0, 0, 0, .03); transition: translate .3s ease, box-shadow .3s ease; }
.feature-card:hover { translate: 0 -8px; box-shadow: 0 22px 50px rgba(0, 116, 217, .08); }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--blue); border-radius: 50%; background: #eaf7ff; }
.feature-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 18px 0 9px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-visual { width: min(780px, 78%); max-height: 560px; object-fit: contain; }

.stats-section { min-height: 448px; padding-block: 96px; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.stats-grid article { padding: 20px; text-align: center; }
.stats-grid article + article { border: 0; }
.stats-grid strong { display: block; color: var(--blue-dark); font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1; }
.stats-grid p { margin: 12px 0 0; color: var(--muted); }

.steps-section { min-height: 760px; padding-block: 96px; background: white; }
.steps-stage { position: relative; max-width: 1250px; min-height: 550px; height: 480px; margin-inline: auto; }
.steps-connector { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; color: rgba(0, 116, 217, .4); pointer-events: none; }
.steps-connector path { animation: dash-flow 50s linear infinite; }
.steps-list { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; direction: rtl; }
.steps-list li { display: flex; flex-direction: column; align-items: center; padding: 0 14px; text-align: center; }
.steps-list li:nth-child(odd) { justify-content: flex-start; }
.steps-list li:nth-child(even) { justify-content: center; }
.step-content { display: flex; flex-direction: column; align-items: center; margin-top: 42%; }
.step-content > span { position: relative; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; color: white; background: var(--blue); font-size: .9375rem; font-weight: 700; box-shadow: 0 5px 15px rgba(0, 116, 217, .3); }
.step-content > div { max-width: 180px; padding-inline: 8px; background: white; }
.steps-list h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.45; }
.steps-list p { margin: 0; color: rgba(33, 33, 33, .5); font-size: .8125rem; line-height: 1.7; }

@keyframes dash-flow {
    from { stroke-dashoffset: 2000; }
    to { stroke-dashoffset: 0; }
}

.page-hero { padding-block: 72px; color: white; background: linear-gradient(135deg, #168bd3, #37a5eb); }
.page-hero-content { max-width: 820px; text-align: center; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.25; }
.page-hero p { max-width: 700px; margin: 0 auto; font-size: 1.15rem; opacity: .94; }

.contact-section { background: var(--surface); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); align-items: start; gap: 30px; }
.contact-form-card, .contact-options article { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.contact-form-card { padding: clamp(24px, 4vw, 42px); }
.contact-form-card > h2 { margin: 0 0 28px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.full-field { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field label span { color: #d22; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9e1e7; border-radius: 10px; padding: 12px 14px; color: var(--ink); background: white; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(55, 165, 235, .14); }
.field small { color: var(--muted); }
.form-actions { display: flex; gap: 12px; }
.contact-options { display: grid; gap: 20px; }
.contact-options article { padding: 28px; }
.contact-options article > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-dark); background: #eaf7ff; font-size: 1.3rem; }
.contact-options h2 { margin: 15px 0 6px; font-size: 1.25rem; }
.contact-options p { margin: 0 0 12px; color: var(--muted); }
.contact-options a { color: var(--blue-dark); font-weight: 700; }

.legal-page { max-width: 920px; padding-block: 56px 88px; }
.last-updated { display: inline-flex; margin: 0 0 24px; padding: 9px 14px; border-radius: 999px; color: #53616d; background: #edf4f8; font-size: .95rem; }
.legal-section { padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.legal-section + .legal-section { margin-top: 18px; }
.legal-section h2 { margin: 0 0 14px; color: #1d3243; font-size: 1.35rem; }
.legal-section-content { color: #4f5962; }
.legal-section-content p { margin: 0 0 12px; }
.legal-section-content p:last-child { margin-bottom: 0; }
.legal-section-content ul, .legal-section-content ol { margin: 10px 0 4px; padding-right: 24px; }
.legal-section-content li + li { margin-top: 8px; }
.legal-section-content a { color: var(--blue-dark); text-decoration: underline; }

.site-footer { color: var(--ink); border-top: 1px solid rgba(229, 235, 240, .7); background: white; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr 1fr 1fr; gap: 45px; padding-block: 64px 44px; }
.site-footer h2 { margin: 0 0 18px; color: var(--ink); font-size: 1.12rem; }
.footer-brand img { width: 128px; padding: 0; border-radius: 0; background: transparent; }
.footer-brand p { max-width: 370px; margin: 18px 0 0; color: var(--muted); }
.footer-links, .contact-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a:hover, .contact-list a:hover { color: var(--blue); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 9px; }
.payment-methods img { width: 54px; height: 34px; padding: 5px; border-radius: 5px; background: white; object-fit: contain; }
.footer-bottom { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.made-in-saudi { display: flex; align-items: center; gap: 10px; }
.made-in-saudi img { width: 54px; max-height: 50px; object-fit: contain; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.motion-ready [data-reveal] {
    opacity: 0;
    translate: 0 45px;
    transition: opacity .85s cubic-bezier(.16, 1, .3, 1), translate .85s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal="fade"] { translate: none; }
.motion-ready [data-reveal="slide-right"] { translate: 58px 0; }
.motion-ready [data-reveal].is-revealed { opacity: 1; translate: 0 0; }
.motion-ready .float-fast.is-revealed { animation: card-float 5s ease-in-out infinite; }
.motion-ready .float-slow.is-revealed { animation: card-float 7s ease-in-out infinite; }
.motion-ready .float-delayed.is-revealed { animation: card-float 6s 1s ease-in-out infinite; }
.motion-ready .float-extra-slow.is-revealed { animation: card-float 9s .5s ease-in-out infinite; }

@supports (animation-timeline: view()) {
    .feature-visual.is-revealed { animation: illustration-focus 1.1s cubic-bezier(.16, 1, .3, 1) both; }
}

@keyframes illustration-focus {
    from { opacity: 0; filter: blur(8px); clip-path: inset(10% 8%); }
    to { opacity: 1; filter: blur(0); clip-path: inset(0); }
}

@media (max-width: 1040px) {
    .header-inner { gap: 18px; }
    .primary-nav { gap: 20px; }
    .header-actions .button-primary { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-description { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 760px; margin-inline: auto; }
    .advantages-layout { grid-template-columns: 1fr; gap: 45px; }
    .advantage-heading { max-width: 700px; margin-inline: auto; text-align: center; }
    .advantage-grid { width: min(700px, 100%); margin-inline: auto; grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-visual { max-height: 360px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    body { padding-top: 74px; }
    .container { width: min(100% - 28px, 1180px); }
    .section { padding-block: 62px; }
    .header-inner { min-height: 74px; }
    .brand img { width: 82px; }
    .menu-toggle { display: block; order: 3; }
    .primary-nav { position: absolute; inset: 74px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 18px 30px rgba(28, 57, 78, .08); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px; }
    .header-actions { gap: 8px; }
    .header-actions .button-outline { min-height: 40px; padding: 7px 12px; }
    .language-button { display: none; }
    .home-hero { min-height: 0; padding-block: 52px; }
    .hero-grid { gap: 36px; }
    .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
    .hero-description { font-size: 1rem; }
    .hero-actions .button { flex: 1 1 180px; }
    .partner-logos img { max-width: 95px; max-height: 52px; }
    .advantages-section, .features-section, .stats-section, .steps-section { min-height: 0; }
    .advantage-grid { min-height: 0; grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 16px; }
    .advantage-card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .advantage-card:nth-child(5) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
    .feature-grid, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
    .feature-layout { gap: 46px; }
    .feature-visual { width: 100%; max-height: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 35px; }
    .steps-stage { min-height: 0; height: auto; }
    .steps-connector { display: none; }
    .steps-list { height: auto; grid-template-columns: 1fr; gap: 24px; padding-right: 30px; }
    .steps-list li, .steps-list li:nth-child(even), .steps-list li:nth-child(odd) { min-height: 115px; display: block; padding: 0; text-align: right; }
    .step-content { position: relative; flex-direction: row; align-items: flex-start; gap: 18px; margin-top: 0; }
    .step-content::after { content: ""; position: absolute; top: 44px; right: 17px; height: calc(100% + 72px); border-right: 2px dashed #b9def6; }
    .steps-list li:last-child .step-content::after { display: none; }
    .step-content > span { flex: 0 0 auto; margin-bottom: 0; }
    .step-content > div { max-width: none; padding: 5px 0 0; }
    .contact-form { grid-template-columns: 1fr; }
    .field { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 25px; }
}

@media (max-width: 480px) {
    .advantage-grid { grid-template-columns: 1fr; }
    .advantage-card:nth-child(5) { grid-column: auto; width: 100%; }
    .form-actions { flex-direction: column; }
    .legal-section { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .hero-copy h1, .hero-description, .compliance, .hero-actions, .hero-visual,
    .motion-ready .float-fast.is-revealed, .motion-ready .float-slow.is-revealed,
    .motion-ready .float-delayed.is-revealed, .motion-ready .float-extra-slow.is-revealed {
        animation: none !important;
    }
}
