/**
 * Landing HTML bundle — scoped so theme header/footer stay sane.
 * Uses Customizer colors via --btl-* on :root (see functions.php inline CSS).
 */

body.btl-landing-canvas {
  --bg: var(--btl-bg, #010101);
  --text: var(--btl-text, #e5e7eb);
  --muted: var(--btl-muted, #9ca3af);
  --accent: var(--btl-accent, #00c48f);
  --line: rgba(255, 255, 255, 0.08);
  --card: #12121a;
  --gold: #ffd700;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body.btl-landing-canvas.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

body.btl-landing-canvas::-webkit-scrollbar {
  width: 8px;
}
body.btl-landing-canvas::-webkit-scrollbar-track {
  background: #0b0e14;
}
body.btl-landing-canvas::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
body.btl-landing-canvas::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.btl-html-wrap,
.btl-html-wrap * {
  box-sizing: border-box;
}

.btl-html-wrap .container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.btl-html-wrap .glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btl-html-wrap .nav-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

.btl-html-wrap .brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: var(--text);
}

.btl-html-wrap .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btl-html-wrap .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btl-html-wrap .nav-links a:hover {
  color: var(--text);
}

.btl-html-wrap .btn {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 18%, transparent),
    color-mix(in srgb, var(--accent) 5%, transparent)
  );
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btl-html-wrap .btn:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

.btl-html-wrap #mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btl-html-wrap .hero {
  padding: 74px 0 28px;
}

.btl-html-wrap .eyebrow {
  display: inline-block;
  color: #9ae6b4;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.btl-html-wrap {
  font-family: "Rajdhani", sans-serif;
}

.btl-html-wrap h1,
.btl-html-wrap h2,
.btl-html-wrap h3,
.btl-html-wrap h4,
.btl-html-wrap h5,
.btl-html-wrap h6 {
  font-family: "Orbitron", sans-serif;
}

.btl-html-wrap h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.btl-html-wrap .gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btl-html-wrap .hero p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 24px;
}

.btl-html-wrap .glass-card {
  background: linear-gradient(180deg, rgba(21, 26, 37, 0.7) 0%, rgba(11, 14, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 16px;
  transition: all 0.35s ease;
}

.btl-html-wrap .glass-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 12%, transparent);
}

.btl-html-wrap .dashboard {
  margin-top: 30px;
  padding: 20px;
}

.btl-html-wrap .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btl-html-wrap .live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ae6b4;
  font-weight: 700;
  font-size: 0.88rem;
}

.btl-html-wrap .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  animation: btlLivePulse 1.5s infinite;
}

@keyframes btlLivePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
  }
}

.btl-html-wrap .dash-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btl-html-wrap .dashboard-card {
  background: #12121a;
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 12px;
  padding: 1.1rem;
}

.btl-html-wrap .dashboard-card h4 {
  margin: 0;
  color: #c7d0e5;
  font-size: 0.9rem;
  font-weight: 600;
}

.btl-html-wrap .dashboard-card h2 {
  margin: 4px 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
}

.btl-html-wrap .dashboard-card p {
  margin: 0;
  color: #8ddcb5;
  font-size: 0.88rem;
}

.btl-html-wrap .volume-meter {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.btl-html-wrap .volume-fill {
  height: 100%;
  width: 73%;
  background: linear-gradient(90deg, #b8860b, #ffd700);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.btl-html-wrap .signal-indicator {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 3px solid #00ff88;
  color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btl-html-wrap section {
  padding: 68px 0;
}
.btl-html-wrap section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.btl-html-wrap .muted {
  color: var(--muted);
}

.btl-html-wrap .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.btl-html-wrap .stat {
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f131d;
  font-weight: 700;
}

.btl-html-wrap .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.btl-html-wrap .card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #101521;
}

.btl-html-wrap .tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #e8d48e;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}

.btl-html-wrap .card h3 {
  margin-top: 0;
}
.btl-html-wrap .card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 12px 0 4px;
  cursor: zoom-in;
}

.btl-html-wrap .zoom-note {
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.btl-html-wrap .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.btl-html-wrap .quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.btl-html-wrap .quote {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #111723;
}

.btl-html-wrap .quote strong {
  display: block;
  margin-top: 8px;
}

/* Pasted landing footer only — does not affect theme footer */
.btl-html-wrap footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--muted);
  background: #090c12;
}

.btl-html-wrap .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.btl-html-wrap footer h4 {
  color: var(--text);
  margin-bottom: 8px;
}
.btl-html-wrap footer a {
  color: #b8c2d9;
  text-decoration: none;
}
.btl-html-wrap footer a:hover {
  color: var(--text);
}
.btl-html-wrap footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.btl-html-wrap footer li {
  margin-bottom: 6px;
}

.btl-html-wrap #imgModal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px 16px;
}

.btl-html-wrap #modalImg {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btl-html-wrap .close-modal {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 940px) {
  .btl-html-wrap .cards,
  .btl-html-wrap .quote-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btl-html-wrap .stats {
    grid-template-columns: 1fr 1fr;
  }
  .btl-html-wrap .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .btl-html-wrap #mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btl-html-wrap .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    right: 4%;
    width: min(300px, 92%);
    flex-direction: column;
    align-items: stretch;
    background: #0f1521;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
  }
  .btl-html-wrap .nav-links.open {
    display: flex;
  }
  .btl-html-wrap .cards,
  .btl-html-wrap .quote-grid,
  .btl-html-wrap .feature-grid,
  .btl-html-wrap .dash-grid {
    grid-template-columns: 1fr;
  }
}
