/* ==========================================================================
   Glixlogic Showcase Chrome
   A shared, namespaced (.glx-*) overlay that sits ON TOP of each unique
   showcase: a slim premium topbar + a full-screen "what you get" modal.
   Nothing here should ever leak into or collide with a showcase's own CSS.
   ========================================================================== */

:root {
  --glx-bar-h: 48px;
  --glx-accent: #d4a955;          /* per-niche overridable via inline style */
  --glx-accent-ink: #1a1205;
  --glx-ink: #f4f6fb;
  --glx-ink-dim: #aab3c5;
  --glx-bg: #0b0f17;
  --glx-bg-soft: #121826;
  --glx-line: rgba(255, 255, 255, 0.10);
  --glx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
              Helvetica, Arial, sans-serif;
}

/* --- Stage: wraps the whole showcase and pushes its content down by the
   topbar height. We deliberately DO NOT put a transform here: a transformed
   ancestor becomes the containing block for position:fixed descendants, which
   would re-anchor a showcase's full-screen overlays (mobile menus, etc.) to
   the page instead of the viewport and break them on scroll. Instead, content
   is offset with margin, and a showcase's own fixed header is nudged down by
   the bar height via the per-niche `nav-selector` prop (see the component). --- */
.glx-stage {
  margin-top: var(--glx-bar-h);
  min-height: calc(100vh - var(--glx-bar-h));
}

/* Showcase's own fixed/sticky top header, offset to sit below the topbar.
   The component scopes this to the niche's header selector + this class. */
.glx-fixed-header {
  top: var(--glx-bar-h) !important;
}

/* --- Some showcases hide the native cursor for a custom-cursor effect
   (e.g. `body * { cursor: none !important }`), and their custom cursor sits
   at a lower z-index than this chrome — so over the bar/modal the pointer
   vanishes and the CTAs feel unclickable. Force a real, visible cursor back
   on the chrome layer. Specificity (class-based + !important) beats the
   showcase's `body *` rule. --- */
.glx-bar, .glx-bar *,
.glx-modal, .glx-modal * { cursor: auto !important; }
.glx-cta,
.glx-modal a,
.glx-modal button,
.glx-modal-backdrop,
[data-glx-open],
[data-glx-close] { cursor: pointer !important; }

/* ============================ TOPBAR ===================================== */
.glx-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--glx-bar-h);
  z-index: 2147483600;
  display: flex;
  align-items: center;
  font-family: var(--glx-font);
  color: var(--glx-ink);
  background: linear-gradient(180deg, #0c1119 0%, #0a0e15 100%);
  border-bottom: 1px solid var(--glx-line);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.7);
  -webkit-font-smoothing: antialiased;
}
.glx-bar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Brand mark */
.glx-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.glx-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}
.glx-brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.glx-brand-text .glx-tag {
  font-weight: 500;
  color: var(--glx-ink-dim);
}
.glx-divider {
  width: 1px;
  height: 20px;
  background: var(--glx-line);
  flex-shrink: 0;
}

/* Pitch line */
.glx-pitch {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--glx-ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glx-pitch strong {
  color: var(--glx-ink);
  font-weight: 600;
}

.glx-spacer { flex: 1 1 auto; }

/* CTA button in the bar */
.glx-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--glx-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--glx-accent-ink);
  background: var(--glx-accent);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 0 0 0 rgba(212, 169, 85, 0.5);
}
.glx-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px -8px rgba(212, 169, 85, 0.65);
}
.glx-cta:active { transform: translateY(0); }
.glx-cta svg { width: 15px; height: 15px; }

/* Responsive: collapse the pitch on small screens, keep brand + CTA */
@media (max-width: 760px) {
  :root { --glx-bar-h: 46px; }
  .glx-divider, .glx-pitch { display: none; }
  .glx-bar-inner { gap: 10px; padding: 0 12px; }
  .glx-brand-text .glx-tag { display: none; }
  .glx-cta { padding: 8px 14px; }
}
@media (max-width: 380px) {
  .glx-cta-long { display: none; }
}

/* ===================== FLOATING FALLBACK (unused by default) ============= */
.glx-fab { display: none; }

/* ============================ MODAL ===================================== */
.glx-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--glx-font);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.glx-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s ease;
}
.glx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.74);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
          backdrop-filter: blur(8px) saturate(120%);
}

.glx-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 40px 40px 34px;
  color: var(--glx-ink);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(212, 169, 85, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, var(--glx-bg-soft) 0%, var(--glx-bg) 100%);
  border: 1px solid var(--glx-line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.glx-modal.is-open .glx-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.glx-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glx-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--glx-ink-dim);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.glx-modal-close:hover {
  color: var(--glx-ink);
  background: rgba(255, 255, 255, 0.09);
  transform: rotate(90deg);
}
.glx-modal-close svg { width: 16px; height: 16px; }

.glx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glx-accent);
  margin-bottom: 16px;
}
.glx-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glx-accent);
  box-shadow: 0 0 12px var(--glx-accent);
}

.glx-modal-title {
  font-size: clamp(24px, 4.5vw, 31px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.glx-modal-title em {
  font-style: normal;
  color: var(--glx-accent);
}
.glx-modal-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--glx-ink-dim);
  margin: 0 0 26px;
}

.glx-perks-heading {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glx-ink-dim);
}

.glx-perks {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
}
/* Compact single-line variant for a "what's included" checklist */
.glx-perks--checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  gap: 11px 22px;
}
.glx-perks--checklist li { align-items: center; }
.glx-perks--checklist .glx-check { width: 19px; height: 19px; margin-top: 0; }
.glx-perks--checklist .glx-check svg { width: 11px; height: 11px; }
.glx-perks--checklist li span b { font-weight: 600; font-size: 14px; }
@media (max-width: 520px) {
  .glx-perks--checklist { grid-template-columns: 1fr; }
}
.glx-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--glx-ink);
}
.glx-perks .glx-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 169, 85, 0.14);
  color: var(--glx-accent);
}
.glx-perks .glx-check svg { width: 13px; height: 13px; }
.glx-perks li span b { font-weight: 700; }
.glx-perks li span small {
  display: block;
  font-size: 13px;
  color: var(--glx-ink-dim);
  margin-top: 1px;
}

.glx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.glx-btn {
  flex: 1 1 0;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--glx-font);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 13px;
  padding: 14px 18px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
              background 0.18s ease;
}
.glx-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.glx-btn-wa {
  color: #06281c;
  background: linear-gradient(180deg, #38e08a 0%, #20c477 100%);
  box-shadow: 0 12px 28px -12px rgba(32, 196, 119, 0.7);
}
.glx-btn-wa:hover { transform: translateY(-2px); filter: brightness(1.04); }
.glx-btn-mail {
  color: var(--glx-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glx-line);
}
.glx-btn-mail:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
}

.glx-modal-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--glx-line);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--glx-ink-dim);
}
.glx-modal-foot .glx-mark { width: 18px; height: 18px; }
.glx-modal-foot b { color: var(--glx-ink); font-weight: 700; }

@media (max-width: 520px) {
  .glx-modal-card { padding: 32px 22px 26px; border-radius: 18px; }
  .glx-actions { flex-direction: column; }
  .glx-btn { width: 100%; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .glx-cta, .glx-btn, .glx-modal, .glx-modal-card, .glx-modal-close {
    transition: none !important;
  }
  .glx-modal-card { transform: none; }
}
