/*
 * AurBoss — shared marketing pages stylesheet (PREMIUM / "wow" pass).
 * Powers the ported public pages: About, Features, Marketing, Devices, Product
 * sub-home, Help. Prefix .abm- (AurBoss Marketing). Class names are unchanged
 * from the first build — this file only upgrades the visual design.
 *
 * Type: display headings in Tajawal (heavy, geometric); body in Almarai.
 */
:root {
  --abm-blue: #007da9;
  --abm-cyan: #12b3e6;
  --abm-blue-dark: #0a5f86;
  --abm-navy: #0d2b45;
  --abm-ink: #16233a;
  --abm-muted: #5b6675;
  --abm-line: #e7eef4;
  --abm-bg: #f4f9fc;
  --abm-card: #ffffff;
  --abm-grad: linear-gradient(120deg, var(--abm-cyan), var(--abm-blue) 55%, var(--abm-blue-dark));
  --abm-glow: 0 24px 60px -28px rgba(0, 125, 169, .55);
}

.abm-page {
  width: 100%;
  font-family: 'Almarai', 'Segoe UI', sans-serif;
  color: var(--abm-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Display font for every heading (override the layout's Almarai !important). */
.abm-page h1, .abm-page h2, .abm-page h3, .abm-page h4,
.abm-hero-title, .abm-section-title, .abm-cta-title, .abm-zz-title,
.abm-card-title, .abm-stat-num, .abm-hero-eyebrow, .abm-btn {
  font-family: 'Tajawal', 'Almarai', sans-serif !important;
  letter-spacing: -0.01em;
}

/* Explicit heading colors — vendor.css sets bare h2/h3 to #666, which bleeds
   into our headings (muddy grey over images). Scoped selectors override it. */
.abm-page .abm-hero-title { color: #fff; }
.abm-page .abm-cta-title, .abm-page .abm-cta-eyebrow, .abm-page .abm-cta-text { color: #fff; }
.abm-page .abm-section-title { color: var(--abm-ink); }
.abm-page .abm-card-title, .abm-page .abm-faq-q, .abm-page .abm-split-block h3 { color: var(--abm-ink); }
/* Gradient-clipped titles win over the vendor colour via text-fill. */
.abm-accent, .abm-section-title .accent, .abm-zz-text .abm-zz-title,
.abm-split-block h3, .abm-stat-num, .abm-solution .abm-card-title {
  -webkit-text-fill-color: transparent;
}

/* ---------- Scroll-reveal (activated only when JS adds .abm-js to <html>) ---------- */
.abm-js .abm-rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1); will-change: opacity, transform; }
.abm-js .abm-rv.abm-rv--in { opacity: 1; transform: none; }

/* Full-width band. The marketing content panel is made full-width on these
   pages (see .abx-shell--hasheader overrides), so a plain 100% spans edge to
   edge — and unlike the old 100vw trick it stays correct under page zoom. */
.abm-bleed { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.abm-hero {
  min-height: 66vh; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 100px 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b2740 0%, #0a5f86 55%, #068ab8 100%);
  background-size: 200% 200%; animation: abm-pan 16s ease infinite;
}
@keyframes abm-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.abm-hero::before { /* aurora glows + subtle dot grid */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 12% 6%, rgba(18, 179, 230, .55), transparent 60%),
    radial-gradient(55% 70% at 92% 104%, rgba(5, 28, 48, .6), transparent 55%),
    radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px);
  background-size: auto, auto, 24px 24px;
}
.abm-hero::after { /* soft floating orb */
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; top: -160px; inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(18, 179, 230, .35), transparent 70%); filter: blur(10px); animation: abm-float 9s ease-in-out infinite;
}
@keyframes abm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(28px); } }
.abm-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.abm-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 800; letter-spacing: .2px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  padding: .42rem 1.1rem; border-radius: 999px; margin-bottom: 1.3rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.abm-hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--abm-cyan); box-shadow: 0 0 0 4px rgba(18, 179, 230, .3); }
.abm-hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; margin: 0 0 1.1rem; line-height: 1.2; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.abm-hero-sub { font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.95; opacity: .95; margin: 0 auto; max-width: 720px; font-weight: 300; }
.abm-hero .abm-btn { margin-top: 1.8rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
/* Full-width section band; inner content centred to a max reading width via
   logical side padding (no viewport units → zoom-safe). */
.abm-section { padding: 74px max(24px, calc((100% - 1500px) / 2)); position: relative; }
.abm-section--tint { background: var(--abm-bg); }
.abm-section--tint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 50% at 85% 0%, rgba(18, 179, 230, .1), transparent 60%),
              radial-gradient(50% 50% at 0% 100%, rgba(0, 125, 169, .08), transparent 60%);
}
.abm-section > * { position: relative; z-index: 1; }
.abm-section-head { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.abm-section-title { font-size: clamp(1.65rem, 3.1vw, 2.3rem); font-weight: 900; margin: 0 0 1rem; line-height: 1.3; }
.abm-section-head .abm-section-title { display: inline-block; }
.abm-section-head .abm-section-title::after {
  content: ""; display: block; width: 62px; height: 4px; border-radius: 4px; margin: 14px auto 0; background: var(--abm-grad);
}
.abm-section-title .accent, .abm-accent {
  background: var(--abm-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.abm-section-sub { font-size: 1.05rem; color: var(--abm-muted); line-height: 1.95; margin: 0; font-weight: 400; }

/* ==========================================================================
   Card grids
   ========================================================================== */
.abm-grid { display: grid; gap: 22px; }
.abm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.abm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.abm-grid-2 { grid-template-columns: repeat(2, 1fr); }

.abm-card {
  position: relative; background: var(--abm-card); border: 1px solid var(--abm-line); border-radius: 22px; padding: 30px 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .03);
}
.abm-card::before { /* gradient top strip revealed on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--abm-grad);
  transform: scaleX(0); transform-origin: center; transition: transform .35s ease;
}
.abm-card:hover { transform: translateY(-8px); box-shadow: var(--abm-glow); border-color: transparent; }
.abm-card:hover::before { transform: scaleX(1); }
.abm-card-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 1.9rem;
  color: #fff; background: var(--abm-grad); margin-bottom: 18px; box-shadow: 0 12px 26px -12px rgba(0, 125, 169, .8);
  transition: transform .3s;
}
.abm-card:hover .abm-card-icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.abm-card-title { font-size: 1.14rem; font-weight: 800; margin: 0 0 .55rem; }
.abm-card-desc { font-size: .95rem; color: var(--abm-muted); line-height: 1.85; margin: 0; }

/* ==========================================================================
   Zig-zag feature rows
   ========================================================================== */
.abm-zz { display: flex; flex-direction: column; gap: 60px; }
.abm-zz-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; }
.abm-zz-row:nth-child(even) { direction: rtl; }
.abm-zz-row:nth-child(even) > * { direction: inherit; }
.abm-page[dir="rtl"] .abm-zz-row:nth-child(even) { direction: ltr; }
.abm-zz-text .abm-zz-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; margin: 0 0 1.1rem; }
.abm-zz-text .abm-zz-title { background: var(--abm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abm-zz-text p { font-size: 1.04rem; color: var(--abm-muted); line-height: 2; margin: 0 0 1.4rem; }
.abm-zz-img {
  position: relative; border-radius: 24px; padding: 8px; background: linear-gradient(135deg, rgba(18, 179, 230, .5), rgba(13, 43, 69, .5));
  box-shadow: 0 30px 60px -30px rgba(13, 43, 69, .6); animation: abm-float 8s ease-in-out infinite;
}
.abm-zz-img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 18px; }

/* ==========================================================================
   Split (image + text blocks)
   ========================================================================== */
.abm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.abm-split-img { position: relative; border-radius: 24px; padding: 8px; background: linear-gradient(135deg, rgba(18, 179, 230, .45), rgba(13, 43, 69, .45)); box-shadow: 0 30px 60px -32px rgba(13, 43, 69, .6); }
.abm-split-img img { width: 100%; display: block; border-radius: 18px; }
.abm-split-block { margin-bottom: 28px; padding-inline-start: 18px; border-inline-start: 3px solid transparent; border-image: var(--abm-grad) 1; }
.abm-split-block:last-child { margin-bottom: 0; }
.abm-split-block h3 { font-size: 1.35rem; font-weight: 900; margin: 0 0 .5rem; background: var(--abm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abm-split-block p { font-size: 1.02rem; color: var(--abm-muted); line-height: 1.95; margin: 0; }

/* ==========================================================================
   Stats / counters
   ========================================================================== */
.abm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.abm-stat {
  flex: 1 1 220px; max-width: 280px; text-align: center; background: var(--abm-card);
  border: 1px solid var(--abm-line); border-radius: 24px; padding: 38px 22px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -34px rgba(13, 43, 69, .4);
}
.abm-stat::before { content: ""; position: absolute; top: -40px; inset-inline-end: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 179, 230, .16), transparent 70%); }
.abm-stat-num { font-size: 3rem; font-weight: 900; line-height: 1; background: var(--abm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abm-stat-label { font-size: 1rem; color: var(--abm-muted); font-weight: 700; margin-top: .7rem; }

/* ==========================================================================
   Spec table
   ========================================================================== */
.abm-specs-wrap { overflow-x: auto; border-radius: 18px; box-shadow: 0 20px 50px -34px rgba(13, 43, 69, .4); }
.abm-specs { width: 100%; border-collapse: collapse; background: var(--abm-card); }
.abm-specs th, .abm-specs td { padding: 15px 20px; border-bottom: 1px solid var(--abm-line); text-align: start; font-size: .97rem; }
.abm-specs tr:last-child td { border-bottom: 0; }
.abm-specs tr td:first-child { font-weight: 800; background: var(--abm-bg); width: 38%; color: var(--abm-ink); }
.abm-specs td:last-child { color: var(--abm-muted); }
.abm-specs tbody tr:hover td, .abm-specs tr:hover td { background: rgba(18, 179, 230, .05); }

/* ==========================================================================
   Bullet checklist
   ========================================================================== */
.abm-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.abm-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--abm-muted); line-height: 1.75; }
.abm-checklist li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: #fff; background: var(--abm-grad); margin-top: 1px; box-shadow: 0 6px 14px -6px rgba(0, 125, 169, .8); }

/* ==========================================================================
   Solution cards
   ========================================================================== */
.abm-solution { text-align: start; align-items: stretch; }
.abm-solution .abm-card-title { text-align: start; background: var(--abm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abm-solution .abm-card-desc { text-align: start; margin-bottom: 16px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.abm-faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.abm-faq-item { background: var(--abm-card); border: 1px solid var(--abm-line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.abm-faq-item.open { box-shadow: var(--abm-glow); border-color: transparent; }
.abm-faq-q { width: 100%; text-align: start; background: none; border: 0; cursor: pointer; font-family: 'Tajawal', 'Almarai', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--abm-ink); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.abm-faq-q::after { content: "+"; font-size: 1.5rem; color: var(--abm-blue); flex-shrink: 0; transition: transform .3s; }
.abm-faq-item.open .abm-faq-q::after { transform: rotate(135deg); }
.abm-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.abm-faq-item.open .abm-faq-a { max-height: 420px; }
.abm-faq-a p { margin: 0; padding: 0 22px 20px; color: var(--abm-muted); line-height: 1.9; font-size: .98rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.abm-cta { text-align: center; padding: 88px 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b2740 0%, #0a5f86 60%, #007da9 100%);
  background-size: 200% 200%; animation: abm-pan 18s ease infinite; }
.abm-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 8% 0%, rgba(18, 179, 230, .5), transparent 55%),
    radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.2px);
  background-size: auto, 24px 24px;
}
.abm-cta::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; bottom: -220px; inset-inline-start: -140px; background: radial-gradient(circle, rgba(18, 179, 230, .3), transparent 70%); animation: abm-float 10s ease-in-out infinite; }
.abm-cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.abm-cta-eyebrow { display: block; font-size: 1.05rem; opacity: .92; margin-bottom: .9rem; font-weight: 300; }
.abm-cta-title { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 900; margin: 0 0 .9rem; line-height: 1.4; }
.abm-cta-text { font-size: 1.05rem; line-height: 1.9; opacity: .92; margin: 0 auto 1.8rem; font-weight: 300; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.abm-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .98rem; border-radius: 999px; padding: .82rem 2rem; text-decoration: none;
  cursor: pointer; border: 1.6px solid transparent; transition: transform .25s, box-shadow .25s, background .25s; overflow: hidden;
}
.abm-btn::after { /* shine sweep */
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease;
}
.abm-btn:hover::after { left: 130%; }
.abm-btn--lg { padding: 1rem 2.6rem; font-size: 1.05rem; }
.abm-btn--primary { background: var(--abm-grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(0, 125, 169, .9); }
.abm-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(0, 125, 169, 1); color: #fff; }
.abm-btn--light { background: #fff; color: var(--abm-blue-dark); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5); }
.abm-btn--light:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .6); }
.abm-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.abm-btn--ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .abm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .abm-section { padding-top: 58px; padding-bottom: 58px; }
}
@media (max-width: 768px) {
  .abm-grid-3, .abm-grid-2 { grid-template-columns: 1fr; }
  .abm-zz-row, .abm-split { grid-template-columns: 1fr; gap: 26px; }
  .abm-zz-row:nth-child(even), .abm-page[dir="rtl"] .abm-zz-row:nth-child(even) { direction: inherit; }
  .abm-zz-img { order: -1; }
}
@media (max-width: 560px) {
  .abm-grid-4 { grid-template-columns: 1fr; }
  .abm-hero { min-height: 56vh; padding: 80px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .abm-hero, .abm-cta, .abm-hero::after, .abm-cta::after, .abm-zz-img { animation: none; }
  .abm-js .abm-rv { transition: none; opacity: 1; transform: none; }
}

/* Legal pages (Terms / Privacy) — readable white card. */
.abm-legal { background:#fff; border:1px solid var(--abm-line); border-radius:20px; padding:34px 36px; max-width:920px; margin:0 auto; box-shadow:0 20px 50px -34px rgba(13,43,69,.35); }
@media (max-width:560px){ .abm-legal { padding:22px 18px; } }
