/* ================================================================
   6qnia Marketing Site — Databox-layout clone
   Inter font · purple #5746f5 · white/gray surfaces
   ================================================================ */

/* ── Reset & tokens ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-purple:       #5746f5;
  --c-purple-dk:    #4538d4;
  --c-purple-soft:  rgba(87,70,245,.1);
  --c-ink:          #111827;
  --c-ink-80:       rgba(17,24,39,.8);
  --c-muted:        #6b7280;
  --c-muted-lt:     #9ca3af;
  --c-border:       #e5e7eb;
  --c-canvas:       #f9fafb;
  --c-white:        #fff;
  --c-green:        #16a34a;
  --c-red:          #dc2626;
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(15,23,42,.08);
  --shadow-lg:      0 16px 40px rgba(15,23,42,.1);
  --shadow-xl:      0 24px 56px rgba(15,23,42,.12);
  --font:           'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --max-w:          1200px;
  --max-w-sm:       760px;
  /* Header bar height for sticky offset (compact bar + vertical padding). */
  --nav-h:          72px;
}

/*
 * Single scroll container: only `body` scrolls.
 * html must not create a second overflow chain (fixes double vertical scrollbar).
 */
html.dbx-page {
  font-size: 16px;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.dbx {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.dbx > main {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
}

/* Mobile menu open: lock page scroll; only the drawer scrolls */
body.dbx.dbx-nav-open {
  overflow: hidden;
}

.dbx img { display: block; max-width: 100%; }
.dbx a { color: var(--c-purple); text-decoration: none; }
.dbx a:hover { text-decoration: underline; }

/* Prevent the global link color from bleeding into buttons */
.dbx a.btn,
.dbx a.btn:hover { text-decoration: none; }

.dbx-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ── Layout helpers ─────────────────────────────────────────── */
.dbx-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn-primary,
a.btn-primary,
a.btn-primary:hover {
  background: var(--c-purple);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(87,70,245,.32);
}
.btn-primary:hover,
a.btn-primary:hover { background: var(--c-purple-dk); }

.btn-demo,
a.btn-demo,
a.btn-demo:hover {
  background: var(--c-white);
  color: var(--c-ink) !important;
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.btn-demo:hover,
a.btn-demo:hover { border-color: #d1d5db; background: #fafafa; }

.btn-ghost,
a.btn-ghost,
a.btn-ghost:hover {
  background: transparent;
  color: var(--c-ink) !important;
}
.btn-ghost:hover,
a.btn-ghost:hover { background: var(--c-canvas); }

.btn-lg { padding: .8rem 1.6rem; font-size: .975rem; }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }

/* ── Header ──────────────────────────────────────────────────── */
.dbx-header {
  position: sticky;
  top: 0;
  z-index: 300;
  /* Solid bg — no backdrop-filter (it creates a containing block and breaks
     position:fixed children, so the mobile drawer was clipped / invisible) */
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--c-border);
  padding: 10px clamp(1rem, 4vw, 1.25rem);
  height: auto;
  min-height: var(--nav-h);
  box-sizing: border-box;
  transition: box-shadow .2s, z-index 0s;
  overflow: visible;
}
/* Entire header (bar + fixed drawer + backdrop) must stack above page content */
.dbx-header.dbx-nav-open {
  z-index: 12000;
}
.dbx-header.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.08); }

/* Mobile menu dim layer — first child of header so it shares boosted stacking */
.dbx-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,11,30,.65) 0%, rgba(15,23,42,.75) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  pointer-events: none;
}
.dbx-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (max-width: 1023px) {
  .dbx-nav-backdrop { display: block; }
}

/* Bar sits above backdrop; fixed drawer/actions use higher z inside header */
.dbx-header .dbx-wrap {
  position: relative;
  z-index: 10;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-inline: 0;
  max-width: var(--max-w);
  margin-inline: auto;
}

.dbx-nav {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 48px;
  width: 100%;
  gap: .25rem;
}

/* Logo */
.dbx-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--c-ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  text-decoration: none;
  flex-shrink: 0;
  margin-inline-end: 1.5rem;
}
.dbx-logo:hover { text-decoration: none; color: var(--c-ink); }
.dbx-logo img { width: 32px; height: 32px; }

/* Nav links */
.dbx-nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
}

/* Language duplicate: only visible inside mobile drawer */
.dbx-nav-mobile-lang {
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0 1rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--c-border);
  font-size: .875rem;
  font-weight: 600;
}
.dbx-nav-mobile-lang a { color: var(--c-purple); text-decoration: none; }
.dbx-nav-mobile-lang a:hover { text-decoration: underline; }

@media (min-width: 1024px) {
  .dbx-nav-mobile-lang { display: none !important; }
}

.dbx-nav-link,
.dbx-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.dbx-nav-link:hover,
.dbx-nav-btn:hover { color: var(--c-ink); background: #f3f4f6; text-decoration: none; }

.dbx-nav-btn svg,
.dbx-nav-link svg { width: 12px; height: 12px; opacity: .6; flex-shrink: 0; }

/* Dropdown */
.dbx-dropdown { position: relative; }
.dbx-dropdown-panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 240px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, visibility .15s, transform .15s;
  z-index: 100;
}
.dbx-dropdown:hover .dbx-dropdown-panel,
.dbx-dropdown:focus-within .dbx-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dbx-dropdown-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted-lt);
  padding: .4rem .6rem .25rem;
}
.dbx-dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: background .12s;
}
.dbx-dropdown-item:hover { background: var(--c-canvas); color: var(--c-purple); text-decoration: none; }
.dbx-dropdown-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--c-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--c-purple);
}
.dbx-dropdown-item-text strong {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.3;
}
.dbx-dropdown-item-text span {
  font-size: .775rem;
  color: var(--c-muted);
  font-weight: 400;
}

/* Products dropdown — app grid (no platform list) */
.dbx-dropdown-panel--products {
  min-width: min(100vw - 2rem, 480px);
  max-width: 520px;
  padding: .65rem !important;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.dbx-products-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 400px) {
  .dbx-products-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dbx-products-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: .65rem .55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-canvas);
  text-decoration: none;
  color: var(--c-ink);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background .12s, border-color .12s, color .12s;
  min-height: 4.5rem;
}
.dbx-products-menu-card:hover {
  background: #fff;
  border-color: rgba(87, 70, 245, 0.35);
  color: var(--c-purple);
  text-decoration: none;
}
.dbx-products-menu-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--c-purple);
  flex-shrink: 0;
}
.dbx-products-menu-card-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dbx-products-menu-card-summary {
  font-size: .7rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dbx-products-menu-card:hover .dbx-products-menu-card-summary { color: var(--c-muted-lt); }

.dbx-badge-new {
  display: inline-block;
  margin-inline-start: .3rem;
  padding: .1rem .4rem;
  background: var(--c-purple);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  vertical-align: middle;
}

/* Nav actions */
.dbx-nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  row-gap: .35rem;
  margin-inline-start: auto;
  flex-shrink: 0;
  justify-content: flex-end;
}

/* Lang */
.dbx-lang a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-muted);
  padding: .35rem .5rem;
}
.dbx-lang a:hover { color: var(--c-purple); }

/* Hamburger */
.dbx-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
  position: relative;
  z-index: 60;
  background: var(--c-white);
}
.dbx-hamburger span {
  display: block;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: center;
}

/* X state when open */
.dbx-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dbx-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.dbx-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ──────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .dbx-hamburger { display: flex; }

  .dbx-nav-links,
  .dbx-nav-actions { display: none; }

  .dbx-nav-mobile-lang {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    margin: 0 0 .75rem;
    background: linear-gradient(135deg, rgba(87,70,245,.08) 0%, rgba(99,102,241,.05) 100%);
    border: 1px solid rgba(87,70,245,.15);
    border-radius: var(--radius);
  }
  .dbx-nav-mobile-lang .bi {
    font-size: 1.15rem;
    color: var(--c-purple);
    opacity: .9;
    flex-shrink: 0;
  }

  /* Drawer sheet */
  /* Bottom clears fixed .dbx-nav-actions dock (not header height — avoids overlap / clipped scroll). */
  .dbx-nav-links.open {
    display: flex;
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    top: calc(var(--nav-h) + 0.35rem);
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 0.75rem;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
      linear-gradient(180deg, #ffffff 0%, #f8f7ff 55%, #fafbff 100%);
    border: 1px solid rgba(87,70,245,.12);
    border-radius: var(--radius-lg);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.85) inset,
      0 24px 80px rgba(15,23,42,.2),
      0 8px 32px rgba(87,70,245,.12);
    animation: dbx-drawer-in .38s cubic-bezier(.22,1,.36,1) both;
  }

  @keyframes dbx-drawer-in {
    from {
      opacity: 0;
      transform: translateY(-14px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .dbx-nav-links.open .dbx-nav-mobile-lang {
    margin: 0 .65rem .75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(87,70,245,.12);
  }

  .dbx-nav-actions.open {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    min-height: 80px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: .65rem;
    padding: .75rem 1rem;
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
    z-index: 55;
    background: linear-gradient(180deg, #fafaff 0%, #fff 100%);
    border-top: 1px solid rgba(87,70,245,.1);
    box-shadow: 0 -8px 32px rgba(15,23,42,.08);
  }
  .dbx-nav-actions.open .btn {
    flex: 1;
    justify-content: center;
    font-size: .875rem;
    border-radius: var(--radius-sm);
  }
  .dbx-nav-actions.open .btn-primary {
    box-shadow: 0 4px 16px rgba(87,70,245,.35);
  }

  .dbx-nav-actions .dbx-lang--desktop { display: none; }

  .dbx-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 .65rem .35rem;
    padding: .95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-ink);
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: rgba(255,255,255,.6);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
  }
  .dbx-nav-link:hover {
    background: rgba(87,70,245,.06);
    border-color: rgba(87,70,245,.12);
    text-decoration: none;
    color: var(--c-purple);
  }
  .dbx-nav-link .bi {
    font-size: 1.1rem;
    color: var(--c-purple);
    opacity: .8;
    flex-shrink: 0;
  }

  .dbx-dropdown {
    margin: 0 .65rem .35rem;
    border-radius: var(--radius);
    border: 1px solid rgba(87,70,245,.1);
    background: rgba(255,255,255,.75);
    /* Allow expanded Products grid to extend; drawer is the single scroll container */
    overflow: visible;
  }
  .dbx-nav-btn {
    width: 100%;
    padding: .95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-ink);
    border-radius: 0;
    border: none;
    background: transparent;
    justify-content: space-between;
  }
  .dbx-nav-btn svg { width: 16px; height: 16px; opacity: .45; }
  .dbx-dropdown.open .dbx-nav-btn {
    color: var(--c-purple);
    background: rgba(87,70,245,.06);
  }

  .dbx-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, #f3f0ff 0%, #f9fafb 100%);
    padding: .35rem .5rem .85rem;
    display: none;
    margin: 0;
  }
  .dbx-dropdown.open .dbx-dropdown-panel { display: block; }

  .dbx-dropdown-label {
    padding: .65rem .75rem .35rem;
    font-size: .68rem;
    color: var(--c-muted-lt);
  }

  .dbx-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0 .25rem .35rem;
    padding: .75rem .85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(87,70,245,.08);
    background: #fff;
    font-size: .875rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
  }
  .dbx-dropdown-item:active {
    transform: scale(.99);
  }

  .dbx-dropdown-panel--products {
    min-width: 0;
    max-width: none;
    padding: .5rem .65rem .85rem !important;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }
  .dbx-products-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
  .dbx-products-menu-card {
    min-height: 0;
    padding: .55rem .45rem;
    background: #fff;
    border-color: rgba(87, 70, 245, 0.12);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .dbx-nav-links.open { animation: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.dbx-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  text-align: center;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  background-color: #07051a;
  background-image:
    linear-gradient(165deg, rgba(7,5,26,.88) 0%, rgba(15,10,40,.82) 42%, rgba(10,8,28,.92) 100%),
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(87,70,245,.35) 0%, transparent 55%),
    url("https://images.unsplash.com/photo-1550751827-4bd374c3c58d?auto=format&fit=crop&w=2400&q=80");
  background-size: auto, auto, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}

/* Soft purple bloom over photo */
.dbx-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,70,245,.28) 0%, transparent 68%);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.dbx-hero .dbx-wrap { position: relative; z-index: 1; }

/* Tech capability strip (replaces trust badges) */
.dbx-hero-tech {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 920px;
  margin-inline: auto;
}
.dbx-hero-tech__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: .5rem .65rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.dbx-hero-tech__chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  background: rgba(15,23,42,.45);
  border: 1px solid rgba(129,140,248,.22);
  position: relative;
}
.dbx-hero-tech__chip i {
  font-size: 1rem;
  color: #7dd3fc;
  opacity: .95;
}
.dbx-hero-tech__pulse {
  position: absolute;
  inset-inline-start: .5rem;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.5);
  animation: dbx-tech-pulse 2.4s ease-out infinite;
}
.dbx-hero-tech__chip:has(.dbx-hero-tech__pulse) {
  padding-inline-start: 1.35rem;
}
@keyframes dbx-tech-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
@media (prefers-reduced-motion: reduce) {
  .dbx-hero-tech__pulse { animation: none; box-shadow: 0 0 0 2px rgba(52,211,153,.35); }
}
.dbx-hero-tech__meta {
  margin: .85rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}
.dbx-hero-tech__meta strong {
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

.dbx-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  color: #fff;
  max-width: 22ch;
  margin: 0 auto .85rem;
}
.dbx-hero h1 .text-purple {
  color: #a78bfa !important;
  background: linear-gradient(90deg, #a78bfa, #7c6ef7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dbx-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.7);
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  line-height: 1.7;
}

.dbx-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

/* Hero buttons adapt to dark bg */
.dbx-hero .btn-primary,
.dbx-hero a.btn-primary {
  background: var(--c-purple);
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(87,70,245,.5);
}
.dbx-hero .btn-demo,
.dbx-hero a.btn-demo,
.dbx-hero a.btn-demo:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff !important;
  backdrop-filter: blur(10px);
}
.dbx-hero .btn-demo:hover,
.dbx-hero a.btn-demo:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

.dbx-hero-micro {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 2.75rem;
}

/* Feature tabs on dark bg */
.dbx-feat-tabs {
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
  padding: 0 .5rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
}
.dbx-feat-tabs::-webkit-scrollbar { display: none; }

.dbx-feat-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  backdrop-filter: blur(8px);
}
.dbx-feat-tab:hover {
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}
.dbx-feat-tab.active {
  color: #fff;
  border-color: rgba(167,139,250,.6);
  background: rgba(87,70,245,.35);
  box-shadow: 0 0 0 3px rgba(87,70,245,.2), 0 4px 12px rgba(87,70,245,.3);
}
.dbx-feat-tab i { font-size: .95rem; }

/* Hero screenshot area — fade into white below */
.dbx-hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: transparent;
  border-top: none;
}

/* Gradient fade from dark hero to white content */
.dbx-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  z-index: 2;
}

.dbx-hero-screen {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  position: relative;
  z-index: 1;
}

.dbx-browser-frame {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid rgba(255,255,255,.15);
  border-bottom: none;
  background: var(--c-white);
  box-shadow:
    0 -8px 60px rgba(87,70,245,.25),
    0 -2px 20px rgba(87,70,245,.15),
    0 0 0 1px rgba(87,70,245,.1);
  overflow: hidden;
}

.dbx-browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  background: linear-gradient(180deg,#f9fafb,#f3f4f6);
  border-bottom: 1px solid var(--c-border);
}

.dbx-browser-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dbx-browser-dot:nth-child(1) { background: #fc625d; }
.dbx-browser-dot:nth-child(2) { background: #fdbc40; }
.dbx-browser-dot:nth-child(3) { background: #35cd4b; }

.dbx-browser-url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: .75rem;
  color: var(--c-muted);
  font-family: ui-monospace, monospace;
  text-align: center;
}

.dbx-browser-content {
  padding: 1.25rem;
  background: #fafbff;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
}

/* Hero: single preview image (tab-controlled) */
.dbx-browser-content.dbx-hero-shot-wrap {
  display: block;
  padding: 0;
  min-height: 0;
  background: #0b0918;
}
.dbx-hero-shot-wrap img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 400px);
  object-fit: cover;
}

@media (max-width: 640px) {
  .dbx-browser-content:not(.dbx-hero-shot-wrap) { grid-template-columns: 1fr 1fr; min-height: 220px; }
}

.dbx-mock-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.dbx-mock-card--wide { grid-column: span 2; }
.dbx-mock-card--tall { grid-row: span 2; }
.dbx-mock-card-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--c-muted-lt);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.dbx-mock-card-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -.03em;
  margin-bottom: .2rem;
}
.dbx-mock-card-delta {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-green);
}
.dbx-mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding-top: .5rem;
}
.dbx-mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--c-purple), #8b7cf7);
  opacity: .85;
}
.dbx-mock-bar:nth-child(1){height:40%}
.dbx-mock-bar:nth-child(2){height:70%}
.dbx-mock-bar:nth-child(3){height:55%}
.dbx-mock-bar:nth-child(4){height:90%}
.dbx-mock-bar:nth-child(5){height:65%}
.dbx-mock-bar:nth-child(6){height:80%}
.dbx-mock-bar:nth-child(7){height:58%}
.dbx-mock-bar.dbx-mock-bar--active{background:var(--c-purple);opacity:1}

.dbx-mock-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--c-canvas);
  font-size: .78rem;
}
.dbx-mock-line:last-child { border-bottom: none; }
.dbx-mock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-purple);
  flex-shrink: 0;
}
.dbx-mock-line-label { color: var(--c-muted); flex: 1; }
.dbx-mock-line-val { font-weight: 700; color: var(--c-ink); }

/* ── Logo strip ──────────────────────────────────────────────── */
.dbx-logos {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.dbx-logos-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-muted-lt);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
}
.dbx-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 1.25rem;
}
.dbx-logo-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  transition: color .15s, border-color .15s;
}
.dbx-logo-item:hover { color: var(--c-purple); border-color: rgba(87,70,245,.3); }

/* ── Stats section ───────────────────────────────────────────── */
.dbx-stats {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}
.dbx-stats-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.dbx-stats-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 680px;
  margin: 0 auto;
}
.dbx-stats-head h2 strong { color: var(--c-purple); }

.dbx-stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .dbx-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.dbx-stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.dbx-stat-pct {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--c-purple);
  line-height: 1;
  margin-bottom: .5rem;
}
.dbx-stat-desc { font-size: .95rem; color: var(--c-muted); margin-bottom: 1.25rem; }
.dbx-stat-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-purple);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.dbx-stat-link:hover { text-decoration: underline; }

/* ── Section shared ──────────────────────────────────────────── */
.dbx-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

/* Horizontal product strip: outer scrolls so cards aren’t clipped by section overflow (mobile). */
.dbx-tpl-strip-outer {
  margin-inline: calc(-1 * clamp(1.25rem, 5vw, 2rem));
  padding-inline: clamp(1.25rem, 5vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.dbx-tpl-strip-outer::-webkit-scrollbar { height: 4px; }
.dbx-tpl-strip-outer::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }
.dbx-tpl-strip-outer .dbx-tpl-strip {
  overflow-x: visible;
  padding-bottom: 0.25rem;
}

/* Modules: don’t clip horizontal scroll; full-bleed scroll on small screens */
section#modules.dbx-section {
  overflow: visible;
}
section#modules.dbx-section::after {
  pointer-events: none;
}
section#modules .dbx-tpl-tabs-scroll {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 1.25rem;
}
section#modules .dbx-tpl-tabs-scroll::-webkit-scrollbar {
  display: none;
}
section#modules .dbx-tpl-tabs-scroll .dbx-tpl-tabs {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}
section#modules .dbx-tpl-strip-outer {
  margin-inline: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
section#modules .dbx-tpl-strip-outer .dbx-tpl-strip {
  overflow-x: visible;
}
.dbx-section--white { background: var(--c-white); }
.dbx-section--gray  { background: var(--c-canvas); }
.dbx-section--border { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

.dbx-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: .65rem;
}

.dbx-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--c-ink);
  margin-bottom: .85rem;
}
.dbx-h2--center { text-align: center; max-width: 680px; margin-inline: auto; }
.dbx-h2--max { max-width: 18ch; }

.dbx-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.dbx-lead--center { text-align: center; max-width: 56ch; margin-inline: auto; }
.dbx-lead--max { max-width: 52ch; }

/* ── Get answers (split) ─────────────────────────────────────── */
.dbx-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .dbx-split { grid-template-columns: 1fr 1fr; }
  .dbx-split--flip .dbx-split-copy { order: 2; }
  .dbx-split--flip .dbx-split-img  { order: 1; }
}

.dbx-split-copy {}
.dbx-split-copy .dbx-h2 { margin-bottom: 1rem; }

.dbx-feature-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.dbx-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--c-ink);
}
.dbx-feature-list li::before {
  content: "\2713";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  border: 1.5px solid rgba(87,70,245,.25);
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .62rem;
  font-weight: 800;
  color: var(--c-purple);
  line-height: 1;
}

.dbx-split-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.dbx-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xl);
  background: var(--c-canvas);
}
.dbx-img-frame img { width: 100%; height: auto; }

/* ── Rotating quotes band ────────────────────────────────────── */
.dbx-decisions-wrap {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 960px) {
  .dbx-decisions-wrap { grid-template-columns: 1fr 1.1fr; }
}

.dbx-decisions-copy .dbx-h2 { max-width: 18ch; }

.dbx-decision-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--c-border);
  padding-inline-start: 1.5rem;
  margin-top: .5rem;
}
@media (max-width: 959px) {
  .dbx-decision-tabs { border-left: none; padding-inline-start: 0; }
}

.dbx-decision-tab {
  padding: .9rem 0;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
}
.dbx-decision-tab:last-child { border-bottom: none; }
.dbx-decision-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-muted);
}
.dbx-decision-tab.active .dbx-decision-tab-head { color: var(--c-ink); }
.dbx-decision-tab-quote {
  margin-top: .65rem;
  font-size: .88rem;
  color: var(--c-muted);
  font-style: italic;
  line-height: 1.6;
  display: none;
}
.dbx-decision-tab.active .dbx-decision-tab-quote { display: block; }
.dbx-decision-tab-attr {
  font-size: .78rem;
  margin-top: .4rem;
  color: var(--c-muted-lt);
  font-style: normal;
  display: none;
}
.dbx-decision-tab.active .dbx-decision-tab-attr { display: block; }
.dbx-decision-tab-chev {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dbx-decision-tab.active .dbx-decision-tab-chev { border-color: var(--c-purple); background: var(--c-purple); }
.dbx-decision-tab.active .dbx-decision-tab-chev::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

/* ── Two-column feature cards (AI section) ───────────────────── */
.dbx-pair-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .dbx-pair-grid { grid-template-columns: 1fr 1fr; }
}

.dbx-pair-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.dbx-pair-card-body {
  padding: 1.75rem;
}
.dbx-pair-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: .6rem;
}
.dbx-pair-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
}
.dbx-pair-card p {
  font-size: .92rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.dbx-pair-card-how {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted-lt);
  margin-bottom: .4rem;
}
.dbx-pair-card-desc {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.dbx-pair-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0ff, #e8e0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--c-purple);
}

/* ── Triple feature groups ───────────────────────────────────── */
.dbx-triple-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .dbx-triple-grid { grid-template-columns: repeat(3, 1fr); }
}
.dbx-triple-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dbx-triple-card-img {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--c-purple);
  flex-shrink: 0;
}
.dbx-triple-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dbx-triple-card-body { padding: 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.dbx-triple-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.dbx-triple-card-how {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted-lt);
  margin-bottom: .35rem;
}
.dbx-triple-card p {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.dbx-triple-card a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-purple);
}

/* ── Templates strip ─────────────────────────────────────────── */
.dbx-tpl-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 0 0 .75rem;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
  -ms-overflow-style: none;
}
.dbx-tpl-tabs::-webkit-scrollbar { display: none; }
.dbx-tpl-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.dbx-tpl-tab:hover { color: var(--c-ink); border-color: #d1d5db; }
.dbx-tpl-tab.active { color: var(--c-purple); border-color: var(--c-purple); background: var(--c-purple-soft); }

.dbx-tpl-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
}
.dbx-tpl-strip::-webkit-scrollbar { height: 4px; }
.dbx-tpl-strip::-webkit-scrollbar-track { background: transparent; }
.dbx-tpl-strip::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

.dbx-tpl-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-white);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.dbx-tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.dbx-tpl-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0ff, #e8e0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--c-purple);
}
.dbx-tpl-card-img img { width:100%; height:100%; object-fit:cover; }
.dbx-tpl-card-label {
  padding: .85rem .9rem .75rem;
  font-size: .88rem;
  font-weight: 700;
}

.dbx-tpl-cta { margin-top: 1.5rem; text-align: center; }

/* ── Use cases ───────────────────────────────────────────────── */
.dbx-uc-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .dbx-uc-grid { grid-template-columns: repeat(3, 1fr); }
}
.dbx-uc-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.dbx-uc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.dbx-uc-card-img {
  width:100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg,#f0f0ff,#e8e0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--c-purple);
}
.dbx-uc-card-img img { width:100%; height:100%; object-fit:cover; }
.dbx-uc-card-body { padding: 1.1rem 1.25rem 1.35rem; }
.dbx-uc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.dbx-uc-card p {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Roles section ───────────────────────────────────────────── */
.dbx-roles-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px)  { .dbx-roles-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .dbx-roles-grid { grid-template-columns: repeat(4,1fr); } }

.dbx-role-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.dbx-role-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .65rem;
}
.dbx-role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
  margin-bottom: 1.1rem;
}
.dbx-role-card ul li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.dbx-role-card ul li::before {
  content: "✓";
  color: var(--c-purple);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.dbx-role-card a { font-size: .875rem; font-weight: 600; color: var(--c-purple); }

/* ── Reviews section ─────────────────────────────────────────── */
.dbx-reviews-head {
  text-align: center;
  margin-bottom: 2rem;
}

.dbx-reviews-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.dbx-reviews-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.dbx-reviews-badge-rating {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.dbx-reviews-badge-stars {
  color: #f59e0b;
  font-size: .9rem;
  letter-spacing: .05em;
}
.dbx-reviews-badge-label {
  font-size: .78rem;
  color: var(--c-muted);
}
.dbx-reviews-caption {
  text-align: center;
  font-size: .88rem;
  color: var(--c-muted-lt);
  margin-top: .5rem;
}

.dbx-award-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1rem;
}
.dbx-award-badge {
  width: 90px;
  height: 60px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg,#fafafa,#f3f4f6);
  opacity: .85;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.dbx-faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.dbx-faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
}
.dbx-faq-q {
  width: 100%;
  text-align: start;
  padding: 1.1rem 1.25rem;
  font-family: var(--font);
  font-size: .975rem;
  font-weight: 700;
  color: var(--c-ink);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .12s;
}
.dbx-faq-q:hover { background: var(--c-canvas); }
.dbx-faq-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--c-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.dbx-faq-item.open .dbx-faq-icon { transform: rotate(45deg); border-color: var(--c-purple); color: var(--c-purple); }
.dbx-faq-a {
  padding: 0 1.25rem;
  font-size: .925rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s;
}
.dbx-faq-item.open .dbx-faq-a {
  max-height: 600px;
  padding: 0 1.25rem 1.1rem;
}

/* ── CTA section ─────────────────────────────────────────────── */
.dbx-cta-section {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--c-border);
  overflow: hidden;
}
.dbx-cta-section .dbx-h2 { margin-inline: auto; }
.dbx-cta-section .dbx-lead { margin-bottom: 2rem; }
.dbx-cta-btns {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────────── */
.dbx-footer {
  margin-top: auto;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 110%, rgba(87,70,245,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% -10%, rgba(99,58,220,.12) 0%, transparent 55%),
    linear-gradient(160deg, #0d0b1e 0%, #121032 45%, #0f0c2a 100%);
  border-top: none;
  padding: 4rem 0 0;
  position: relative;
}

/* Subtle top highlight line */
.dbx-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(87,70,245,.5) 30%, rgba(167,139,250,.6) 50%, rgba(87,70,245,.5) 70%, transparent);
}

.dbx-footer .dbx-wrap {
  position: relative;
  z-index: 1;
}

.dbx-footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.5fr repeat(4, 1fr);
}
@media (max-width: 900px) {
  .dbx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .dbx-footer-grid { grid-template-columns: 1fr; }
}

.dbx-footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  text-decoration: none;
  margin-bottom: .85rem;
}
.dbx-footer-logo:hover { text-decoration: none; color: #fff; }
.dbx-footer-logo img { width: 32px; height: 32px; filter: brightness(10); }

.dbx-footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  max-width: 260px;
  margin-bottom: .65rem;
  line-height: 1.65;
}
.dbx-footer-hq {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}

.dbx-footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .9rem;
}
.dbx-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.dbx-footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.dbx-footer-col a:hover { color: #fff; text-decoration: none; }

.dbx-footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.28);
}
.dbx-footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.dbx-footer-bottom-links a { color: rgba(255,255,255,.3); font-size: .8rem; }
.dbx-footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── Utility ─────────────────────────────────────────────────── */
.dbx-section-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}
.text-purple { color: var(--c-purple) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Pair card img with real images ──────────────────────────── */
.dbx-pair-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dbx-pair-card-img { min-height: 200px; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.dbx-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.dbx-reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dbx-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.dbx-page, body.dbx { scroll-behavior: auto; }
  .dbx-cta-section { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED SVG VECTOR BACKGROUNDS
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes vec-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}
@keyframes vec-drift-rev {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, -30px); }
}
@keyframes blob-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .07; }
  50%       { transform: scale(1.15) translate(-10px, -15px); opacity: .12; }
}
@keyframes blob-pulse-2 {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .05; }
  50%       { transform: scale(1.2) translate(15px, 10px); opacity: .09; }
}
/* Opacity + scale while keeping translate(-50%,-50%) for centered blobs */
@keyframes blob-pulse-mid {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .14; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: .22; }
}
@keyframes ring-grow {
  0%   { transform: scale(.8); opacity: .15; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* ── Make all sections position-relative for pseudo-el ─────── */
.dbx-section,
.dbx-stats,
.dbx-logos,
.dbx-cta-section,
.dbx-faq-list { position: relative; }

.dbx-section > .dbx-wrap,
.dbx-stats > .dbx-wrap,
.dbx-logos > .dbx-wrap,
.dbx-cta-section > .dbx-wrap,
.dbx-faq-list { position: relative; z-index: 1; }

/* ── White sections — gradient + soft dot texture ───────────── */
.dbx-section--white {
  background: linear-gradient(168deg, #f0ecff 0%, #ffffff 42%, #f7f8ff 100%);
}
.dbx-section--white::after {
  content: "";
  position: absolute;
  inset: -15%;
  background-image: radial-gradient(circle, rgba(87,70,245,.1) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ── Gray sections — cool gradient + circuit grid ───────────── */
.dbx-section--gray {
  background: linear-gradient(175deg, #e4e2ff 0%, #f0f0f5 38%, #e8eaf0 100%);
}
.dbx-section--gray::after {
  content: "";
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,58,220,.14) 0%, transparent 62%);
  bottom: -12%;
  left: -8%;
  animation: blob-pulse-2 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── Stats — gradient + data-node SVG ──────────────────────── */
.dbx-stats {
  background: linear-gradient(165deg, #faf7ff 0%, #ffffff 50%, #f3f0ff 100%);
}
.dbx-stats::after {
  content: "";
  position: absolute;
  width: min(100vw, 720px);
  height: min(100vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,70,245,.12) 0%, transparent 58%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-pulse-mid 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── Logo strip — gradient + pulse rings SVG ───────────────── */
.dbx-logos {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 55%, #fafbff 100%);
}
.dbx-logos > .dbx-wrap { position: relative; z-index: 1; }

/* ── CTA — gradient + panning SVG + rising rings ────────────── */
.dbx-cta-section {
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 115%, rgba(87,70,245,.2) 0%, transparent 72%),
    linear-gradient(165deg, #e8e0ff 0%, #f8f6ff 45%, #ffffff 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
}
.dbx-cta-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(87,70,245,.18);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  animation: ring-grow 6s ease-out infinite;
  pointer-events: none;
}
.dbx-cta-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(87,70,245,.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  animation: ring-grow 6s ease-out infinite .5s;
  pointer-events: none;
}

/* ── FAQ block — soft gradient + dots ───────────────────────── */
.dbx-faq-list::before {
  content: "";
  position: absolute;
  inset: -2rem;
  background: linear-gradient(145deg, rgba(243,240,255,.9) 0%, rgba(255,255,255,.4) 50%, rgba(248,250,255,.8) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
  pointer-events: none;
}
.dbx-faq-list::after {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

/* ── Section border adjustment ──────────────────────────────── */
.dbx-section--border {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

/* ═══════════════════════════════════════════════════════════════
   Per-app gradient overlays (modules / catalog) — no SVG backgrounds
   ═══════════════════════════════════════════════════════════════ */

.dbx-app-block {
  position: relative;
  isolation: isolate;
}
.dbx-app-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  opacity: 1;
}
.dbx-app-block > * { position: relative; z-index: 1; }

.dbx-app-block--realestate::before {
  background: linear-gradient(160deg, rgba(14,165,233,.18) 0%, rgba(87,70,245,.1) 45%, #fff 100%);
}
.dbx-app-block--playground::before {
  background: linear-gradient(160deg, rgba(16,185,129,.2) 0%, rgba(87,70,245,.08) 50%, #fff 100%);
}
.dbx-app-block--hr::before {
  background: linear-gradient(160deg, rgba(245,158,11,.16) 0%, rgba(87,70,245,.1) 100%);
}
.dbx-app-block--finance::before {
  background: linear-gradient(160deg, rgba(139,92,246,.2) 0%, rgba(59,130,246,.08) 100%);
}
.dbx-app-block--clinic::before {
  background: linear-gradient(160deg, rgba(239,68,68,.14) 0%, rgba(87,70,245,.1) 100%);
}
.dbx-app-block--pos::before {
  background: linear-gradient(160deg, rgba(249,115,22,.18) 0%, rgba(87,70,245,.08) 100%);
}

/* Template strip cards */
.dbx-app-tpl-skin {
  position: relative;
  isolation: isolate;
}
.dbx-app-tpl-skin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .85;
}
.dbx-app-tpl-skin .dbx-tpl-card-img,
.dbx-app-tpl-skin .dbx-tpl-card-label { position: relative; z-index: 1; }

.dbx-app-tpl-skin--realestate::before {
  background: linear-gradient(180deg, rgba(14,165,233,.25) 0%, transparent 55%);
}
.dbx-app-tpl-skin--playground::before {
  background: linear-gradient(180deg, rgba(16,185,129,.28) 0%, transparent 55%);
}
.dbx-app-tpl-skin--hr::before { background: linear-gradient(180deg, rgba(245,158,11,.22) 0%, transparent 55%); }
.dbx-app-tpl-skin--finance::before { background: linear-gradient(180deg, rgba(139,92,246,.25) 0%, transparent 55%); }
.dbx-app-tpl-skin--clinic::before { background: linear-gradient(180deg, rgba(239,68,68,.2) 0%, transparent 55%); }
.dbx-app-tpl-skin--pos::before { background: linear-gradient(180deg, rgba(249,115,22,.24) 0%, transparent 55%); }

/* Use-case cards */
.dbx-app-uc-skin {
  position: relative;
  isolation: isolate;
}
.dbx-app-uc-skin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .9;
}
.dbx-app-uc-skin .dbx-uc-card-img,
.dbx-app-uc-skin .dbx-uc-card-body { position: relative; z-index: 1; }

.dbx-app-uc-skin--realestate::before {
  background: linear-gradient(135deg, rgba(14,165,233,.15) 0%, transparent 50%, rgba(87,70,245,.08) 100%);
}
.dbx-app-uc-skin--playground::before {
  background: linear-gradient(135deg, rgba(16,185,129,.18) 0%, transparent 55%);
}
.dbx-app-uc-skin--roadmap::before {
  background: linear-gradient(135deg, rgba(87,70,245,.14) 0%, rgba(99,102,241,.1) 100%);
}
