/* vertixapps.com — one stylesheet for both languages (Arabic sets dir="rtl" and its own font). The brochure's look:
   the purple gradient, Inter / IBM Plex Sans Arabic, soft cards. Logical properties throughout so RTL needs no overrides. */
:root {
  --ink: #1d1b2f;
  --muted: #5d5a73;
  --line: #e7e4f2;
  --soft: #f6f4fd;
  --surface: #ffffff;
  --brand: #4a00e0;
  --brand-2: #8e2de2;
  --brand-ink: #3a0fa8;
  --brand-deep: #2b0a7a;
  --focus: #ffb800;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 10, 122, .10);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
html[lang="ar"] { --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.bi { line-height: 1; }
.rtl-flip { display: inline-block; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 600;
  font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; min-height: 48px; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(74, 0, 224, .28); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { color: var(--brand); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { padding: .5rem 1rem; min-height: 40px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: .25rem; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .5rem .75rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { font-weight: 600; text-decoration: none; padding: .5rem .75rem; border-radius: 8px; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.lang-switch:hover { background: var(--soft); color: var(--brand); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; font-size: 1.4rem; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: .75rem 20px 1.25rem; box-shadow: var(--shadow); gap: .1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .75rem; }
  .header-actions .btn { display: none; }
  .nav .nav-demo { display: inline-flex; margin-top: .5rem; }
}
@media (min-width: 961px) { .nav .nav-demo { display: none; } }

/* Hero */
.hero { color: #fff; background: linear-gradient(140deg, var(--brand-deep) 0%, var(--brand) 45%, var(--brand-2) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); pointer-events: none; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: #d9c9ff; }
.hero .lead { color: #ece4ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding: 0; list-style: none; }
.chips li a, .chips li span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }
.chips li a:hover { background: rgba(255, 255, 255, .22); }
.page-hero { background: linear-gradient(140deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-2) 100%); color: #fff; }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-hero .eyebrow { color: #d9c9ff; }
.page-hero .lead { color: #ece4ff; }
.page-hero.app-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 960px) {
  .hero .wrap, .page-hero.app-hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 32px; }
}

/* Screenshot in a browser frame */
.frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(15, 0, 60, .35); border: 1px solid rgba(255, 255, 255, .35); }
.frame-bar { height: 28px; background: #efedf7; display: flex; align-items: center; gap: 6px; padding-inline-start: 12px; }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3cfe3; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.section .frame { box-shadow: var(--shadow); border-color: var(--line); }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
@media (max-width: 640px) { .section { padding: 56px 0; } }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: .97rem; }
a.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6cdf6; color: var(--ink); }
a.card .more { margin-top: auto; padding-top: .75rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.icon { width: 48px; height: 48px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: var(--soft); color: var(--brand); margin-bottom: 1rem; flex: 0 0 auto; }
.icon-solid { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.icon-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.9rem; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { margin-bottom: 0; }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.group-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2.25rem 0 1rem; font-weight: 700; }
html[lang="ar"] .group-title { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.group-title:first-child { margin-top: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Lists */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-inline-start: 1.9rem; margin-bottom: .8rem; }
ul.checks li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; inset-inline-start: 0; top: .1em; color: var(--brand); font-size: 1.15rem; }
ul.checks li strong { display: block; }
ul.checks li span { color: var(--muted); }
ol.flow { margin: 0; padding-inline-start: 1.3rem; }
ol.flow li { margin-bottom: .45rem; color: var(--muted); }
ol.flow li::marker { color: var(--brand); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .5rem 0 1rem; list-style: none; }
.tags a { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; padding: .3rem .7rem; border-radius: 999px; background: var(--soft);
  color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.tags a:hover { background: #ebe5fb; }

/* App page */
.app-head { display: flex; gap: 18px; align-items: center; margin-bottom: 1rem; }
.app-head h1 { margin: 0; }
.who { padding: 14px 18px; background: rgba(255, 255, 255, .12); border-radius: 12px; margin-top: 1.25rem; }
.who strong { margin-inline-end: .4rem; }
.works { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--soft); margin-top: 2rem; }
.works .bi { color: var(--brand); font-size: 1.35rem; }
.works p { margin: 0; }

/* CTA band */
.cta { background: linear-gradient(140deg, var(--brand-deep), var(--brand) 55%, var(--brand-2)); color: #fff; border-radius: 22px; padding: 48px;
  display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin-bottom: .4rem; }
.cta p { color: #ece4ff; margin: 0; max-width: 38rem; }
.cta .hero-actions { margin-top: 0; }
@media (max-width: 640px) { .cta { padding: 32px 24px; } }

/* Prose (about, legal) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .97rem; }
.field .req { color: #b42318; margin-inline-start: .15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1px solid #cfcade; border-radius: 10px; background: #fff; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(74, 0, 224, .25); border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field .error { color: #b42318; font-size: .9rem; margin-top: .3rem; display: none; }
.field .error.show { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.app-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; }
@media (max-width: 640px) { .app-checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { border-radius: 12px; padding: 14px 18px; margin-top: 1.25rem; display: none; }
.notice.show { display: block; }
.notice-ok { background: #e8f6ee; color: #135c33; border: 1px solid #b7e2c8; }
.notice-info { background: var(--soft); color: var(--brand-ink); border: 1px solid #ddd4f7; }
.notice-err { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bd; }
.contact-side .card + .card { margin-top: 18px; }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }

/* Brochure */
.brochure-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.site-footer { background: #15122a; color: #c9c5dc; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #e7e3f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: .9rem; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
html[lang="ar"] .footer-grid h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .92rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .icon { margin-inline: auto; }
