/* =========================================================
   BulkMailTracker — temporary marketing landing page
   Isolated from /css/app.css; mirrors the BuzzWorks dark
   ember palette so the look stays consistent across brands.
========================================================= */

:root {
  --bmt-bg: #05060a;
  --bmt-bg-2: #0c0a10;
  --bmt-panel: rgba(12, 10, 14, 0.62);
  --bmt-panel-strong: rgba(14, 11, 16, 0.86);
  --bmt-border: rgba(255, 170, 60, 0.22);
  --bmt-border-strong: rgba(255, 170, 60, 0.4);
  --bmt-text: #f5e6cf;
  --bmt-muted: rgba(245, 230, 207, 0.7);
  --bmt-subtle: rgba(245, 230, 207, 0.45);
  --bmt-orange: #ff8a1f;
  --bmt-orange-2: #ffb34d;
  --bmt-orange-glow: rgba(255, 138, 31, 0.35);
  --bmt-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --bmt-radius: 18px;
  --bmt-radius-sm: 12px;
  --bmt-max: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.bmt-home {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--bmt-text);
  background: var(--bmt-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bmt-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1100px 640px at 70% 12%, rgba(255, 150, 40, 0.22), rgba(0, 0, 0, 0) 62%),
    radial-gradient(900px 540px at 12% 36%, rgba(255, 120, 20, 0.16), rgba(0, 0, 0, 0) 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 90, 20, 0.18), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #0a0710 0%, #05060a 60%, #04040a 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.subtle { color: var(--bmt-muted); }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--bmt-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================
   Top bar
========================= */
.bmt-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 170, 60, 0.14);
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.88), rgba(8, 6, 10, 0.55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bmt-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bmt-text);
}

.bmt-logo__mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #ffd28a, #ff8a1f 55%, #b04500 100%);
  box-shadow:
    0 0 14px rgba(255, 138, 31, 0.55),
    inset 0 0 6px rgba(255, 220, 180, 0.4);
}

.bmt-logo__wordmark {
  font-size: 1.02rem;
}

.bmt-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bmt-topnav__link {
  font-size: 0.92rem;
  color: var(--bmt-muted);
  transition: color 0.18s ease;
}

.bmt-topnav__link:hover { color: var(--bmt-text); }

.bmt-topnav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bmt-orange-2), var(--bmt-orange));
  color: #1b0b00;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 0 18px rgba(255, 138, 31, 0.32);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bmt-topnav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 138, 31, 0.5);
  filter: brightness(1.04);
}

.bmt-topnav__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--bmt-border-strong);
  background: rgba(255, 138, 31, 0.08);
  color: var(--bmt-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
}

.bmt-topnav__login:hover {
  background: rgba(255, 138, 31, 0.18);
  border-color: var(--bmt-orange-2);
  box-shadow: 0 0 16px rgba(255, 138, 31, 0.28);
  transform: translateY(-1px);
}

.bmt-topnav__login:focus-visible {
  outline: 2px solid var(--bmt-orange);
  outline-offset: 3px;
}

/* =========================
   Main + hero
========================= */
.bmt-main {
  flex: 1;
  width: 100%;
  max-width: var(--bmt-max);
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.bmt-hero {
  position: relative;
  margin-bottom: 88px;
}

.bmt-hero__halo {
  position: absolute;
  inset: -80px -120px auto auto;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 138, 31, 0.28), rgba(255, 138, 31, 0) 72%);
  filter: blur(2px);
  z-index: 0;
}

.bmt-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.bmt-hero__copy { min-width: 0; }

.bmt-eyebrow {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--bmt-border);
  background: rgba(255, 138, 31, 0.06);
  color: var(--bmt-orange-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.bmt-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bmt-accent {
  display: block;
  background: linear-gradient(180deg, var(--bmt-orange-2), var(--bmt-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 138, 31, 0.18);
}

.bmt-hero__sub {
  margin: 0 0 28px;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--bmt-muted);
  max-width: 560px;
}

.bmt-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bmt-hero__note {
  margin: 0;
  font-size: 0.82rem;
}

/* =========================
   Buttons
========================= */
.bmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bmt-btn--primary {
  color: #1b0b00;
  background: linear-gradient(180deg, var(--bmt-orange-2), var(--bmt-orange));
  box-shadow: 0 10px 28px rgba(255, 120, 20, 0.32), 0 0 18px var(--bmt-orange-glow);
}

.bmt-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 120, 20, 0.42), 0 0 26px rgba(255, 138, 31, 0.6);
  filter: brightness(1.04);
}

.bmt-btn--secondary {
  color: var(--bmt-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bmt-border);
}

.bmt-btn--secondary:hover {
  background: rgba(255, 138, 31, 0.08);
  border-color: var(--bmt-border-strong);
  box-shadow: 0 0 18px rgba(255, 120, 20, 0.18);
}

.bmt-btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

/* =========================
   Hero visual / mock dashboard
========================= */
.bmt-hero__visual {
  position: relative;
  min-width: 0;
}

.bmt-mock-panel {
  position: relative;
  border-radius: var(--bmt-radius);
  border: 1px solid var(--bmt-border);
  background: linear-gradient(180deg, rgba(18, 12, 22, 0.92), rgba(10, 8, 14, 0.86));
  box-shadow:
    var(--bmt-shadow),
    0 0 36px rgba(255, 120, 20, 0.12);
  padding: 18px 18px 20px;
  overflow: hidden;
}

.bmt-mock-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 200px at 80% -10%, rgba(255, 138, 31, 0.22), rgba(0, 0, 0, 0) 70%),
    radial-gradient(360px 180px at 0% 110%, rgba(255, 90, 20, 0.18), rgba(0, 0, 0, 0) 70%);
}

.bmt-mock-panel__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bmt-mock-panel__title {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--bmt-text);
}

.bmt-mock-panel__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.15);
  color: var(--bmt-orange-2);
  border: 1px solid var(--bmt-border-strong);
  box-shadow: 0 0 12px rgba(255, 138, 31, 0.22);
}

.bmt-mock-panel__map {
  position: relative;
  height: 240px;
  border-radius: var(--bmt-radius-sm);
  border: 1px solid rgba(255, 170, 60, 0.12);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 138, 31, 0.08), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(8, 6, 12, 0.95), rgba(6, 4, 10, 0.95));
  overflow: hidden;
}

.bmt-mock-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 170, 60, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 170, 60, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 60%, transparent 100%);
}

.bmt-mock-route {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 138, 31, 0) 0%, rgba(255, 138, 31, 0.85) 50%, rgba(255, 138, 31, 0) 100%);
  box-shadow: 0 0 14px rgba(255, 138, 31, 0.55);
  opacity: 0.85;
}

.bmt-mock-route--a {
  top: 38%;
  left: 6%;
  width: 62%;
  transform: rotate(-12deg);
}

.bmt-mock-route--b {
  top: 64%;
  left: 22%;
  width: 70%;
  transform: rotate(8deg);
  opacity: 0.7;
}

.bmt-mock-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5e1 0%, #ff8a1f 55%, rgba(255, 138, 31, 0) 80%);
  box-shadow: 0 0 16px rgba(255, 138, 31, 0.7);
  animation: bmt-pulse 2.4s ease-in-out infinite;
}

.bmt-mock-dot--1 { top: 22%; left: 16%; animation-delay: 0s; }
.bmt-mock-dot--2 { top: 32%; left: 44%; animation-delay: 0.4s; }
.bmt-mock-dot--3 { top: 28%; left: 72%; animation-delay: 0.8s; }
.bmt-mock-dot--4 { top: 58%; left: 28%; animation-delay: 1.1s; }
.bmt-mock-dot--5 { top: 70%; left: 56%; animation-delay: 1.5s; }
.bmt-mock-dot--6 { top: 62%; left: 84%; animation-delay: 1.9s; }

@keyframes bmt-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.45); opacity: 1; }
}

.bmt-mock-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bmt-mock-stat {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--bmt-radius-sm);
  border: 1px solid rgba(255, 170, 60, 0.14);
  background: rgba(255, 138, 31, 0.04);
}

.bmt-mock-stat__label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmt-subtle);
  margin-bottom: 4px;
}

.bmt-mock-stat__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bmt-text);
  letter-spacing: 0.01em;
}

/* =========================
   Features
========================= */
.bmt-features {
  margin-bottom: 88px;
  scroll-margin-top: 80px;
}

.bmt-section-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.bmt-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.005em;
}

.bmt-section-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.bmt-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bmt-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--bmt-radius);
  border: 1px solid var(--bmt-border);
  background: linear-gradient(180deg, rgba(20, 14, 24, 0.78), rgba(10, 8, 14, 0.7));
  box-shadow: var(--bmt-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bmt-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(200px 80px at 30% 0%, rgba(255, 138, 31, 0.22), rgba(0, 0, 0, 0) 70%);
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.bmt-card:hover {
  transform: translateY(-2px);
  border-color: var(--bmt-border-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 138, 31, 0.18);
}

.bmt-card:hover::after { opacity: 0.9; }

.bmt-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 170, 60, 0.18), rgba(255, 120, 20, 0.08));
  border: 1px solid var(--bmt-border-strong);
  color: var(--bmt-orange-2);
  box-shadow: inset 0 0 12px rgba(255, 138, 31, 0.18);
}

.bmt-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bmt-text);
}

.bmt-card__copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--bmt-muted);
}

/* =========================
   CTA band
========================= */
.bmt-cta-band {
  margin-bottom: 56px;
  padding: 32px 28px;
  border-radius: var(--bmt-radius);
  border: 1px solid var(--bmt-border-strong);
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(255, 138, 31, 0.22), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(20, 14, 24, 0.92), rgba(10, 8, 14, 0.9));
  box-shadow: var(--bmt-shadow), 0 0 36px rgba(255, 138, 31, 0.18);
  scroll-margin-top: 80px;
}

.bmt-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.bmt-cta-band__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
}

.bmt-cta-band__sub {
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}

/* =========================
   Footer
========================= */
.bmt-footer {
  border-top: 1px solid rgba(255, 170, 60, 0.14);
  padding: 18px 24px;
  text-align: center;
  color: var(--bmt-subtle);
  font-size: 0.82rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 960px) {
  .bmt-main { padding: 36px 20px 36px; }
  .bmt-hero { margin-bottom: 64px; }
  .bmt-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bmt-hero__halo { inset: -60px -60px auto auto; width: 360px; height: 360px; }
  .bmt-feature-grid { grid-template-columns: 1fr; }
  .bmt-features { margin-bottom: 64px; }
  .bmt-cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .bmt-topbar { padding: 12px 18px; }
  .bmt-topnav { gap: 10px; }
  .bmt-topnav__link { display: none; }
  .bmt-topnav__login { padding: 7px 12px; font-size: 0.82rem; }
  .bmt-mock-panel__map { height: 200px; }
  .bmt-mock-panel__stats { grid-template-columns: 1fr 1fr; }
  .bmt-mock-stat:nth-child(3) { grid-column: span 2; }
  .bmt-cta-band { padding: 24px 20px; }
}

/* =========================
   Auth modal (loaded from /includes/auth-modal.html)
   Scoped versions of marketing.css modal styles so the
   BulkMailTracker landing stays asset-isolated and never
   pulls /css/marketing.css into the page.
========================= */
.bmt-home #authModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  z-index: 1000;
}

.bmt-home #authModal .modal-box {
  background: #0c0a0e;
  color: var(--bmt-text);
  border: 1px solid rgba(255, 170, 60, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 138, 31, 0.18);
  max-width: 440px;
  width: calc(100vw - 32px);
  margin: 8% auto;
  padding: 24px 22px;
  border-radius: 14px;
  position: relative;
}

.bmt-home #authModal h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bmt-text);
}

.bmt-home #authModal label {
  display: block;
  font-size: 0.78rem;
  color: var(--bmt-muted);
  margin: 8px 0 4px;
}

.bmt-home #authModal input,
.bmt-home #authModal textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bmt-text);
  font: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bmt-home #authModal input:focus,
.bmt-home #authModal textarea:focus {
  border-color: var(--bmt-orange-2);
  box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.18);
}

.bmt-home #authModal .password-wrap { position: relative; }
.bmt-home #authModal .password-wrap input { padding-right: 52px; }

.bmt-home #authModal .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 138, 31, 0.28);
  color: var(--bmt-orange-2);
  cursor: pointer;
}

.bmt-home #authModal .toggle-password:hover { background: rgba(255, 138, 31, 0.2); }
.bmt-home #authModal .toggle-password svg { width: 18px; height: 18px; fill: currentColor; }
.bmt-home #authModal .eye-closed { display: none; }

.bmt-home #authModal .btn,
.bmt-home #authModal .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  margin-top: 12px;
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bmt-home #authModal .btn-primary {
  color: #1b0b00;
  background: linear-gradient(180deg, var(--bmt-orange-2), var(--bmt-orange));
  box-shadow: 0 10px 28px rgba(255, 120, 20, 0.32);
  width: 100%;
}

.bmt-home #authModal .btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 120, 20, 0.45);
}

.bmt-home #authModal .secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bmt-border);
  color: var(--bmt-text);
}

.bmt-home #authModal .modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bmt-home #authModal .link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--bmt-orange-2);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.bmt-home #authModal .muted { color: var(--bmt-subtle); font-size: 0.86rem; }
.bmt-home #authModal .error { color: #ff8e8e; margin: 6px 0 0; min-height: 1em; }
.bmt-home #authModal .success { color: #82d586; margin: 6px 0 0; min-height: 1em; }

.bmt-home #authModal .grid {
  display: grid;
  gap: 8px;
}

.bmt-home #authModal .grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .bmt-home #authModal .grid-2 { grid-template-columns: 1fr; }
  .bmt-home #authModal .modal-box { margin: 14% auto; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bmt-mock-dot { animation: none; }
  .bmt-btn, .bmt-card, .bmt-topnav__cta { transition: none; }
}
