/* ========================================================================
 * Consiliarius · 3D interactive tour · v2 (split visual + selling copy)
 * ====================================================================== */

* { box-sizing: border-box; }

.tour-body {
  margin: 0;
  padding: 0;
  background: #050811;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  height: 100vh;
}

[hidden] { display: none !important; }

/* ===== 3D canvas (ambient background only) ===== */
#tour-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  opacity: 0.7;
}

/* ===== Topbar ===== */
.tour-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(5,8,17,0.92) 0%, rgba(5,8,17,0.4) 80%, transparent 100%);
  pointer-events: none;
}
.tour-topbar > * { pointer-events: auto; }
.tour-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.tour-brand img { width: 26px; height: 26px; }
.tour-controls-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tour-lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.tour-lang-pill {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tour-lang-pill .lp-flag {
  display: inline-flex;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}
.tour-lang-pill .lp-flag svg { width: 100%; height: 100%; display: block; }
.tour-lang-pill .lp-flag-label { line-height: 1; }
.tour-lang-pill:hover { color: #fff; }
.tour-lang-pill.active {
  background: rgba(255,180,84,0.2);
  color: #FFB454;
}
.tour-icon-btn,
.tour-exit-link {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tour-icon-btn:hover,
.tour-exit-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.tour-exit-link { font-size: 22px; line-height: 1; }

/* ========================================================================
 * MAIN STAGE · split visual + copy
 * ====================================================================== */
.tour-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  padding: 80px 32px 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tour-grid {
  pointer-events: auto;
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1024px) {
  .tour-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
  }
  .tour-stage { padding: 80px 16px 130px; }
}

/* ===== LEFT: visual / mockup frame ===== */
.tour-visual {
  position: relative;
}
.tour-visual-frame {
  background: linear-gradient(160deg, #0e1422 0%, #0a0f1a 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 60px rgba(255,180,84,0.08);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tour-visual.transitioning .tour-visual-frame {
  opacity: 0;
  transform: scale(0.97);
}
.tour-visual-chrome {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.tour-chrome-dot:nth-child(1) { background: #ef4444; }
.tour-chrome-dot:nth-child(2) { background: #f59e0b; }
.tour-chrome-dot:nth-child(3) { background: #10b981; }
.tour-chrome-url {
  margin-left: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: monospace;
}
.tour-visual-content {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050811;
  overflow: hidden;
}
.tour-visual-content svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating badges around the mockup */
.tour-visual-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tour-badge {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,180,84,0.95) 0%, rgba(245,158,11,0.95) 100%);
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(255,180,84,0.4);
  white-space: nowrap;
  animation: badgeFloat 4s ease-in-out infinite;
}
.tour-badge.badge-tl { top: -14px; left: -14px; transform: rotate(-4deg); }
.tour-badge.badge-tr { top: -14px; right: -14px; transform: rotate(4deg); animation-delay: 1s; }
.tour-badge.badge-bl { bottom: -14px; left: -14px; transform: rotate(2deg); animation-delay: 2s; }
.tour-badge.badge-br { bottom: -14px; right: -14px; transform: rotate(-3deg); animation-delay: 3s; }
.tour-badge.badge-dark {
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.95) 100%);
  color: #FFB454;
  border: 1px solid rgba(255,180,84,0.4);
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
}

/* ===== RIGHT: selling copy ===== */
.tour-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tour-copy-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FFB454;
  text-transform: uppercase;
}
.tour-copy-pain {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tour-copy-title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #FFB454 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tour-copy-headline {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.tour-copy-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tour-copy-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.tour-copy-bullets li::before {
  content: "✓";
  color: #10b981;
  flex: 0 0 auto;
  font-weight: 800;
  margin-top: 1px;
}
.tour-copy-proof {
  margin-top: 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,180,84,0.12) 0%, rgba(255,180,84,0.04) 100%);
  border: 1px solid rgba(255,180,84,0.3);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.tour-copy-proof strong {
  color: #FFB454;
  font-weight: 800;
}
.tour-narration-toggle {
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.tour-narration-toggle:hover { color: #FFB454; }
.tour-stop-narration {
  margin: 0;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* ===== Bottom controls ===== */
.tour-controls {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.tour-control-btn {
  background: rgba(10,15,26,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
}
.tour-control-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,180,84,0.2);
  border-color: rgba(255,180,84,0.5);
}
.tour-play-btn {
  width: 56px;
  height: 56px;
  font-size: 18px;
  background: linear-gradient(135deg, #FFB454 0%, #f59e0b 100%);
  color: #1a1a1a;
  border-color: transparent;
}
.tour-play-btn:hover { background: linear-gradient(135deg, #FFC678 0%, #FFB454 100%); }
.tour-next-btn {
  background: rgba(255,180,84,0.15);
  border-color: rgba(255,180,84,0.4);
  color: #FFB454;
}
.tour-progress-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
}
.tour-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
  padding: 0;
}
.tour-progress-dot:hover { background: rgba(255,255,255,0.4); }
.tour-progress-dot.active {
  background: #FFB454;
  width: 28px;
  border-radius: 6px;
}
.tour-progress-dot.completed { background: rgba(255,180,84,0.5); }

/* ===== Final CTA overlay ===== */
.tour-final-cta {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: radial-gradient(ellipse at center, rgba(5,8,17,0.85) 0%, rgba(5,8,17,0.97) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: tourFinalIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes tourFinalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tour-final-cta h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #FFB454 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tour-final-cta > p {
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  line-height: 1.5;
}
.tour-final-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.tour-final-cta .lp-cta {
  padding: 16px 32px;
  font-size: 16px;
  background: linear-gradient(135deg, #FFB454 0%, #f59e0b 100%);
  color: #1a1a1a;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,180,84,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tour-final-cta .lp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,180,84,0.55);
}
.tour-final-cta .lp-cta-ghost {
  padding: 16px 32px;
  font-size: 16px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.tour-final-cta .lp-cta-ghost:hover { background: rgba(255,255,255,0.12); }
.tour-final-tiny {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .tour-copy-title { font-size: 30px; }
  .tour-copy-headline { font-size: 15px; }
  .tour-final-cta h2 { font-size: 34px; }
  .tour-final-cta > p { font-size: 15px; }
  .tour-topbar { padding: 12px 14px; }
  .tour-controls { gap: 10px; bottom: 16px; }
  .tour-control-btn { width: 42px; height: 42px; }
  .tour-play-btn { width: 50px; height: 50px; }
  .tour-stage { padding: 70px 12px 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-visual-frame,
  .tour-control-btn,
  .tour-progress-dot,
  .tour-badge { transition: none !important; animation: none !important; }
  .tour-final-cta { animation: none !important; }
}

/* ========================================================================
 * SVG mockup styles · classes used inside generated SVGs
 * ====================================================================== */
.mk-bg { fill: #050811; }
.mk-panel { fill: rgba(255,255,255,0.04); }
.mk-panel-stroke { stroke: rgba(255,255,255,0.08); fill: none; }
.mk-card { fill: rgba(255,255,255,0.06); }
.mk-line { stroke: rgba(255,255,255,0.12); }
.mk-text-bright { fill: #fff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.mk-text { fill: rgba(255,255,255,0.7); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.mk-text-muted { fill: rgba(255,255,255,0.45); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.mk-accent { fill: #FFB454; }
.mk-accent-stroke { stroke: #FFB454; fill: none; }
.mk-good { fill: #10b981; }
.mk-warn { fill: #f59e0b; }
.mk-bad { fill: #ef4444; }
.mk-blue { fill: #3b82f6; }
.mk-violet { fill: #a78bfa; }
.mk-pink { fill: #f472b6; }
.mk-teal { fill: #2dd4bf; }
.mk-pulse { animation: mkPulse 2s ease-in-out infinite; transform-origin: center; }
@keyframes mkPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.mk-typing { animation: mkBlink 1s steps(2) infinite; }
@keyframes mkBlink {
  50% { opacity: 0; }
}
.mk-slide-in {
  animation: mkSlideIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) backwards;
}
@keyframes mkSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
