/* Landing wow-layer styles — loaded after landing-modern.css */

/* ─── WebGL mesh canvas ─── */
.mesh-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
body.mesh-on .aurora-blob { display: none; }
body.mesh-on .hero-wrapper { background: #050814; }

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
  pointer-events: none;
}

/* ─── Cursor spotlight ─── */
.cursor-spotlight {
  position: fixed; top: 0; left: 0;
  width: 500px; height: 500px;
  margin: -250px 0 0 -250px;
  pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, rgba(167,139,250,0) 60%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ─── Chat skeleton shimmer ─── */
.chat-skeleton {
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  position: absolute; inset: 44px 0 0 0;
  background: rgba(30,41,59,0.85); transition: opacity 0.6s;
}
.chat-skeleton.sk-fade { opacity: 0; }
.sk {
  height: 34px; border-radius: 14px; max-width: 85%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-ai { align-self: flex-start; width: 70%; }
.sk-user { align-self: flex-end; width: 55%; background-color: rgba(255,255,255,0.04); }
.sk-wide { width: 82%; height: 48px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-chat-mockup { position: relative; }

/* ─── Ticker ─── */
.ticker-section {
  padding: 32px 0 12px; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(15,23,42,0.6);
  position: relative;
}
.ticker-section::before, .ticker-section::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker-section::before { left: 0; background: linear-gradient(90deg, #0f172a, transparent); }
.ticker-section::after  { right: 0; background: linear-gradient(-90deg, #0f172a, transparent); }
.ticker-label {
  text-align: center; font-size: 0.78rem; color: #64748b;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
.ticker-track {
  display: flex; gap: 14px; width: max-content;
  animation: ticker-scroll 50s linear infinite;
  padding: 4px 0;
}
.ticker-section:hover .ticker-track,
.ticker-section.ticker-offscreen .ticker-track { animation-play-state: paused; }
.ticker-chip {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.85rem; color: #cbd5e1;
  display: inline-flex; align-items: center; gap: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticker-chip .ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.6);
  flex-shrink: 0;
}
.ticker-chip .ticker-amt { color: #a78bfa; font-weight: 600; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Before/After slider ─── */
.ba-section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.ba-subtitle {
  text-align: center; color: #94a3b8; font-size: 1.05rem;
  max-width: 600px; margin: -36px auto 40px; line-height: 1.6;
}
.ba-slider {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 10 / 3;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  cursor: ew-resize; user-select: none;
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ba-before {
  background: radial-gradient(ellipse at 30% 40%, #2a1a0a 0%, #0f0a05 70%);
  color: #fbbf24;
}
.ba-after {
  background: radial-gradient(ellipse at 70% 40%, #1e1a3a 0%, #0a0f1a 70%);
  color: #a78bfa;
  clip-path: inset(0 0 0 50%);
}
.ba-scene {
  position: absolute; inset: 0;
  padding: 26px 30px 22px;
  display: flex; flex-direction: column; gap: 18px;
  color: #e2e8f0;
}
.ba-scene svg { opacity: 0.9; flex-shrink: 0; }
.ba-scene-head {
  display: flex; align-items: center; gap: 14px;
  width: 48%;
}
.ba-scene-before .ba-scene-head { margin-right: auto; }
.ba-scene-after  .ba-scene-head { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.ba-scene-titles { min-width: 0; }
.ba-scene .ba-title {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
  color: #f1f5f9; font-family: 'Inter Tight', Inter, sans-serif;
  line-height: 1.2;
}
.ba-scene .ba-sub {
  font-size: 0.82rem; color: #94a3b8; margin-top: 4px; line-height: 1.4;
}
.ba-scene-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  align-content: flex-start; align-items: start;
}
@media (max-width: 740px) {
  .ba-scene-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ba-scene { padding: 20px 18px 16px; gap: 14px; }
  .ba-scene-head { width: 100%; }
  .ba-slider { aspect-ratio: 4 / 5; }
}
.ba-mini {
  padding: 10px 12px;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 4px;
}
.ba-mini-top { display: flex; justify-content: space-between; align-items: center; }
.ba-mini-time {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #94a3b8; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ba-mini-label { color: #f1f5f9; font-weight: 600; font-size: 0.82rem; line-height: 1.3; }
.ba-mini-sub { font-size: 0.72rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.ba-mini-x, .ba-mini-check { font-weight: 800; font-size: 0.95rem; line-height: 1; }
.ba-mini-fail { border-top: 2px solid #fb923c; }
.ba-mini-fail .ba-mini-x { color: #f87171; }
.ba-mini-win  { border-top: 2px solid #34d399; }
.ba-mini-win  .ba-mini-check { color: #34d399; }
.ba-scene-foot {
  width: 48%;
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 4px 0; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
}
.ba-scene-before .ba-scene-foot { margin-right: auto; }
.ba-scene-after  .ba-scene-foot { margin-left: auto; justify-content: flex-end; }
.ba-foot-label {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #94a3b8; font-weight: 700;
}
.ba-foot-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.ba-scene-foot-fail .ba-foot-value { color: #f87171; }
.ba-scene-foot-win  .ba-foot-value { color: #34d399; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.7) 20%, rgba(255,255,255,0.7) 80%, rgba(255,255,255,0.0));
  cursor: ew-resize; transform: translateX(-50%); z-index: 3;
}
.ba-handle::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.ba-handle::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: #e2e8f0; font-size: 1rem; font-weight: 700;
}

/* ─── Footer status dot ─── */
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: #64748b; margin-top: 8px;
}
.footer-status::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.15), 0 0 8px rgba(52,211,153,0.55);
  animation: status-pulse 2.2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.15), 0 0 8px rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0.05), 0 0 14px rgba(52,211,153,0.8); }
}

/* ─── Cmd+K palette ─── */
.cmdk {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
}
.cmdk.cmdk-open { display: flex; }
.cmdk-scrim {
  position: absolute; inset: 0;
  background: rgba(5, 8, 20, 0.6); backdrop-filter: blur(6px);
  animation: cmdk-fade 0.15s ease-out;
}
.cmdk-panel {
  position: relative; width: min(92vw, 560px);
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,92,246,0.15) inset;
  animation: cmdk-pop 0.18s cubic-bezier(.2,.7,.2,1);
}
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdk-pop  { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.cmdk-search-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmdk-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #f1f5f9; font-size: 1rem; font-family: inherit;
}
.cmdk-esc {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 0.7rem; padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.07); color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.08);
}
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.cmdk-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; color: #cbd5e1; font-size: 0.95rem;
  border-radius: 8px; cursor: pointer; transition: background 0.1s;
}
.cmdk-item.cmdk-active, .cmdk-item:hover {
  background: rgba(139,92,246,0.12); color: #f1f5f9;
}
.cmdk-item kbd {
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 0.75rem;
  color: #64748b; opacity: 0; transition: opacity 0.1s;
}
.cmdk-item.cmdk-active kbd { opacity: 1; }

/* Brand logo in nav */
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 28px; height: 28px; border-radius: 7px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

/* CmdK hint in nav (desktop only) */
.cmdk-hint {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; color: #94a3b8; cursor: pointer;
  transition: background 0.15s;
}
.cmdk-hint:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.cmdk-hint kbd {
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 0.72rem;
  color: inherit; background: transparent;
}
@media (max-width: 768px) { .cmdk-hint { display: none; } }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .sk, .footer-status::before { animation: none !important; }
  .cursor-spotlight { display: none; }
}
