@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --blue: #15a8e3;
    --blue-dark: #0b5d82;
    --blue-soft: #e8f8ff;
    --orange: #ff8a22;
    --orange-dark: #d96500;
    --white: #ffffff;
    --dark: #0f2430;
    --muted: #667783;
    --border: #e6eef3;
    --bg: #f7fbfd;
    --shadow: 0 24px 70px rgba(10, 61, 84, .12);
    --radius-lg: 28px;
    --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(21,168,227,.12);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 26px;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    box-shadow: 0 14px 28px rgba(21,168,227,.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 900; }
.brand-text small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #34515e;
    font-weight: 700;
    transition: .25s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--blue-dark); background: var(--blue-soft); }
.header-cta, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.header-cta { padding: 12px 20px; background: var(--orange); color: #fff; box-shadow: 0 12px 25px rgba(255,138,34,.25); white-space: nowrap; }
.header-cta:hover, .btn:hover { transform: translateY(-2px); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--blue-soft); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-dark); margin: 5px auto; border-radius: 2px; }

.hero-section { position: relative; padding: 84px 0 58px; background: radial-gradient(circle at 15% 20%, rgba(255,138,34,.17), transparent 34%), radial-gradient(circle at 85% 10%, rgba(21,168,227,.22), transparent 32%), linear-gradient(180deg, #fff, #f4fbff); }
.hero-section::before { content: ''; position: absolute; inset: auto -120px -220px auto; width: 480px; height: 480px; border-radius: 50%; background: rgba(21,168,227,.1); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; position: relative; z-index: 1; }
.eyebrow, .section-kicker, .section-head span, .page-hero span, .cta-card span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-weight: 900;
    font-size: 14px;
}

.hero-brand-logo {
    width: min(340px, 88%);
    height: auto;
    margin: 0 0 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(10, 61, 84, .08);
}

.hero-content h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.12; margin: 20px 0; letter-spacing: -1px; font-weight: 900; }
.hero-content p { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.btn { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--orange), #ffae5b); box-shadow: 0 18px 30px rgba(255,138,34,.28); }
.btn-outline { color: var(--blue-dark); border: 1px solid rgba(21,168,227,.28); background: #fff; }
.btn-small { min-height: 40px; padding: 9px 18px; font-size: 14px; background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(21,168,227,.22); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 9px 14px; border-radius: 999px; background: #fff; color: #43606c; border: 1px solid var(--border); font-weight: 700; }
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.dashboard-card { width: min(470px, 100%); border-radius: 34px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); border: 1px solid rgba(21,168,227,.16); padding: 24px; }
.main-dashboard { transform: rotate(-2deg); }
.browser-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.browser-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.browser-dots i:nth-child(2) { background: var(--blue); }
.browser-dots i:nth-child(3) { background: #9eddf5; }
.screen-block { height: 140px; border-radius: 22px; background: linear-gradient(135deg, var(--blue), #92ddf7); position: relative; overflow: hidden; }
.screen-block::after { content: ''; position: absolute; inset: 26px 38px auto auto; width: 170px; height: 70px; border-radius: 18px; background: rgba(255,255,255,.55); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.mini-grid span { height: 74px; border-radius: 18px; background: #eef8fc; border: 1px solid var(--border); }
.progress-line { height: 12px; border-radius: 999px; background: #edf3f6; overflow: hidden; margin-bottom: 20px; }
.progress-line b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--blue)); }
.screen-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen-row strong { font-size: 20px; }
.screen-row em { font-style: normal; color: var(--orange-dark); font-weight: 900; }
.floating-badge { position: absolute; background: #fff; padding: 12px 18px; border-radius: 18px; box-shadow: 0 18px 36px rgba(10,61,84,.14); font-weight: 900; color: var(--blue-dark); }
.badge-one { top: 44px; left: 28px; }
.badge-two { right: 14px; bottom: 72px; color: var(--orange-dark); }

.stats-section { margin-top: -22px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border-radius: var(--radius-md); box-shadow: 0 16px 45px rgba(10,61,84,.08); padding: 24px; border: 1px solid rgba(21,168,227,.12); }
.stat-card strong { display: block; font-size: 36px; color: var(--blue-dark); line-height: 1; }
.stat-card span { color: var(--muted); font-weight: 700; }
.section { padding: 82px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.section-head h2, .split-grid h2, .cta-card h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; margin: 0; font-weight: 900; }
.section-head p, .split-grid p { color: var(--muted); margin: 0; font-size: 18px; }
.services-grid, .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card, .partner-card, .work-card, .content-box, .feature-list div, .contact-form, .contact-info, .empty-state {
    background: #fff;
    border: 1px solid rgba(21,168,227,.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(10,61,84,.08);
}
.service-card { padding: 28px; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255,138,34,.35); }
.service-card span { color: var(--orange); font-weight: 900; }
.service-card h3 { margin: 10px 0 8px; font-size: 23px; }
.service-card p { color: var(--muted); margin: 0; }
.about-preview { background: #fff; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.feature-list { display: grid; gap: 14px; }
.feature-list div { padding: 22px; }
.feature-list strong { display: block; font-size: 20px; margin-bottom: 4px; }
.feature-list span { color: var(--muted); }
.text-link { display: inline-flex; margin-top: 22px; color: var(--orange-dark); font-weight: 900; }
.works-preview { background: linear-gradient(180deg, #f7fbfd, #fff); }
.work-card { overflow: hidden; display: flex; flex-direction: column; transition: .25s ease; }
.work-card:hover { transform: translateY(-5px); }
.work-card img { width: 100%; height: 235px; object-fit: cover; background: var(--blue-soft); }
.work-card div { padding: 22px; }
.work-card h2, .work-card h3 { margin: 0 0 8px; font-size: 24px; }
.work-card p { color: var(--muted); margin: 8px 0 18px; }
.work-card small { color: var(--blue-dark); font-weight: 800; }
.featured-label { display: inline-flex; margin-bottom: 10px; padding: 6px 12px; border-radius: 999px; background: #fff0e0; color: var(--orange-dark); font-weight: 900; }
.center-action { display: flex; justify-content: center; margin-top: 34px; }
.partners-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-logo, .partner-card { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; background: #fff; border-radius: 24px; border: 1px solid rgba(21,168,227,.12); min-height: 150px; padding: 20px; transition: .25s ease; }
.partner-logo:hover, .partner-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,61,84,.08); }
.partner-logo img, .partner-card img { width: 82px; height: 82px; object-fit: contain; }
.partner-card h2 { margin: 0; font-size: 23px; }
.partner-card p { color: var(--muted); margin: 0 0 12px; }
.cta-section { padding: 50px 0 90px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 34px; padding: 42px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; box-shadow: var(--shadow); }
.cta-card span { color: #fff; background: rgba(255,255,255,.16); }
.cta-card h2 { max-width: 760px; }

.page-hero { padding: 74px 0; background: radial-gradient(circle at 20% 15%, rgba(255,138,34,.14), transparent 32%), linear-gradient(135deg, #fff, #ecf9ff); text-align: center; }
.compact-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.2; margin: 14px auto; max-width: 860px; }
.compact-hero p { max-width: 720px; color: var(--muted); margin: 0 auto; font-size: 19px; }
.about-page-grid { align-items: stretch; }
.content-box { padding: 34px; }
.partners-grid { grid-template-columns: repeat(3, 1fr); }
.wide-works-grid { grid-template-columns: repeat(3, 1fr); }
.empty-state { padding: 42px; text-align: center; font-size: 20px; font-weight: 800; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.contact-form, .contact-info { padding: 30px; }
.contact-form label { display: block; font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; font-size: 16px; background: #fbfdfe; color: var(--dark); outline: none; transition: .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,168,227,.09); }
.contact-info h2 { margin-top: 0; font-size: 30px; }
.contact-info p { color: var(--muted); }
.contact-card-note { margin-top: 18px; border-radius: 20px; padding: 18px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 800; }
.alert-success { background: #e9fff2; color: #08733c; }
.alert-error { background: #fff0f0; color: #ba1a1a; }
.site-footer { background: #081f2b; color: #d9edf5; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 34px; }
.footer-grid h3 { margin: 0 0 12px; color: #fff; }
.footer-grid a, .footer-grid span { display: block; color: #d9edf5; margin: 8px 0; }
.footer-brand { color: #fff; }
.footer-button { width: fit-content; margin-top: 12px !important; padding: 9px 14px; border-radius: 999px; background: var(--orange); color: #fff !important; font-weight: 900; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; color: #9bb7c3; }
.footer-bottom a { color: #fff; }
.reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .header-inner { min-height: 76px; }
    .brand { min-width: auto; }
    .brand-text small { display: none; }
    .main-nav { position: fixed; inset: 76px 16px auto 16px; padding: 16px; border-radius: 24px; flex-direction: column; align-items: stretch; background: #fff; box-shadow: var(--shadow); transform: translateY(-18px); opacity: 0; pointer-events: none; transition: .25s ease; }
    .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .main-nav a { text-align: center; }
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-section { padding-top: 54px; }
    .hero-visual { min-height: 360px; }
    .stats-grid, .partners-strip { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .cards-grid, .partners-grid, .wide-works-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, 1180px); }
    .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
    .brand-text strong { font-size: 15px; }
    .hero-content h1 { font-size: 35px; }
    .hero-content p { font-size: 17px; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { min-height: 320px; }
    .dashboard-card { padding: 18px; border-radius: 26px; }
    .screen-block { height: 105px; }
    .mini-grid span { height: 54px; }
    .floating-badge { display: none; }
    .stats-grid, .services-grid, .cards-grid, .partners-strip, .partners-grid, .wide-works-grid, .footer-grid { grid-template-columns: 1fr; }
    .stat-card, .service-card, .content-box, .contact-form, .contact-info { padding: 22px; }
    .section { padding: 58px 0; }
    .cta-card { flex-direction: column; align-items: flex-start; padding: 28px; }
    .cta-card .btn { width: 100%; }
    .footer-bottom { flex-direction: column; }
}


/* Logo integration */
.brand-mark.brand-mark-image {
    background: #fff;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(21,168,227,.16);
}
.brand-mark.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.footer-brand .brand-mark.brand-mark-image {
    background: rgba(255,255,255,.96);
    border-color: rgba(255,255,255,.18);
}
.footer-brand .brand-text small { color: rgba(255,255,255,.72); }
