/* ==========================================================================
   BoostaMe — landing page
   Self-contained. Loads after app.css and only affects .bm- scoped elements,
   so nothing in the existing dashboard or admin panel is touched.

   Direction: the product is a number going up, so the interface reads as
   measurement equipment rather than a growth-hacking storefront. Green is
   reserved exclusively for delivery progress — it means growth, so it never
   appears as decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bm-ink-950: #071a1c;
  --bm-ink-900: #0c2427;
  --bm-ink-800: #123236;
  --bm-ink-700: #1b454a;
  --bm-ink-500: #3e6b70;
  --bm-ink-200: #a8c4c6;
  --bm-ink-50: #e8f1f0;

  --bm-brass-400: #c8963e;
  --bm-brass-300: #dbb264;
  --bm-signal: #3fd68c;   /* delivery progress ONLY */
  --bm-coral: #e8654f;

  --bm-font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --bm-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --bm-r-sm: 4px;
  --bm-r-md: 8px;
  --bm-r-lg: 12px;

  --bm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arabic runs one step larger — Arabic letterforms need more vertical room,
   and this is the single most common failure in badly-localised panels. */
[dir='rtl'] .bm { font-size: 1.06em; }

.bm {
  font-family: var(--bm-font);
  background: var(--bm-ink-950);
  color: var(--bm-ink-50);
  line-height: 1.6;
  overflow-x: hidden;
}
.bm *, .bm *::before, .bm *::after { box-sizing: border-box; }
.bm a { text-decoration: none; color: inherit; }
.bm img { max-width: 100%; display: block; }

.bm-wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.bm-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

/* Every price, count and ID uses tabular figures so digits align in columns
   and do not jitter while the counter animates. */
.bm-num {
  font-family: var(--bm-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* --------------------------------------------------------------- background */

.bm-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bm-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.bm-mesh span:nth-child(1) {
  width: 46vw; height: 46vw; top: -14%; inset-inline-start: -10%;
  background: radial-gradient(circle, #17555c 0%, transparent 70%);
  animation: bm-drift-a 26s var(--bm-ease) infinite alternate;
}
.bm-mesh span:nth-child(2) {
  width: 38vw; height: 38vw; top: 32%; inset-inline-end: -12%;
  background: radial-gradient(circle, #8a6224 0%, transparent 70%);
  animation: bm-drift-b 32s var(--bm-ease) infinite alternate;
  opacity: 0.26;
}
.bm-mesh span:nth-child(3) {
  width: 34vw; height: 34vw; bottom: -12%; inset-inline-start: 26%;
  background: radial-gradient(circle, #10484f 0%, transparent 70%);
  animation: bm-drift-a 38s var(--bm-ease) infinite alternate-reverse;
}
/* transform + opacity only — these run on the compositor and never trigger
   layout, which is what keeps a full-page animated background at 60fps. */
@keyframes bm-drift-a {
  to { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
@keyframes bm-drift-b {
  to { transform: translate3d(-5vw, -6vh, 0) scale(0.9); }
}

.bm-content { position: relative; z-index: 1; }

/* --------------------------------------------------------------- nav */

.bm-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 26, 28, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.bm-nav.is-stuck {
  border-bottom-color: var(--bm-ink-700);
  background: rgba(7, 26, 28, 0.92);
}
.bm-nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 1rem;
}
.bm-logo {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.55rem;
}
.bm-logo-mark {
  width: 30px; height: 30px; border-radius: var(--bm-r-sm);
  background: linear-gradient(135deg, var(--bm-brass-400), var(--bm-brass-300));
  display: grid; place-items: center;
  color: var(--bm-ink-950); font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.bm-nav-links { display: none; gap: 1.75rem; margin-inline-start: auto; font-size: 0.92rem; }
.bm-nav-links a { color: var(--bm-ink-200); transition: color 0.2s; }
.bm-nav-links a:hover { color: var(--bm-ink-50); }
.bm-nav-actions { display: flex; gap: 0.6rem; margin-inline-start: auto; align-items: center; }
@media (min-width: 900px) {
  .bm-nav-links { display: flex; }
  .bm-nav-actions { margin-inline-start: 0; }
}

/* --------------------------------------------------------------- buttons */

.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--bm-r-md);
  font-weight: 600; font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.bm-btn:active { transform: scale(0.98); }
.bm-btn-primary { background: var(--bm-brass-400); color: var(--bm-ink-950); }
.bm-btn-primary:hover { background: var(--bm-brass-300); }
.bm-btn-ghost { border-color: var(--bm-ink-700); color: var(--bm-ink-50); }
.bm-btn-ghost:hover { border-color: var(--bm-ink-500); background: rgba(255,255,255,0.03); }
.bm-btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.bm-btn:focus-visible { outline: 2px solid var(--bm-brass-300); outline-offset: 2px; }

/* --------------------------------------------------------------- hero */

.bm-hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem); }
.bm-hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 980px) {
  .bm-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.bm-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 600; color: var(--bm-brass-300);
  border: 1px solid rgba(200, 150, 62, 0.28);
  background: rgba(200, 150, 62, 0.07);
  padding: 0.36rem 0.8rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.bm-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bm-signal);
  animation: bm-pulse 2.4s ease-in-out infinite;
}
@keyframes bm-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.bm-h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 1.15rem;
}
.bm-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--bm-brass-300), var(--bm-brass-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bm-lede {
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: var(--bm-ink-200); max-width: 34rem; margin: 0 0 2rem;
}
.bm-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }

.bm-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.86rem; color: var(--bm-ink-200); }
.bm-trust-item { display: flex; align-items: center; gap: 0.45rem; }
.bm-trust-item svg { width: 16px; height: 16px; color: var(--bm-signal); flex-shrink: 0; }

/* --------------------------------------------------------------- the instrument */

/* Signature element. Every order renders as a measurement strip, and the
   count is the only animated number in the whole product — which is what
   makes it read as instrumentation rather than decoration. */
.bm-instrument {
  background: linear-gradient(160deg, var(--bm-ink-800), var(--bm-ink-900));
  border: 1px solid var(--bm-ink-700);
  border-radius: var(--bm-r-lg);
  padding: 1.6rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.bm-instrument-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--bm-ink-500); margin-bottom: 1.5rem;
}
.bm-live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--bm-signal);
}
.bm-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bm-signal);
  animation: bm-pulse 1.8s ease-in-out infinite;
}
.bm-readout {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.5rem;
}
.bm-readout-main {
  font-family: var(--bm-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 500;
  color: var(--bm-ink-50); line-height: 1;
}
.bm-readout-target {
  font-family: var(--bm-mono); font-variant-numeric: tabular-nums;
  font-size: 1rem; color: var(--bm-ink-500);
}
.bm-readout-label {
  font-size: 0.74rem; color: var(--bm-ink-500);
  display: flex; justify-content: space-between; margin-bottom: 1.1rem;
}
.bm-track {
  height: 6px; border-radius: 999px; background: var(--bm-ink-700);
  overflow: hidden; margin-bottom: 1.1rem;
}
/* Progress always runs left-to-right, even in RTL: it represents time, not
   reading order. Mirroring it makes it read as depletion. */
.bm-track-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #2a9c67, var(--bm-signal));
  border-radius: 999px;
  transition: width 1.4s var(--bm-ease);
}
.bm-instrument-foot {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--bm-ink-500);
  padding-top: 1rem; border-top: 1px solid var(--bm-ink-700);
}

/* --------------------------------------------------------------- counter strip */

.bm-counter-strip {
  border-block: 1px solid var(--bm-ink-800);
  background: rgba(12, 36, 39, 0.5);
  padding-block: 2.25rem;
}
.bm-counter-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; text-align: center;
}
@media (min-width: 760px) { .bm-counter-grid { grid-template-columns: repeat(4, 1fr); } }
.bm-counter-value {
  font-family: var(--bm-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 500;
  color: var(--bm-ink-50); line-height: 1.1;
}
.bm-counter-label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--bm-ink-500); margin-top: 0.4rem;
}

/* --------------------------------------------------------------- sections */

.bm-section-head { max-width: 40rem; margin-bottom: 3rem; }
.bm-h2 {
  font-size: clamp(1.65rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.85rem;
}
.bm-sub { color: var(--bm-ink-200); font-size: 1.02rem; margin: 0; }

.bm-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .bm-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bm-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.bm-card {
  background: rgba(18, 50, 54, 0.55);
  border: 1px solid var(--bm-ink-700);
  border-radius: var(--bm-r-lg);
  padding: 1.6rem;
  transition: transform 0.28s var(--bm-ease), border-color 0.28s, background 0.28s;
}
.bm-card:hover {
  transform: translateY(-4px);
  border-color: var(--bm-ink-500);
  background: rgba(18, 50, 54, 0.85);
}
.bm-card-icon {
  width: 40px; height: 40px; border-radius: var(--bm-r-md);
  background: rgba(200, 150, 62, 0.12);
  color: var(--bm-brass-300);
  display: grid; place-items: center; margin-bottom: 1.05rem;
}
.bm-card-icon svg { width: 20px; height: 20px; }
.bm-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.5rem; }
.bm-card p { color: var(--bm-ink-200); font-size: 0.93rem; margin: 0; }

/* --------------------------------------------------------------- pricing rows */

.bm-price-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: rgba(18, 50, 54, 0.45);
  border: 1px solid var(--bm-ink-700);
  border-radius: var(--bm-r-md);
  transition: border-color 0.24s, transform 0.24s var(--bm-ease);
}
.bm-price-row:hover { border-color: var(--bm-brass-400); transform: translateX(3px); }
[dir='rtl'] .bm-price-row:hover { transform: translateX(-3px); }
.bm-price-platform { font-weight: 600; font-size: 0.95rem; flex: 1; }
.bm-price-meta { font-size: 0.79rem; color: var(--bm-ink-500); }
.bm-price-value {
  font-family: var(--bm-mono); font-variant-numeric: tabular-nums;
  font-weight: 500; color: var(--bm-brass-300); font-size: 0.98rem;
  text-align: end; white-space: nowrap;
}

/* --------------------------------------------------------------- payment methods */

.bm-pay {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--bm-ink-700);
  border-radius: var(--bm-r-md);
  background: rgba(12, 36, 39, 0.6);
  transition: border-color 0.24s, transform 0.24s var(--bm-ease);
}
.bm-pay:hover { border-color: var(--bm-brass-400); transform: translateY(-2px); }
.bm-pay-mark {
  width: 38px; height: 38px; border-radius: var(--bm-r-sm);
  background: rgba(200, 150, 62, 0.12); color: var(--bm-brass-300);
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 0.8rem;
}
.bm-pay strong { display: block; font-size: 0.93rem; font-weight: 600; }
.bm-pay span { font-size: 0.79rem; color: var(--bm-ink-500); }

/* --------------------------------------------------------------- steps */

.bm-steps { counter-reset: bm-step; display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .bm-steps { grid-template-columns: repeat(3, 1fr); } }
.bm-step { position: relative; padding-inline-start: 3.2rem; }
.bm-step::before {
  counter-increment: bm-step; content: counter(bm-step);
  position: absolute; inset-inline-start: 0; top: -2px;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--bm-brass-400); color: var(--bm-brass-300);
  display: grid; place-items: center;
  font-family: var(--bm-mono); font-size: 0.9rem;
}
.bm-step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; }
.bm-step p { color: var(--bm-ink-200); font-size: 0.91rem; margin: 0; }

/* --------------------------------------------------------------- faq */

.bm-faq { border-top: 1px solid var(--bm-ink-800); }
.bm-faq details { border-bottom: 1px solid var(--bm-ink-800); }
.bm-faq summary {
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  list-style: none;
}
.bm-faq summary::-webkit-details-marker { display: none; }
.bm-faq summary::after {
  content: '+'; font-family: var(--bm-mono); font-size: 1.3rem;
  color: var(--bm-brass-300); transition: transform 0.24s var(--bm-ease); flex-shrink: 0;
}
.bm-faq details[open] summary::after { transform: rotate(45deg); }
.bm-faq-body { padding-bottom: 1.2rem; color: var(--bm-ink-200); font-size: 0.94rem; }

/* --------------------------------------------------------------- cta + footer */

.bm-cta {
  background: linear-gradient(150deg, var(--bm-ink-800), var(--bm-ink-900));
  border: 1px solid var(--bm-ink-700);
  border-radius: var(--bm-r-lg);
  padding: clamp(2.25rem, 6vw, 3.75rem);
  text-align: center;
}
.bm-footer {
  border-top: 1px solid var(--bm-ink-800);
  padding-block: 2.5rem;
  font-size: 0.87rem; color: var(--bm-ink-500);
}
.bm-footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.bm-footer a { color: var(--bm-ink-200); }
.bm-footer a:hover { color: var(--bm-ink-50); }

/* --------------------------------------------------------------- reveal */

.bm-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--bm-ease), transform 0.7s var(--bm-ease);
}
.bm-reveal.is-visible { opacity: 1; transform: none; }

/* Load-time stagger for the hero only. */
.bm-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: bm-rise 0.75s var(--bm-ease) forwards;
}
.bm-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.bm-stagger > *:nth-child(2) { animation-delay: 0.14s; }
.bm-stagger > *:nth-child(3) { animation-delay: 0.23s; }
.bm-stagger > *:nth-child(4) { animation-delay: 0.32s; }
.bm-stagger > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes bm-rise { to { opacity: 1; transform: none; } }

/* Animation is decoration over a state that is already legible without it,
   so switching it all off costs nothing. */
@media (prefers-reduced-motion: reduce) {
  .bm *, .bm *::before, .bm *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bm-reveal, .bm-stagger > * { opacity: 1 !important; transform: none !important; }
  .bm-mesh { display: none; }
}
