/* ═══════════════════════════════════════════════
   EXPERIENCE LAYER — video, tour, brand, micro-UX
═══════════════════════════════════════════════ */

/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-line);
  margin-right: 0;
  flex-shrink: 0;
}
.lang-switch a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 100px;
  color: var(--c-slate);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--c-white); }
.lang-switch a.active {
  background: var(--c-blue);
  color: var(--c-white);
}

/* ── Video demo section ── */
.video-demo-section {
  position: relative;
  padding: 120px 48px;
  overflow: hidden;
}
.video-demo-section--compact {
  padding: 80px 48px;
}
.video-demo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(13, 110, 253, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99, 102, 241, 0.08), transparent 55%);
  pointer-events: none;
}
.video-demo-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.video-demo-sub {
  margin-top: 20px;
  max-width: 440px;
}
.video-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.video-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(77, 171, 255, 0.2);
  color: var(--c-glow);
}
.video-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.video-demo-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--c-slate);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.video-demo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(77, 171, 255, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(13, 110, 253, 0.1);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.video-demo-frame:hover {
  box-shadow: 0 40px 100px rgba(13, 110, 253, 0.2), 0 0 0 1px rgba(77, 171, 255, 0.3);
}
.video-demo-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.video-demo-frame:hover .video-demo-poster {
  transform: scale(1.04);
}
.video-demo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 13, 26, 0.75) 100%);
  pointer-events: none;
}
.video-play-fab {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--c-blue), var(--c-arc));
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
  transition: transform 0.3s var(--ease-out);
}
.video-play-fab:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(77, 171, 255, 0.4);
  animation: play-ring 2.5s ease-out infinite;
}
.video-play-ring--delay { animation-delay: 1.2s; }
@keyframes play-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.video-demo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-line);
  color: var(--c-glow);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none !important; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.92);
  backdrop-filter: blur(8px);
}
.video-modal-panel {
  position: relative;
  width: min(960px, 100%);
  background: linear-gradient(165deg, #0c2850, #050d1a);
  border: 1px solid rgba(77, 171, 255, 0.25);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.35s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.video-modal-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-right: 48px;
}
.video-modal-player {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-modal-player iframe,
.video-modal-player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-modal-fallback {
  margin-top: 16px;
  color: var(--c-slate);
  text-align: center;
}
.video-modal-cta {
  display: inline-flex;
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

/* ── Product tour ── */
.product-tour {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-tour[hidden] { display: none !important; }
.product-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.94);
}
.product-tour-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(165deg, #0a2244, #050d1a);
  border: 1px solid rgba(77, 171, 255, 0.3);
  border-radius: 20px;
  padding: 28px 32px 32px;
  animation: modal-in 0.35s var(--ease-out);
}
.product-tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.product-tour-header h2 { font-size: 22px; margin: 0; }
.product-tour-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.product-tour-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.tour-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s;
}
.tour-dot.active {
  background: linear-gradient(90deg, var(--c-blue), var(--c-arc));
  transform: scaleY(1.5);
}
.product-tour-stage { min-height: 320px; }
.tour-step { display: none; }
.tour-step.active { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.tour-step-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.tour-step-img { width: 100%; display: block; }
.tour-hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid var(--c-white);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
}
.pulse-hotspot { animation: hotspot-pulse 1.8s ease infinite; }
@keyframes hotspot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.tour-step-copy h3 { font-size: 24px; margin-bottom: 12px; }
.tour-step-copy p { color: var(--c-slate); line-height: 1.65; }
.product-tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
  gap: 16px;
}
.tour-step-label { font-size: 13px; color: var(--c-slate); }
.product-tour-nav { display: flex; gap: 12px; }

/* ── Brand editorial ── */
.brand-editorial-section {
  padding: 120px 48px;
  background: var(--c-deep);
}
.brand-editorial-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.brand-editorial-header {
  max-width: 560px;
  margin-bottom: 56px;
}
.brand-editorial-sub { margin-top: 16px; }
.brand-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.brand-shot {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  min-height: 200px;
  background: var(--c-navy);
}
.brand-shot--wide {
  grid-column: span 2;
  grid-row: span 2;
}
.brand-shot-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.brand-shot:hover .brand-shot-img { transform: scale(1.06); }
.brand-shot-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(5, 13, 26, 0.82) 100%);
  opacity: 1;
  transition: opacity 0.3s;
}
.brand-shot:hover .brand-shot-overlay {
  background: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(5, 13, 26, 0.9) 100%);
}
.brand-shot figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* ── Micro-interactions ── */
.btn-magnetic { position: relative; overflow: hidden; }
.btn-magnetic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-magnetic:hover::after { opacity: 1; }
.micro-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes shine-sweep {
  0%, 100% { left: -100%; }
  50% { left: 140%; }
}
.stagger-children.in .sr {
  animation: stagger-up 0.6s var(--ease-out) backwards;
}
.stagger-children.in .sr:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.in .sr:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.in .sr:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.in .sr:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.in .sr:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.in .sr:nth-child(6) { animation-delay: 0.3s; }
.stagger-children.in .sr:nth-child(7) { animation-delay: 0.35s; }
@keyframes stagger-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.proof-num.counted { transition: none; }

@media (max-width: 1024px) {
  .video-demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .tour-step.active { grid-template-columns: 1fr; }
  .brand-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .brand-shot--wide { grid-column: span 2; grid-row: span 1; }
}
.lang-switch-mobile {
  display: none;
  margin-bottom: 20px;
}
.nav-drawer.open .lang-switch-mobile,
.nav-drawer:not([hidden]) .lang-switch-mobile {
  display: flex;
}

@media (max-width: 768px) {
  .video-demo-section,
  .brand-editorial-section { padding: 80px 24px; }
  .nav-right > .lang-switch { display: none; }
  .brand-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .brand-shot--wide { grid-column: span 1; }
}
/* ── Blog (public) ── */
.blog-list-section { padding-top: 40px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.55), rgba(7, 22, 40, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.blog-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-body time { font-size: 12px; color: var(--c-slate); }
.blog-card-body h2 { margin: 10px 0 12px; font-size: 20px; }
.blog-card-body h2 a { color: var(--c-white); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--c-glow); }
.blog-card-body p { font-size: 14px; color: var(--c-slate); line-height: 1.6; margin-bottom: 16px; }
.blog-read-more { font-size: 13px; font-weight: 700; color: var(--c-glow); text-decoration: none; }
.blog-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.blog-pagination a {
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--c-line);
  color: var(--c-slate); text-decoration: none; font-weight: 700; font-size: 14px;
}
.blog-pagination a.active { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.blog-post-body { max-width: 720px; margin: 0 auto; }
.blog-post-body img { max-width: 100%; border-radius: 12px; }
.blog-post-hero-img { max-width: 960px; margin: -40px auto 0; padding: 0 24px; }
.blog-post-hero-img img { width: 100%; border-radius: 16px; border: 1px solid var(--c-line); }
.blog-post-back { text-align: center; padding: 48px 24px 80px; }
.page-hero--compact { padding-bottom: 40px; }
.blog-post-meta { font-size: 14px; color: var(--c-slate); margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  .video-play-ring,
  .pulse-dot,
  .pulse-hotspot,
  .micro-shine::before { animation: none; }
  .stagger-children.in .sr { animation: none; }
}
