/*
 * front_page.css
 * Styles specific to front_page_actual.html.
 * Load AFTER q-shared.css.
 * Shared tokens/buttons/typography live in q-shared.css.
 */

/* === Labels === */
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--q-border);
}
.chip-public {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
.chip-view {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.25);
}
.chip-private {
  background: rgba(107, 114, 128, 0.12);
  color: #374151;
  border-color: rgba(107, 114, 128, 0.25);
}
.chip-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}
.chip-soon {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.2);
}

.obfuscated .param {
  filter: blur(6px);
}

/* === Hero === */
.hero-title {
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}
.fomo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0;
}
.fomo-pill {
  border: 1px dashed var(--q-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
}
.spots {
  color: #b45309;
}
.countdown {
  color: #7c3aed;
}

/* === Trust bar === */
.trust-bar {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.25rem 0;
}
.trust-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: #a5b4fc;
}
.trust-stat .lbl {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Feature cards === */
.feat-card {
  border: 1px solid var(--q-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: 0.2s;
  background: #fff;
  height: 100%;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feat-icon.purple {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.feat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.feat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.feat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.feat-icon.rose {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.feat-icon.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}
.feat-icon.grey {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.feat-badge-live {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.feat-badge-soon {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* === Coming-soon roadmap cards === */
.roadmap-card {
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fafbff, #f0f1ff);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15),
    transparent 70%
  );
}

/* === Screenshot placeholder === */
.screen-placeholder {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px dashed #475569;
  overflow: hidden;
}

/* === Steps === */
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--q-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

/* === Metric pills === */
.metric-pill {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.metric-pill .val {
  font-size: 1.5rem;
  font-weight: 800;
}
.metric-pill .name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--q-muted);
}
.metric-green {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.metric-green .val {
  color: #059669;
}
.metric-red {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.metric-red .val {
  color: #ef4444;
}
.metric-blue {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.metric-blue .val {
  color: #6366f1;
}
.metric-amber {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.metric-amber .val {
  color: #d97706;
}

/* === AI Chat bubbles === */
.chat-bubble {
  border-radius: 16px;
  padding: 0.75rem 1rem;
  max-width: 86%;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-user {
  background: #6366f1;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-ai {
  background: #f1f5f9;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* === Strategy / marketplace cards === */
.strategy-card {
  border: 1px solid var(--q-border);
  border-radius: 14px;
  padding: 1rem;
  transition: 0.2s;
  background: #fff;
}
.strategy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.marketplace-card {
  border: 1px solid var(--q-border);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
  transition: 0.2s;
}
.marketplace-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.spark {
  height: 42px;
  width: 100%;
}
.mini-metric {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.rating {
  color: #f59e0b;
}
.blur-hint {
  font-size: 0.8rem;
  color: var(--q-muted);
}

/* === Step cards (How it works) === */
.step-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--q-border);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  height: 100%;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}
.step-card-visual {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.step-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-card-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step-card-body {
  padding: 1.5rem;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--q-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 175px;
}

/* === Gallery cards === */
.gallery-card {
  border: 1px solid var(--q-border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
  height: 100%;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.gallery-card-chart {
  height: 168px;
  position: relative;
  overflow: hidden;
}
.gallery-card-body {
  padding: 1.25rem;
}
.strat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.3;
}
.tag-ai,
.tag-view {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.tag-private {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.gallery-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.9rem;
}
.gm-item {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gm-green {
  color: #059669;
}
.gm-red {
  color: #ef4444;
}
.gm-blue {
  color: #6366f1;
}

/* === Misc === */
.progress-slim {
  height: 10px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
}
.progress-slim > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.live-board {
  border: 1px solid var(--q-border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Dark mode ──────────────────────────────────────────────────── */
[data-bs-theme='dark'] h1.hero-title {
  color: #f1f5f9;
}
[data-bs-theme='dark'] .hero-subtitle {
  color: #94a3b8;
}
[data-bs-theme='dark'] .fomo-pill {
  border-color: #334155;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}
[data-bs-theme='dark'] .feat-card {
  background: #1e293b;
  border-color: #334155;
}
[data-bs-theme='dark'] .roadmap-card {
  background: linear-gradient(135deg, #1a1f35, #1e1b4b);
  border-color: #4338ca;
}
[data-bs-theme='dark'] .roadmap-card::before {
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.25),
    transparent 70%
  );
}
[data-bs-theme='dark'] .step-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
[data-bs-theme='dark'] .gallery-card {
  background: #1e293b;
  border-color: #334155;
}
[data-bs-theme='dark'] .gallery-card-body .text-muted {
  color: #64748b !important;
}
[data-bs-theme='dark'] .blur-hint {
  color: #64748b;
}
[data-bs-theme='dark'] .chat-ai {
  background: #0f172a;
  color: #cbd5e1;
}
[data-bs-theme='dark'] .p-4.rounded-4.border.shadow-sm {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
[data-bs-theme='dark'] .metric-green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
[data-bs-theme='dark'] .metric-blue {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}
[data-bs-theme='dark'] .metric-red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}
[data-bs-theme='dark'] .metric-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
[data-bs-theme='dark'] .live-board {
  background: #1e293b;
  border-color: #334155;
}
[data-bs-theme='dark'] .screen-placeholder {
  background: linear-gradient(135deg, #020617, #0f172a);
  border-color: #334155;
}
[data-bs-theme='dark'] .label-chip {
  border-color: #374151;
}
[data-bs-theme='dark']
  .feat-card
  [style*='border-top:1px solid var(--q-border)'] {
  border-top-color: #334155 !important;
}
[data-bs-theme='dark'] .chip-private {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
}
[data-bs-theme='dark'] .progress-slim {
  background: #1e293b;
}

/* ── Wave urgency strip ─────────────────────────────────────────── */
.wave-strip-wrap {
  position: fixed;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1050;
}
.wave-strip {
  pointer-events: auto;
  width: 100%;
  max-width: 660px;
  min-height: 44px;
  height: auto;
  margin: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(90deg, #1e1b4b 0%, #2e1065 50%, #1e1b4b 100%);
  color: #e0e7ff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 25px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  padding: 0.55rem 1.25rem;
}
.wave-strip a {
  color: #a5b4fc;
  text-decoration: none;
  margin-left: 0.5rem;
}
.wave-strip a:hover {
  text-decoration: underline;
}
.wave-strip__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.75rem;
}
.wave-strip__sep {
  flex-shrink: 0;
}
.wave-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5b4fc;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

/* Mobile pill (hidden on desktop) */
.wave-mob-pill {
  display: none;
}

@media (max-width: 600px) {
  .wave-strip-wrap {
    display: none;
  }
  .wave-mob-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: calc(100vw - 140px);
    background: linear-gradient(90deg, #1e1b4b, #2e1065);
    color: #e0e7ff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    letter-spacing: 0.01em;
    height: 44px;
  }
  .wave-mob-pill:active {
    transform: translateX(-50%) scale(0.96);
  }
}

/* ── Wave modal — default (dark) theme ─────────────────────────── */
#waveModal .modal-content {
  background: linear-gradient(160deg, #17103a 0%, #1e1b4b 45%, #2a1060 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #e0e7ff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(139, 92, 246, 0.08);
}

/* ── Wave modal — light theme overrides ────────────────────────── */
[data-bs-theme='light'] #waveModal .modal-content {
  background: linear-gradient(160deg, #faf9ff 0%, #f0edfe 50%, #ede9fe 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #1e1b4b;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(99, 102, 241, 0.06);
}
[data-bs-theme='light'] #waveModal .btn-close-white {
  filter: invert(1);
  opacity: 0.55;
}
[data-bs-theme='light'] #waveModal .wave-modal-header {
  border-bottom-color: rgba(99, 102, 241, 0.2) !important;
}
[data-bs-theme='light'] #waveModal .wave-ea-label {
  color: #4f46e5 !important;
}
[data-bs-theme='light'] #waveModal .wave-num-badge {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #6d28d9 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}
[data-bs-theme='light'] #waveModal .wave-countdown-label {
  color: #7c3aed !important;
}
[data-bs-theme='light'] #waveModal .ea-countdown {
  background: linear-gradient(135deg, #1e1b4b 20%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-bs-theme='light'] #waveModal .wave-spots-card {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}
[data-bs-theme='light'] #waveModal .wave-spots-label {
  color: #6366f1 !important;
}
[data-bs-theme='light'] #waveModal .wave-spots-total {
  color: #9ca3af !important;
}
[data-bs-theme='light'] #waveModal .wave-bar-track {
  background: #ddd6fe !important;
}
[data-bs-theme='light'] #waveModal .wave-benefits-label {
  color: #7c3aed !important;
}
[data-bs-theme='light'] #waveModal .wave-benefit-row {
  color: #4338ca !important;
}
[data-bs-theme='light'] #waveModal .wave-microcopy {
  color: #6b7280 !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .trust-stat .num {
    font-size: 1.5rem;
  }
}
