/* ============================================================
   ALDEEB SYSTEM — ENTERPRISE DESIGN SYSTEM v5.0
   "Obsidian Platinum × Champagne Gold" (Linear / Stripe / Apple Grade)
   Loaded after aldeeb-unified.css to elevate ALL 21 pages cleanly
   in both Dark Mode & Editorial Light Mode.
   ============================================================ */

:root {
  --a-font-display: 'Cairo', 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
  --a-font-body: 'IBM Plex Sans Arabic', 'Tajawal', 'Plus Jakarta Sans', system-ui, sans-serif;
  --a-font-latin: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --a-font-mono: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;

  /* Refined Deep Obsidian & Champagne Palette */
  --a-bg: #04060d;
  --a-bg2: #080c18;
  --a-surface: #0d1324;
  --a-surface2: #121a30;
  --a-elevated: #18223d;

  --a-gold: #f5b942;
  --a-gold2: #fcd34d;
  --a-gold-soft: rgba(245, 185, 66, 0.14);
  --a-cyan: #22d3ee;
  --a-emerald: #34d399;

  --a-text: #f8fafc;
  --a-muted: #94a3b8;
  --a-faint: #64748b;
  --a-line: rgba(255, 255, 255, 0.075);
  --a-line-2: rgba(255, 255, 255, 0.13);
  --a-hairline-top: inset 0 1px 0 rgba(255, 255, 255, 0.09);

  /* True Fluid Adaptive Viewport Width (fills 360px -> 1440px -> 1920px Full HD -> 2K/4K cleanly) */
  --a-max-w: min(1840px, 96vw);
  --a-pad-x: clamp(14px, 2.6vw, 48px);
}

html[data-theme="light"] {
  --a-bg: #f8fafc;
  --a-bg2: #f1f5f9;
  --a-surface: #ffffff;
  --a-surface2: #f8fafc;
  --a-text: #0f172a;
  --a-muted: #475569;
  --a-faint: #64748b;
  --a-line: rgba(15, 23, 42, 0.08);
  --a-line-2: rgba(15, 23, 42, 0.14);
  --a-hairline-top: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ===================== 1. TYPOGRAPHY & CANVAS PRECISION ===================== */
html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}
html {
  font-size: clamp(14.5px, 0.25vw + 13.5px, 17px);
}

body,
body.a-body {
  font-family: var(--a-font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5,
.a-page-head h1,
.ent-step-card h3,
.slide-caption-title {
  font-family: var(--a-font-display);
  letter-spacing: -0.015em;
}

body.a-body {
  background:
    radial-gradient(950px 520px at 50% -10%, rgba(245, 185, 66, 0.09), transparent 62%),
    radial-gradient(800px 560px at 88% 12%, rgba(34, 211, 238, 0.065), transparent 60%),
    radial-gradient(900px 620px at 10% 88%, rgba(99, 102, 241, 0.06), transparent 62%),
    var(--a-bg);
  background-attachment: scroll;
}

html[data-theme="light"] body.a-body {
  background:
    radial-gradient(950px 520px at 50% -12%, rgba(245, 185, 66, 0.13), transparent 60%),
    radial-gradient(760px 500px at 88% 8%, rgba(14, 165, 233, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  background-attachment: scroll;
}

/* Defer offscreen rendering work for lightning-fast First Contentful Paint */
#features, #pricing, #faq, .a-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

/* Subtle architectural dot/grid background */
body.a-body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 18%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 18%, transparent 100%);
}

html[data-theme="light"] body.a-body::before {
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

/* Fluid Adaptive Container System (Auto-Stretches Cleanly Across Every Screen Size) */
.a-container,
.ent-shell {
  width: 100%;
  max-width: var(--a-max-w) !important;
  margin-inline: auto;
  padding-inline: var(--a-pad-x);
}
.a-container-narrow {
  width: 100%;
  max-width: min(1560px, 96vw) !important;
  margin-inline: auto;
  padding-inline: var(--a-pad-x);
}
/* Make Tailwind page shells (contact, support, docs, faq, status, track, changelog) fluidly adapt too */
main.max-w-7xl,
main.max-w-6xl,
main.max-w-5xl,
section.max-w-7xl,
section.max-w-6xl,
section.max-w-5xl {
  width: 100% !important;
  max-width: var(--a-max-w) !important;
  padding-inline: var(--a-pad-x) !important;
}

/* Top Reading Scroll Progress Hairline */
#aldeebScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1100;
  pointer-events: none;
  background: linear-gradient(90deg, #fcd34d 0%, #f5b942 48%, #22d3ee 100%);
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.25s ease;
}
html[dir="ltr"] #aldeebScrollProgress {
  transform-origin: left center;
}
#aldeebScrollProgress.visible {
  opacity: 1;
}

/* Refined Gradient Text */
.a-gradient-text {
  background: linear-gradient(125deg, #fff3c4 0%, #fcd34d 32%, #f59e0b 65%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .a-gradient-text {
  background: linear-gradient(125deg, #b45309 0%, #d97706 48%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== 2. ULTRA-CLEAN EXECUTIVE NAVBAR ===================== */
.a-topbar {
  background: rgba(5, 8, 17, 0.84);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.a-topbar::after {
  opacity: 0.42;
  background: linear-gradient(90deg, transparent 5%, rgba(245, 185, 66, 0.7) 35%, rgba(34, 211, 238, 0.55) 65%, transparent 95%);
}
.a-topbar.scrolled {
  background: rgba(4, 7, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.92);
}
html[data-theme="light"] .a-topbar {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .a-topbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.16);
}

.a-topbar-inner {
  max-width: var(--a-max-w);
  padding: 10px clamp(14px, 2.4vw, 32px);
  gap: 14px;
}

/* Brand Logo Upgrade (Uses real logo.png in champagne glass bezel) */
.a-brand .a-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.2), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 185, 66, 0.42);
  box-shadow: 0 8px 24px -10px rgba(245, 185, 66, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 3px;
}
.a-brand .a-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.a-brand b {
  font-family: var(--a-font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.a-brand small {
  font-family: var(--a-font-latin);
  font-size: 9.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--a-gold);
  opacity: 0.9;
}
html[data-theme="light"] .a-brand small {
  color: #b45309;
}

/* Streamlined Desktop Nav Capsule (Uncluttered 6 Core Links + Dropdown) */
.a-nav-dock {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 14px;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.a-nav-dock .a-navlink {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  color: #cbd5e1;
  position: relative;
}
html[data-theme="light"] .a-nav-dock .a-navlink {
  color: #334155;
}
.a-nav-dock .a-navlink i {
  font-size: 11.5px;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.a-nav-dock .a-navlink:hover i {
  opacity: 1;
}
.a-nav-dock .a-navlink.on {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.17), rgba(245, 185, 66, 0.08));
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.34);
}
.a-nav-dock .a-navlink.on i {
  color: var(--a-gold2);
  opacity: 1;
}

/* Executive "More ▾" Glass Dropdown */
.a-nav-more-wrap {
  position: relative;
}
.a-nav-more-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.a-nav-more-btn .a-caret {
  font-size: 10px;
  transition: transform 0.22s ease;
}
.a-nav-more-wrap.open .a-nav-more-btn .a-caret {
  transform: rotate(180deg);
}
.a-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 270px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 65px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
html[data-theme="light"] .a-nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 55px -18px rgba(15, 23, 42, 0.18);
}
.a-nav-more-wrap.open .a-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.a-dd-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  transition: background 0.18s ease, transform 0.18s ease;
  text-align: start;
}
.a-dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .a-dd-item:hover {
  background: #f1f5f9;
}
.a-dd-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.a-dd-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--a-text);
  line-height: 1.25;
}
.a-dd-txt small {
  display: block;
  font-size: 11px;
  color: var(--a-muted);
  margin-top: 1px;
}

@media (max-width: 1180px) {
  .a-nav-dock .a-navlink {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .a-nav-dock .a-navlink i {
    display: none;
  }
  .a-nav-more-btn i.a-caret {
    display: inline-block;
  }
}

/* ===================== 3. INTERACTIVE SPOTLIGHT & GLASS ELEVATION ===================== */
.a-card,
.ent-step-card,
.ent-plan-card,
.ent-testi-card,
.fhub-card,
.dl-prog-card,
.bento-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.85), var(--a-hairline-top);
}

/* Interactive Pointer Spotlight Glow (Set by aldeeb-motion.js) */
.a-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 185, 66, 0.12),
    rgba(34, 211, 238, 0.04) 42%,
    transparent 70%
  );
  z-index: 0;
}
.a-spotlight:hover::before {
  opacity: 1;
}
.a-spotlight > * {
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .a-spotlight::before {
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245, 185, 66, 0.14),
    rgba(14, 165, 233, 0.05) 45%,
    transparent 70%
  );
}

/* ===================== 4. REFINED EXECUTIVE HERO & METALLIC BUTTONS ===================== */
.ent-hero-stage {
  padding: clamp(36px, 4.8vw, 78px) 0 clamp(36px, 4.2vw, 64px) !important;
}
.ent-hero-stage::before {
  width: min(1120px, 115vw);
  height: 540px;
  top: -190px;
  background:
    radial-gradient(ellipse 58% 52% at 50% 34%, rgba(245, 185, 66, 0.17), transparent 70%),
    radial-gradient(ellipse 42% 42% at 24% 48%, rgba(34, 211, 238, 0.12), transparent 68%),
    radial-gradient(ellipse 40% 40% at 78% 48%, rgba(139, 92, 246, 0.09), transparent 68%);
  filter: blur(8px);
}

.ent-hero-title {
  font-family: var(--a-font-display);
  font-size: clamp(2.15rem, 4.7vw, 4.15rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 960px;
  margin: 0 auto 20px;
}

.ent-hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--a-muted);
}

/* Primary Shimmer CTA Button */
.ent-btn-primary {
  position: relative;
  overflow: hidden;
  padding: 14px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde68a 0%, #f5b942 46%, #d97706 100%);
  color: #160e02;
  font-family: var(--a-font-display);
  font-size: 15px;
  font-weight: 900;
  box-shadow:
    0 16px 38px -12px rgba(245, 185, 66, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}
.ent-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.48) 50%, transparent 90%);
  transform: skewX(-22deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.ent-btn-primary:hover::after {
  left: 150%;
}
.ent-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(245, 185, 66, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ent-btn-glass {
  padding: 14px 26px;
  border-radius: 14px;
  font-family: var(--a-font-display);
  font-size: 14.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, border-color 0.22s ease;
}
.ent-btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(245, 185, 66, 0.45);
}

/* Subtle Hero Gift Pill */
.ent-gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.1);
  border: 1px dashed rgba(245, 185, 66, 0.42);
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}
.ent-gift-chip:hover {
  background: rgba(245, 185, 66, 0.18);
  border-style: solid;
  transform: translateY(-1px);
}
html[data-theme="light"] .ent-gift-chip {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.45);
}

/* Studio Showcase Frame Elevation */
.software-slider-wrap {
  max-width: var(--a-max-w);
  margin-inline: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 40px 100px -32px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(245, 185, 66, 0.14),
    0 0 80px -30px rgba(245, 185, 66, 0.16);
}
html[data-theme="light"] .software-slider-wrap {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 32px 75px -28px rgba(15, 23, 42, 0.18);
}

/* ===================== 5. APPLE / LINEAR BENTO ECOSYSTEM GRID ===================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }

@media (max-width: 1024px) {
  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 12;
  }
}

.bento-card {
  border-radius: 24px;
  padding: clamp(22px, 2.5vw, 32px);
  background: linear-gradient(165deg, rgba(16, 23, 42, 0.88), rgba(8, 12, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.085);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 185, 66, 0.36);
  box-shadow: 0 28px 65px -26px rgba(0, 0, 0, 0.92), 0 0 36px -14px rgba(245, 185, 66, 0.16);
}
html[data-theme="light"] .bento-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 14px 36px -22px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .bento-card:hover {
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 22px 48px -22px rgba(15, 23, 42, 0.18);
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  width: fit-content;
}
.bento-tag.gold { background: rgba(245, 185, 66, 0.13); border: 1px solid rgba(245, 185, 66, 0.28); color: #fcd34d; }
.bento-tag.emerald { background: rgba(16, 185, 129, 0.13); border: 1px solid rgba(16, 185, 129, 0.28); color: #34d399; }
.bento-tag.cyan { background: rgba(34, 211, 238, 0.13); border: 1px solid rgba(34, 211, 238, 0.28); color: #22d3ee; }
.bento-tag.violet { background: rgba(139, 92, 246, 0.13); border: 1px solid rgba(139, 92, 246, 0.28); color: #c4b5fd; }

html[data-theme="light"] .bento-tag.gold { color: #b45309; background: #fffbeb; }
html[data-theme="light"] .bento-tag.emerald { color: #047857; background: #ecfdf5; }
html[data-theme="light"] .bento-tag.cyan { color: #0e7490; background: #ecfeff; }
html[data-theme="light"] .bento-tag.violet { color: #6d28d9; background: #f5f3ff; }

.bento-card h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  font-weight: 900;
  color: var(--a-text);
  margin: 10px 0 8px;
  line-height: 1.3;
}
.bento-card p {
  font-size: 13.8px;
  line-height: 1.78;
  color: var(--a-muted);
}

/* Mini Live UI Preview Widgets inside Bento Cards */
.bento-mock {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(4, 7, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
html[data-theme="light"] .bento-mock {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
.bento-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
html[data-theme="light"] .bento-mock-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.bento-mock-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bento-mock-row:first-child {
  padding-top: 0;
}

.bento-sync-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bento-node {
  border-radius: 13px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .bento-node {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}
.bento-node i {
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
}
.bento-node b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--a-text);
}
.bento-node span {
  display: block;
  font-size: 10.5px;
  color: #34d399;
  font-weight: 700;
  margin-top: 2px;
}

/* 3x3 Lock Pattern Mini Visual */
.bento-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}
.bento-pattern-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
  margin: auto;
}
.bento-pattern-dot.on {
  background: #f5b942;
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.75);
}

/* ===================== 6. SECTION HEADINGS, PRICING & TRUST ===================== */
.ent-trust-inner {
  max-width: var(--a-max-w);
  margin-inline: auto;
}
.ent-trust-item {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ent-trust-item:hover {
  border-color: rgba(245, 185, 66, 0.32);
  transform: translateY(-1px);
}
html[data-theme="light"] .ent-trust-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

/* Featured Pricing Plan Subtle Shimmer Border */
.ent-plan-card.ent-featured {
  border: 1.5px solid rgba(245, 185, 66, 0.58);
  box-shadow:
    0 34px 80px -28px rgba(245, 185, 66, 0.26),
    inset 0 1px 0 rgba(255, 230, 150, 0.35);
}
.saas-popular-tag {
  background: linear-gradient(135deg, #fde68a, #f59e0b) !important;
  color: #160e02 !important;
  box-shadow: 0 8px 22px -6px rgba(245, 185, 66, 0.65);
}

/* FAQ Accordion Smooth Polish */
details.a-card {
  border-radius: 18px !important;
  transition: border-color 0.22s ease, background 0.22s ease;
}
details.a-card[open] {
  border-color: rgba(245, 185, 66, 0.36) !important;
}
details.a-card summary {
  list-style: none;
}
details.a-card summary::-webkit-details-marker {
  display: none;
}

/* ===================== 7. ARCHITECTURAL FOOTER ===================== */
.a-footer {
  border-top: 1px solid var(--a-line);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(245, 185, 66, 0.055), transparent 72%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.94), #03050b);
  padding-inline: clamp(16px, 3vw, 36px);
}
html[data-theme="light"] .a-footer {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.a-footer-grid-4,
.a-footer-bottom {
  max-width: var(--a-max-w);
  margin-inline: auto;
}
.a-footer h4 {
  font-family: var(--a-font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--a-text);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.a-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--a-grad-gold);
}
@media (max-width: 640px) {
  .a-footer h4::after {
    inset-inline-start: 50%;
    transform: translateX(50%);
  }
  html[dir="ltr"] .a-footer h4::after {
    transform: translateX(-50%);
  }
}

/* ===================== 8. SCROLL REVEAL MOTION (RESPECTS REDUCED MOTION) ===================== */
.a-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.a-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.a-reveal-d1 { transition-delay: 0.07s; }
.a-reveal-d2 { transition-delay: 0.14s; }
.a-reveal-d3 { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .a-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ent-btn-primary::after {
    display: none;
  }
}

/* ===================== 9. INNER PAGES PRO POLISH ===================== */
.a-page-head {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.a-page-head h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.2;
}
.a-btn {
  font-family: var(--a-font-display);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.a-btn:hover {
  transform: translateY(-1.5px);
}
.a-input,
select.a-input,
textarea.a-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.a-input:focus {
  border-color: rgba(245, 185, 66, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.14) !important;
  outline: none;
}

/* Floating AI Chat Widget Luxury Refinement */
.a-bot-toggle-btn {
  box-shadow: 0 18px 40px -10px rgba(245, 185, 66, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease !important;
}
.a-bot-toggle-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
}
.a-bot-window {
  border-radius: 22px !important;
  border: 1px solid rgba(245, 185, 66, 0.3) !important;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(20px) !important;
}

/* Mobile Polish Refinements */
@media (max-width: 640px) {
  .ent-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
  .ent-hero-actions > a,
  .ent-hero-actions > button {
    width: 100%;
  }
  .bento-sync-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .bento-node {
    padding: 9px 6px;
  }
  /* Prevent iOS Safari zoom on input focus */
  input.a-input,
  select.a-input,
  textarea.a-input {
    font-size: 16px;
  }
}

/* ===================== 10. FULL-SPECTRUM FLUID ADAPTIVE BREAKPOINTS (320px -> 4K) ===================== */
/* Prevent any element, code block, or table from breaking screen width */
main, section, article, aside, .a-card, .bento-card, .ent-plan-card, .ent-step-card, .ent-testi-card {
  min-width: 0;
}
code, pre, .font-mono {
  overflow-wrap: anywhere;
}
table {
  max-width: 100%;
}
.a-table-scroll,
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Adaptive Topbar Density for Medium Laptops (961px - 1340px) */
@media (min-width: 961px) and (max-width: 1340px) {
  .a-topbar-inner {
    gap: 8px;
    padding-inline: clamp(12px, 1.8vw, 24px);
  }
  .a-brand b { font-size: 14.5px; }
  .a-brand small { font-size: 8.5px; }
  .a-nav-dock .a-navlink {
    padding: 7px 9px;
    font-size: 12.2px;
  }
  .a-btn-header-login,
  .a-btn-header-register {
    padding-inline: 11px !important;
    font-size: 12px !important;
  }
}

/* Tablet Adaptive Grids (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .ent-steps-grid,
  .ent-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ent-pricing-grid > :last-child:nth-child(odd),
  .ent-steps-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .bento-span-7,
  .bento-span-5 {
    grid-column: span 6;
  }
}

/* Wide Desktop & Full HD Adaptive Expansion (>= 1536px) */
@media (min-width: 1536px) {
  .fhub-grid,
  .dl-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
  }
  .ent-hero-title {
    max-width: 1160px;
    font-size: clamp(3.1rem, 4.2vw, 4.65rem);
  }
  .ent-hero-sub {
    max-width: 840px;
  }
  .ent-pricing-grid,
  .ent-steps-grid {
    gap: 28px;
  }
  .bento-grid {
    gap: 24px;
  }
  .a-footer-grid-4 {
    gap: 48px;
  }
}

/* Ultra-Wide 2K / 4K Monitors (>= 2048px) */
@media (min-width: 2048px) {
  :root {
    --a-max-w: min(2040px, 92vw);
  }
}

/* Extra-Small Phones (<= 390px) */
@media (max-width: 390px) {
  .a-topbar-inner {
    padding: 8px 10px;
    gap: 6px;
  }
  .a-brand b { font-size: 14px; }
  .a-brand small { display: none !important; }
  .a-brand .a-logo { width: 34px; height: 34px; }
  .a-topbar-actions { gap: 4px; padding: 3px; }
  .a-ctrl-pill { padding: 0 8px !important; font-size: 11px !important; }
  .ent-hero-title { font-size: 1.85rem; }
  .ent-eyebrow-pill { font-size: 11px; padding: 6px 12px; gap: 6px; }
}

/* ===================== 11. PRO MOBILE-FIRST SHOWCASE SLIDER OVERHAUL (<= 960px) ===================== */
@media (max-width: 960px) {
  .ent-hero-stage .ent-shell {
    padding-inline: 12px !important;
  }

  .software-slider-wrap {
    margin: 18px auto 10px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(245, 185, 66, 0.34) !important;
    box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  }
  html[data-theme="light"] .software-slider-wrap {
    border-color: rgba(217, 119, 6, 0.28) !important;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.16) !important;
  }

  /* Compact, single-line studio chrome bar */
  .ent-studio-bar {
    padding: 9px 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .ent-studio-dots {
    gap: 5px !important;
    flex-shrink: 0;
  }
  .ent-studio-dots span {
    width: 8px !important;
    height: 8px !important;
  }
  .ent-studio-title {
    display: none !important;
  }
  .ent-studio-live {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    gap: 5px !important;
  }
  .mob-slide-counter {
    display: inline-flex !important;
    font-size: 10.5px !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
  }

  /* Smooth App-Store pill tabs (zero clipping, horizontal scroll only) */
  .showcase-tabs-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    gap: 7px !important;
    padding: 9px 12px !important;
    justify-content: flex-start !important;
  }
  .showcase-tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .showcase-top-tab {
    flex: 0 0 auto !important;
    min-width: auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    gap: 6px !important;
    line-height: 1.2 !important;
  }
  .showcase-top-tab .tab-step-label {
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .showcase-top-tab.active {
    background: linear-gradient(135deg, #fde68a 0%, #f5b942 60%, #d97706 100%) !important;
    color: #160e02 !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px -8px rgba(245, 185, 66, 0.7) !important;
  }
  .showcase-top-tab.active i {
    color: #160e02 !important;
  }
  .showcase-top-tab.active .tab-step-num {
    background: rgba(22, 14, 2, 0.16) !important;
    color: #160e02 !important;
  }

  /* Full-width crisp 3:2 screenshot stage — zero height jumping, zero wasted width */
  .showcase-split-stage {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 10px 12px !important;
    gap: 11px !important;
  }
  .showcase-frame-col {
    order: -1 !important;
    width: 100% !important;
  }
  .showcase-monitor-bezel {
    padding: 5px !important;
    border-radius: 14px !important;
    background: linear-gradient(155deg, rgba(245, 185, 66, 0.24), rgba(15, 23, 42, 0.92)) !important;
    border: 1px solid rgba(245, 185, 66, 0.35) !important;
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.72) !important;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html[data-theme="light"] .showcase-monitor-bezel {
    background: linear-gradient(155deg, #fef3c7, #e2e8f0) !important;
    border-color: rgba(217, 119, 6, 0.32) !important;
  }
  .showcase-monitor-bezel img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 3 / 2;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #ffffff !important;
  }

  /* Subtle non-intrusive zoom badge tucked in top corner */
  .mob-zoom-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 10px !important;
    bottom: auto !important;
    inset-inline-end: 10px !important;
    left: auto !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: rgba(7, 11, 20, 0.82) !important;
    border: 1px solid rgba(245, 185, 66, 0.45) !important;
    color: #fde68a !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }

  /* Clean structured info card below image (no duplicate counter, crisp aligned bullets) */
  .showcase-info-col {
    padding: 14px 13px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: start !important;
  }
  html[data-theme="light"] .showcase-info-col {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }
  .showcase-meta-row {
    margin-bottom: 8px !important;
  }
  .showcase-step-pill {
    display: none !important;
  }
  .slide-category-badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  .slide-caption-title {
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .slide-caption-desc {
    font-size: 12.5px !important;
    line-height: 1.68 !important;
    margin-bottom: 11px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Clean 1-column structured feature rows (never messy uneven flex chips) */
  .showcase-feature-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .showcase-feat-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 11.8px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    width: 100% !important;
  }

  /* Hide desktop controls & duplicate thumbs on mobile */
  .showcase-ctrl-bar,
  .slider-thumbs-bar {
    display: none !important;
  }

  /* Refined touch-friendly bottom dock */
  .mob-slider-dock {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px !important;
    background: rgba(5, 8, 18, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  }
  html[data-theme="light"] .mob-slider-dock {
    background: #f1f5f9 !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
  }
  .mob-nav-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  .mob-dot-btn {
    height: 7px !important;
    width: 7px !important;
  }
  .mob-dot-btn.active {
    width: 28px !important;
  }

  /* Safe in-viewport mobile Lightbox */
  .slider-lightbox {
    padding: 12px !important;
  }
  .lightbox-content {
    max-width: 96vw !important;
    max-height: 86vh !important;
  }
  .lightbox-content img {
    max-height: 76vh !important;
    border-radius: 12px !important;
  }
  .lightbox-close-btn {
    position: fixed !important;
    top: 16px !important;
    inset-inline-end: 16px !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 24px !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65) !important;
    z-index: 1000000 !important;
  }
}

@media (max-width: 480px) {
  .showcase-top-tab .tab-step-num {
    display: none !important;
  }
  .showcase-top-tab {
    padding: 6px 11px !important;
    font-size: 11.5px !important;
  }
  .ent-studio-live span {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
