/* ============================================
   AVI DRONES — Custom styles
   ============================================ */

:root {
  --ink-base: #0A0E16;
  --ink-elevated: #11161F;
  --ink-deep: #06080D;
  --text-muted: #505050;
  --accent-orange: #C75300;
  --success: #4ADE80;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink-base);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   LIQUID GLASS — hlavní UI komponenta
   ============================================ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.liquid-glass-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   BLUR-FADE-UP — entry animace
   ============================================ */
@keyframes blurFadeUp {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.animate-blur-fade-up {
  animation: blurFadeUp 1s ease-out forwards;
  opacity: 0;
}

[data-reveal] {
  opacity: 0;
}

[data-reveal].revealed {
  animation: blurFadeUp 1s ease-out forwards;
}

/* ============================================
   HERO video + blur mask
   ============================================ */
.hero-blur-mask {
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%);
  mask-image: linear-gradient(to top, black 0%, transparent 45%);
}

#hero-video {
  transition: opacity 250ms ease-out;
}

/* ============================================
   DIFF SECTION — Reálný rozdíl (sekce 4.5)
   ============================================ */
.diff-section {
  background: linear-gradient(180deg, #06080D 0%, #0A0E16 50%, #06080D 100%);
  color: #fff;
}
.diff-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 25%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 25%, transparent 90%);
}
.diff-glow-bg {
  background:
    radial-gradient(ellipse 50% 60% at 15% 30%, rgba(199, 83, 0, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 70% at 85% 80%, rgba(74, 222, 128, 0.05), transparent 65%);
}
.diff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.diff-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(199, 83, 0, 0.7);
}

.diff-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: transform 400ms cubic-bezier(0.4,0,0.2,1), border-color 400ms ease-out, background 400ms ease-out;
}
@media (min-width: 768px) {
  .diff-card { padding: 32px 32px 28px; }
}
.diff-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(199,83,0,0.08), transparent 50%);
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}
.diff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.diff-card:hover::before { opacity: 1; }

.diff-card-header { margin-bottom: 22px; }
.diff-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 350ms ease-out, background 350ms ease-out, transform 350ms ease-out;
}
.diff-card-icon svg { width: 20px; height: 20px; }
.diff-card:hover .diff-card-icon {
  color: var(--accent-orange);
  background: rgba(199, 83, 0, 0.12);
  transform: scale(1.05);
}
.diff-card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 6px;
}
@media (min-width: 768px) { .diff-card-title { font-size: 22px; } }
.diff-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.diff-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.diff-col {
  position: relative;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .diff-col { padding: 20px 18px 16px; } }
.diff-col-old {
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.55);
}
.diff-col-new {
  background: linear-gradient(180deg, rgba(199,83,0,0.10), rgba(199,83,0,0.03));
  color: rgba(255, 255, 255, 0.92);
}
.diff-col-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0.5;
}
.diff-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.diff-col-old .diff-col-label { color: rgba(255, 255, 255, 0.4); }
.diff-col-new .diff-col-label { color: var(--accent-orange); }
.diff-col-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.diff-col-list li {
  font-size: 13px;
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.diff-col-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
}
.diff-col-old .diff-col-list li::before { background: rgba(255, 255, 255, 0.18); }
.diff-col-new .diff-col-list li::before { background: var(--accent-orange); box-shadow: 0 0 6px rgba(199, 83, 0, 0.5); }

.diff-col-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.diff-meta-value {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.diff-col-old .diff-meta-value { color: rgba(255, 255, 255, 0.55); }
.diff-col-new .diff-meta-value { color: #fff; }

.diff-card-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.diff-result-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(199, 83, 0, 0.16);
  border: 1px solid rgba(199, 83, 0, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.diff-result-bonus {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-left: 2px;
}

.diff-cta {
  margin-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (min-width: 768px) {
  .diff-cta { flex-direction: row; justify-content: center; gap: 22px; margin-top: 56px; }
}
.diff-cta-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}
.diff-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 250ms ease-out, transform 250ms ease-out;
}
.diff-cta-btn:hover { background: #e5e5e5; transform: translateY(-1px); }

@media (max-width: 480px) {
  .diff-card { padding: 22px 18px 20px; }
  .diff-col { padding: 14px 12px 12px; }
  .diff-card-title { font-size: 18px; }
}

/* ============================================
   BEFORE/AFTER SLIDER — Foto vs. termovize (sekce 4.6)
   ============================================ */
.ba-section {
  background: linear-gradient(180deg, #06080D 0%, #0A0E16 50%, #06080D 100%);
  color: #fff;
}
.ba-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 25%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 25%, transparent 90%);
}
.ba-glow-bg {
  background:
    radial-gradient(ellipse 55% 60% at 25% 30%, rgba(199, 83, 0, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 60% at 75% 80%, rgba(255, 200, 100, 0.04), transparent 60%);
}
.ba-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ba-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(199, 83, 0, 0.7);
}
.ba-headline-em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-orange);
}

/* Mode tabs */
.ba-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  margin-bottom: 24px;
}
.ba-tab {
  padding: 9px 18px;
  border-radius: 9999px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  font-family: inherit;
}
.ba-tab:hover { color: rgba(255, 255, 255, 0.95); }
.ba-tab.is-active {
  background: #fff;
  color: #0A0E16;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Stage */
.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0A0E16;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: none;
}
.ba-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(199, 83, 0, 0.5);
}
@media (max-width: 640px) {
  .ba-stage { aspect-ratio: 4 / 3; border-radius: 14px; }
}

.ba-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.ba-layer-before {
  /* Mode 1 (thermal) default - photo */
  background-image: url('assets/images/services/inspekce-strechy.jpg');
}
.ba-layer-after {
  background-image: url('assets/images/services/termovize.jpg');
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
  -webkit-clip-path: inset(0 0 0 var(--ba-pos, 50%));
}
/* Mode-specific overrides */
.ba-stage[data-mode="timelapse"] .ba-layer-before {
  background-image: url('assets/images/services/kubatury.jpg');
}
.ba-stage[data-mode="timelapse"] .ba-layer-after {
  background-image: url('assets/images/services/monitoring-stavby.jpg');
}

/* Handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 0;
  pointer-events: none;
  z-index: 3;
}
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 16px rgba(199, 83, 0, 0.6), 0 0 4px rgba(0,0,0,0.4);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 0 0 6px rgba(199, 83, 0, 0.18),
    0 12px 32px -4px rgba(0, 0, 0, 0.45);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.ba-handle-knob svg { width: 22px; height: 22px; }
.ba-stage:hover .ba-handle-knob,
.ba-stage:focus-visible .ba-handle-knob {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 8px rgba(199, 83, 0, 0.22),
    0 16px 40px -4px rgba(0, 0, 0, 0.5);
}
.ba-stage.is-dragging .ba-handle-knob {
  transform: translate(-50%, -50%) scale(0.96);
}

/* Tags */
.ba-tag {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 768px) {
  .ba-tag { top: 24px; padding: 7px 16px; font-size: 12px; }
}
.ba-tag-before {
  left: 18px;
  background: rgba(10, 14, 22, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ba-tag-after {
  right: 18px;
  background: var(--accent-orange);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px -2px rgba(199, 83, 0, 0.5);
}
@media (min-width: 768px) {
  .ba-tag-before { left: 24px; }
  .ba-tag-after { right: 24px; }
}

/* Hint text below */
.ba-hint {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}
.ba-hint svg {
  width: 14px;
  height: 14px;
  color: var(--accent-orange);
}

@media (prefers-reduced-motion: reduce) {
  .ba-handle-knob { transition: none; }
}

/* ============================================
   PROCESS SECTION — Od poptávky k reportu (sekce 6)
   ============================================ */
.process-section {
  background: #fafafa;
}
.process-grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 95%);
}
.process-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}
.process-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(199, 83, 0, 0.5);
}

.process-timeline {
  position: relative;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
}
@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Connecting line: base + animated progress fill */
.process-line-base,
.process-line-progress {
  position: absolute;
  pointer-events: none;
}
/* Mobile: vertical line on the left */
.process-line-base {
  top: 24px;
  bottom: 24px;
  left: 16px;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0 4px,
    transparent 4px 10px
  );
  z-index: 0;
}
.process-line-progress {
  top: 24px;
  left: 16px;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-orange), rgba(199, 83, 0, 0.4));
  box-shadow: 0 0 8px rgba(199, 83, 0, 0.5);
  transition: height 300ms ease-out;
  z-index: 1;
}
@media (min-width: 1024px) {
  /* Desktop: horizontal line at top of cards */
  .process-line-base {
    top: 32px;
    bottom: auto;
    left: 8.33%;
    right: 8.33%;
    width: auto;
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0 4px,
      transparent 4px 10px
    );
  }
  .process-line-progress {
    top: 32px;
    left: 8.33%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-orange), rgba(199, 83, 0, 0.4));
    transition: width 300ms ease-out;
  }
}

/* Drone marker that travels along the line */
.process-drone {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(199, 83, 0, 0.45));
  /* Mobile: vertical track */
  top: 0;
  left: 16px;
  transform: translate(-50%, 0);
  transition: top 300ms ease-out;
}
@media (min-width: 1024px) {
  .process-drone {
    top: 32px;
    left: 8.33%;
    transform: translate(0, -50%);
    transition: left 300ms ease-out;
  }
}
.process-drone svg { display: block; width: 100%; height: 100%; overflow: visible; }
.process-drone-arm   { stroke: #0A0E16; stroke-width: 6; stroke-linecap: round; }
.process-drone-motor { fill: #0A0E16; }
.process-drone-body  { fill: #fff; stroke: #0A0E16; stroke-width: 3; }
.process-drone-eye   { fill: var(--accent-orange); }
.process-drone-prop {
  fill: rgba(10, 14, 22, 0.35);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ctaDroneProp 0.18s linear infinite;
}
.process-drone-prop-2 { animation-delay: -0.04s; }
.process-drone-prop-3 { animation-delay: -0.08s; }
.process-drone-prop-4 { animation-delay: -0.12s; }

/* Step card */
.process-step {
  position: relative;
  padding-left: 48px;
  z-index: 2;
}
@media (min-width: 1024px) {
  .process-step {
    padding-left: 0;
    padding-top: 56px;
  }
}

/* Big background number */
.process-step-number {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
}
@media (min-width: 1024px) {
  .process-step-number {
    top: 56px;
    right: 16px;
    font-size: 80px;
  }
}
@media (min-width: 1280px) {
  .process-step-number { font-size: 100px; top: 48px; }
}

/* Dot on the line */
.process-step-dot {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid #0A0E16;
  transform: translateX(-50%);
  z-index: 3;
  transition: background 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
}
@media (min-width: 1024px) {
  .process-step-dot {
    top: 32px;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.process-step.is-active .process-step-dot {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 6px rgba(199, 83, 0, 0.18), 0 0 16px rgba(199, 83, 0, 0.4);
}

.process-step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 22px 20px;
  transition: transform 400ms cubic-bezier(0.4,0,0.2,1), border-color 400ms ease-out, box-shadow 400ms ease-out, background 400ms ease-out;
}
.process-step:hover .process-step-card {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}
.process-step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.process-step:hover .process-step-card::after { opacity: 1; }

.process-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.process-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.75);
  transition: color 300ms ease-out, background 300ms ease-out, transform 300ms ease-out;
}
.process-step-icon svg { width: 18px; height: 18px; }
.process-step:hover .process-step-icon {
  color: var(--accent-orange);
  background: rgba(199, 83, 0, 0.08);
  transform: scale(1.05);
}
.process-step-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
}

.process-step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0A0E16;
  margin-bottom: 6px;
}
.process-step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}
.process-step-detail {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .process-step-card { padding: 18px 18px 16px; }
  .process-step-number { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-drone, .process-drone-prop { animation: none !important; }
  .process-line-progress { transition: none; }
}

/* ============================================
   CTA BAND — video pozadí + overlay (sekce 12)
   ============================================ */
.cta-band {
  background: var(--ink-deep);
  isolation: isolate;
}
.cta-band-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease-out;
  pointer-events: none;
}
.cta-band-video[data-loaded="true"] {
  opacity: 0.9;
}
.cta-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0.4) 50%, rgba(6, 8, 13, 0.85) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6, 8, 13, 0.2), rgba(6, 8, 13, 0.55) 80%);
  pointer-events: none;
}
.cta-band-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
}
.cta-band-glow-orange {
  position: absolute;
  top: -25%;
  left: 15%;
  width: 480px;
  height: 480px;
  border-radius: 9999px;
  background: rgba(199, 83, 0, 0.35);
  filter: blur(120px);
}
.cta-band-glow-blue {
  position: absolute;
  bottom: -25%;
  right: 15%;
  width: 480px;
  height: 480px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.18);
  filter: blur(120px);
}
@media (prefers-reduced-motion: reduce) {
  .cta-band-video { display: none; }
}

/* CTA — Floating drone (decorative) */
.cta-drone {
  position: absolute;
  z-index: 5;
  width: 88px;
  height: 88px;
  top: 14%;
  right: 9%;
  transform-origin: center;
  pointer-events: none;
  animation: ctaDroneHover 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
  opacity: 0;
  animation-delay: 0.6s;
  animation-fill-mode: backwards;
}
.cta-drone {
  animation:
    ctaDroneAppear 1.6s ease-out 0.4s forwards,
    ctaDroneHover 6s ease-in-out 2s infinite;
}
@media (min-width: 768px) {
  .cta-drone {
    width: 110px;
    height: 110px;
    top: 18%;
    right: 11%;
  }
}
@media (min-width: 1280px) {
  .cta-drone {
    top: 22%;
    right: 14%;
  }
}
.cta-drone-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.cta-drone-arm {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.cta-drone-motor {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 0.6;
}
.cta-drone-body {
  fill: rgba(20, 20, 20, 0.9);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.2;
}
.cta-drone-eye {
  fill: var(--accent-orange);
  filter: drop-shadow(0 0 4px rgba(199, 83, 0, 0.8));
}
.cta-drone-prop {
  fill: rgba(255, 255, 255, 0.18);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ctaDroneProp 0.18s linear infinite;
}
.cta-drone-prop-2 { animation-delay: -0.04s; }
.cta-drone-prop-3 { animation-delay: -0.08s; }
.cta-drone-prop-4 { animation-delay: -0.12s; }

.cta-drone-shadow {
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 70%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(199, 83, 0, 0.5) 0%, rgba(199, 83, 0, 0.15) 40%, transparent 70%);
  filter: blur(6px);
  transform: translateX(-50%);
  animation: ctaDroneShadow 6s ease-in-out 2s infinite;
}

@keyframes ctaDroneAppear {
  0%   { opacity: 0; transform: translateY(40px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ctaDroneHover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
@keyframes ctaDroneShadow {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.5; transform: translateX(-50%) scale(0.7); }
}
@keyframes ctaDroneProp {
  to { transform: rotate(360deg); }
}
@media (max-width: 480px) {
  /* Příliš malý prostor — drone by zasahoval do textu */
  .cta-drone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-drone, .cta-drone-prop, .cta-drone-shadow { animation: none !important; }
  .cta-drone { opacity: 1; }
}

/* ============================================
   SCROLL TRACKER DRONE — vertikální indikátor
   ============================================ */
.scroll-tracker {
  position: fixed;
  right: 22px;
  top: 18%;
  bottom: 18%;
  width: 24px;
  z-index: 30;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 600ms ease-out;
}
@media (min-width: 1024px) {
  .scroll-tracker { display: block; }
}
.scroll-tracker.is-visible { opacity: 1; }

.scroll-tracker-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 12%,
    rgba(255, 255, 255, 0.18) 88%,
    transparent 100%);
}
.scroll-tracker-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  height: 0;
  background: linear-gradient(180deg, transparent 0%, var(--accent-orange) 60%, var(--accent-orange) 100%);
  box-shadow: 0 0 8px rgba(199, 83, 0, 0.6);
  transition: height 80ms linear;
}
.scroll-tracker-drone {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  will-change: transform;
}
.scroll-tracker-drone-inner {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(199, 83, 0, 0.5));
  animation: trackerDroneIdle 3s ease-in-out infinite;
}
.scroll-tracker-drone svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scroll-tracker-arm   { stroke: rgba(255, 255, 255, 0.9); stroke-width: 6; stroke-linecap: round; }
.scroll-tracker-motor { fill: rgba(255, 255, 255, 1); }
.scroll-tracker-body  { fill: #0A0E16; stroke: rgba(255, 255, 255, 0.6); stroke-width: 2; }
.scroll-tracker-eye   { fill: var(--accent-orange); }
.scroll-tracker-prop  {
  fill: rgba(255, 255, 255, 0.3);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ctaDroneProp 0.18s linear infinite;
}
.scroll-tracker-prop-2 { animation-delay: -0.04s; }
.scroll-tracker-prop-3 { animation-delay: -0.08s; }
.scroll-tracker-prop-4 { animation-delay: -0.12s; }

@keyframes trackerDroneIdle {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-tracker-drone-inner, .scroll-tracker-prop { animation: none !important; }
}

/* ============================================
   FAQ accordion
   ============================================ */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 200ms ease-out;
}

/* ============================================
   STATS — tabular numbers
   ============================================ */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   TRUST BAR — compliance & oprávnění (sekce 2)
   ============================================ */
.trust-bar-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.trust-status-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.trust-status-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #10B981;
  opacity: 0.6;
  animation: trustPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.trust-status-dot-core {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
@keyframes trustPing {
  0%   { transform: scale(1);   opacity: 0.6; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.trust-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: 0.01em;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .trust-pill { font-size: 13px; padding: 9px 16px; }
}
.trust-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(199, 83, 0, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}
.trust-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 700ms ease-out;
  pointer-events: none;
}
.trust-pill:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.trust-pill:hover::before { opacity: 1; }
.trust-pill:hover::after { left: 100%; }
.trust-pill:hover .trust-pill-icon {
  color: var(--accent-orange);
  transform: scale(1.1) rotate(-5deg);
}
.trust-pill-icon {
  width: 14px;
  height: 14px;
  color: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: color 250ms ease-out, transform 250ms ease-out;
}

/* Caption row — text se mění podle hover/focus pillu (JS), žádné překryvy */
.trust-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 22px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.005em;
}
@media (min-width: 1024px) {
  .trust-caption {
    justify-content: flex-end;
    text-align: right;
  }
}
.trust-caption-arrow {
  width: 14px;
  height: 14px;
  color: var(--accent-orange);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.trust-caption-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.trust-caption.is-active .trust-caption-arrow,
.trust-caption.is-active .trust-caption-text {
  opacity: 1;
  transform: translate(0, 0);
}
@media (max-width: 1023px) {
  .trust-caption.is-active .trust-caption-arrow {
    transform: translateX(0);
  }
}

/* ============================================
   STATS STRIP — co kupujete (sekce 3)
   ============================================ */
.stats-strip {
  background: linear-gradient(180deg, #06080D 0%, #0A0E16 50%, #06080D 100%);
}
.stats-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 90%);
}
.stats-glow-bg {
  background:
    radial-gradient(ellipse 60% 50% at 30% 100%, rgba(199, 83, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 0%, rgba(74, 222, 128, 0.04), transparent 60%);
}

.stats-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  transition: background 400ms ease-out;
}
.stats-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.stats-card-inner {
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  .stats-card-inner { padding: 36px 32px; }
}
.stats-card:hover .stats-card-inner {
  transform: translateY(-2px);
}

.stats-card-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
  transition: color 400ms ease-out, transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stats-card:hover .stats-card-icon {
  color: var(--accent-orange);
  transform: scale(1.08);
}

.stats-card-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #fff;
}
.stats-card-prefix {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0;
}
.stats-card-number {
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
  .stats-card-number { font-size: 56px; }
}
.stats-card-unit {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .stats-card-unit { font-size: 20px; }
}

/* Glow line under number — animates in after counter completes */
.stats-card-glow {
  position: relative;
  width: 32px;
  height: 1px;
  margin-top: 14px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent-orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1), width 400ms ease-out;
}
.stats-card.counter-done .stats-card-glow {
  transform: scaleX(1);
}
.stats-card-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(199, 83, 0, 0.6), transparent);
  filter: blur(4px);
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.stats-card.counter-done .stats-card-glow::after {
  opacity: 1;
}
.stats-card:hover .stats-card-glow {
  width: 64px;
}

.stats-card-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .stats-card-label { font-size: 13px; }
}
.stats-card-desc {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 400ms ease-out, opacity 400ms ease-out, margin-top 400ms ease-out;
}
@media (min-width: 768px) {
  .stats-card:hover .stats-card-desc {
    max-height: 60px;
    opacity: 1;
    margin-top: 6px;
  }
}
@media (max-width: 767px) {
  .stats-card-desc {
    max-height: 60px;
    opacity: 1;
    font-size: 11px;
  }
}

/* ============================================
   FORM
   ============================================ */
.form-input {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(199, 83, 0, 0.15);
}

/* ============================================
   MOBILE menu transitions
   ============================================ */
.mobile-menu {
  transition: transform 400ms ease-out, opacity 400ms ease-out;
}
.mobile-menu.closed {
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   PROCESS line connector
   ============================================ */
.process-line {
  position: relative;
}
@media (min-width: 768px) {
  .process-line::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    z-index: 0;
  }
  .process-line:last-child::after {
    display: none;
  }
}

/* ============================================
   NAVBAR scroll state
   ============================================ */
nav.scrolled {
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   PRINT (basic)
   ============================================ */
@media print {
  video, .liquid-glass::before { display: none; }
}
