:root {
    --navy: #06123d;
    --navy-2: #0b1d5c;
    --blue: #2563eb;
    --indigo: #4338ca;
    --cyan: #22d3ee;
    --purple: #9333ea;
    --magenta: #d946ef;
    --text: #0f172a;
    --muted: #475569;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --brand: linear-gradient(135deg, #2563eb 0%, #22d3ee 45%, #9333ea 75%, #d946ef 100%);
    --btn: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Cairo', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-weight: 600; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.actions { display: flex; align-items: center; gap: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.15rem; border-radius: 10px; font-family: inherit; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; border-radius: 12px; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(37, 99, 235, .8); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--blue); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5rem 0 7rem; color: #fff;
    background: radial-gradient(circle at 10% 15%, rgba(34, 211, 238, .22), transparent 38%),
                radial-gradient(circle at 90% 85%, rgba(147, 51, 234, .28), transparent 40%),
                linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.badge { display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: #c7d2fe; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 span { display: block; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #a5b4fc; font-size: .95rem; font-weight: 600; }

/* Dashboard mockup */
.hero-visual { position: relative; }
.mockup { background: #fff; border-radius: 18px; overflow: hidden; color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
[dir="rtl"] .mockup { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; background: #f1f5f9; border-bottom: 1px solid var(--border); direction: ltr; }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mockup-bar span:nth-child(1) { background: #f87171; }
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }
.mockup-url { flex: 1; margin-inline-start: .75rem; background: #fff; border-radius: 6px; padding: .15rem .75rem; font-size: .75rem; color: #64748b; }
.mockup-body { display: flex; min-height: 330px; }
.mockup-side { width: 56px; background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1rem 0; }
.mockup-side i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.mockup-side i.active { background: var(--btn); }
.mockup-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; background: #f8fafc; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .65rem .75rem; }
.kpi small, .panel small { display: block; color: #64748b; font-size: .72rem; font-weight: 600; }
.kpi strong { display: block; font-size: 1.15rem; color: var(--navy); line-height: 1.4; }
.kpi em { font-style: normal; font-size: .72rem; font-weight: 700; color: #059669; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .75rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 95px; margin-top: .5rem; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60a5fa, #4338ca); animation: grow 1s ease-out both; animation-delay: var(--d); }
.bars span:last-child { background: linear-gradient(180deg, #e879f9, #9333ea); }
@keyframes grow { from { height: 0; } }
.activity { display: flex; align-items: center; gap: .5rem; font-size: .78rem; padding: .35rem 0; border-top: 1px solid #f1f5f9; }
.activity:first-of-type { border-top: 0; margin-top: .3rem; }
.activity span { flex: 1; color: #334155; }
.activity b { color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: #10b981; }
.dot.blue { background: #3b82f6; }
.dot.purple { background: #a855f7; }
.float { position: absolute; background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; padding: .6rem 1rem; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: floaty 4s ease-in-out infinite; white-space: nowrap; }
.float-1 { top: -1.5rem; inset-inline-start: 1.5rem; }
.float-2 { bottom: 10%; inset-inline-end: -1.5rem; animation-delay: 1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -3.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .18); border: 1px solid var(--border); padding: 1.75rem 1rem; }
.stat { text-align: center; padding: .25rem 1rem; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; background: var(--btn); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--navy); margin-bottom: .75rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px -15px rgba(37, 99, 235, .25); border-color: #c7d2fe; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #e0e7ff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; }
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); }

/* Steps */
.steps-section { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.step { text-align: center; padding: 1rem; }
.step-num { width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: var(--btn); box-shadow: 0 12px 25px -10px rgba(67, 56, 202, .8); }
.step h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--muted); }

/* About */
.about-content { max-width: 820px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }
.about-content p + p { margin-top: 1rem; }

/* CTA band */
.cta-band { padding: 0 0 1rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.75rem 3rem; border-radius: 24px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(217, 70, 239, .35), transparent 45%), var(--btn); box-shadow: 0 30px 60px -25px rgba(67, 56, 202, .7); }
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3rem; }
.cta-inner p { color: #e0e7ff; }

/* Contact */
.contact-grid .card { text-align: center; }
.contact-grid .card .icon { margin-inline: auto; }
.contact-grid .card a { color: var(--blue); font-weight: 700; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; padding: 2.5rem 0; text-align: center; }
.footer img { height: 56px; width: auto; margin: 0 auto 1.25rem; background: #fff; padding: .6rem 1.25rem; border-radius: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
    .hero { padding: 3.5rem 0 6.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-text p { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .mockup, [dir="rtl"] .mockup { transform: none; }
    .float-1 { inset-inline-start: .5rem; top: -1rem; }
    .float-2 { inset-inline-end: .5rem; bottom: -1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
    .stat:nth-child(3) { border-inline-start: 0; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 1rem; }
    .nav.open { display: flex; }
    .nav a { padding: .8rem 0; width: 100%; text-align: center; }
}
@media (max-width: 560px) {
    .logo img { height: 28px; }
    .actions .btn-primary { padding: .5rem .8rem; font-size: .85rem; }
    .kpi strong { font-size: .95rem; }
    .mockup-side { width: 40px; }
    .float { font-size: .75rem; padding: .45rem .75rem; }
    .cta-inner { padding: 2rem 1.5rem; text-align: center; justify-content: center; }
}