/* ============================================
   PERFIQ — Performance Marketing Agency
   Design System & Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #070B14;
  --bg-secondary: #0D1220;
  --bg-card: #111827;
  --bg-card-hover: #162035;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 212, 255, 0.3);

  --accent-cyan: #00D4FF;
  --accent-cyan-dim: rgba(0, 212, 255, 0.12);
  --accent-orange: #FF6B35;
  --accent-orange-dim: rgba(255, 107, 53, 0.12);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.15);
  --shadow-glow-orange: 0 0 40px rgba(255, 107, 53, 0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Globální mřížka přes celou stránku ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 var(--grid-offset, 0);
  /* "Portály": mřížka prosvítá silněji na několika místech, jinde téměř mizí */
  mask-image:
    radial-gradient(ellipse 60% 45% at 15% 20%, black 0%,           transparent 70%),
    radial-gradient(ellipse 45% 35% at 82% 48%, rgba(0,0,0,.85) 0%, transparent 65%),
    radial-gradient(ellipse 38% 28% at 55% 88%, rgba(0,0,0,.7)  0%, transparent 60%),
    radial-gradient(ellipse 30% 22% at 30% 65%, rgba(0,0,0,.5)  0%, transparent 55%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0,0,0,.12) 0%, transparent 100%);
  mask-composite: add;
  -webkit-mask-image:
    radial-gradient(ellipse 60% 45% at 15% 20%, black 0%,           transparent 70%),
    radial-gradient(ellipse 45% 35% at 82% 48%, rgba(0,0,0,.85) 0%, transparent 65%),
    radial-gradient(ellipse 38% 28% at 55% 88%, rgba(0,0,0,.7)  0%, transparent 60%),
    radial-gradient(ellipse 30% 22% at 30% 65%, rgba(0,0,0,.5)  0%, transparent 55%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0,0,0,.12) 0%, transparent 100%);
  -webkit-mask-composite: source-over;
  animation: grid-breathe 9s ease-in-out infinite alternate;
}

@keyframes grid-breathe {
  from { opacity: 0.55; }
  to   { opacity: 1.0;  }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0099BB 100%);
  color: #070B14;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #20DDFF 0%, var(--accent-cyan) 100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  border-radius: 0;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #E55528 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.45);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}

.nav-logo .logo-text { color: #ffffff; }
.nav-logo .logo-iq { color: #ffffff; }
.nav-logo .logo-dot { color: var(--accent-cyan); text-shadow: 0 0 16px rgba(0, 212, 255, 0.55); font-size: 28px; font-weight: 800; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:not(.nav-cta):hover { color: var(--text-primary); }

.nav-cta {
  padding: 10px 22px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan) !important;
  border-radius: 0;
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-cyan) !important;
  color: #070B14 !important;
  border-color: var(--accent-cyan) !important;
}

.nav-close-item { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: opacity var(--transition);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 120px 24px 0;
  overflow: hidden;
}

.hero-platforms {
  width: 100vw;
  margin-left: -24px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: auto auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 80px;
  row-gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-desc .platforms {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dashboard Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  grid-row: 1 / 3;
  align-self: center;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Slidy — fixed-height wrap, všechny absolutní */
.dash-slides-wrap {
  position: relative;
  min-height: 220px;
}
.dash-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.dash-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Indikátorové tečky */
.dash-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,212,255,0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.dash-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.3);
}

/* neutral change badge */
.metric-change.neutral {
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-value {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.accent-cyan { color: var(--accent-cyan); }
.accent-orange { color: var(--accent-orange); }

.metric-change {
  font-size: 11px;
  font-weight: 600;
}

.metric-change.positive { color: #22C55E; }
.metric-change.negative { color: #EF4444; }

.dash-chart {
  margin-top: 4px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.4) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: 0;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-bottom: none;
  transition: var(--transition);
}

.bar.active {
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(0, 212, 255, 0.3) 100%);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}

.badge-1 {
  top: -16px;
  right: -20px;
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.2);
  animation-delay: 1s;
}

.badge-2 {
  bottom: 20px;
  left: -24px;
  color: var(--accent-orange);
  border-color: rgba(255, 107, 53, 0.2);
  animation-delay: 2.5s;
}

.fb-icon { font-size: 14px; }

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Ambient data keywords */
.data-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.data-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  opacity: 0.07;
  white-space: nowrap;
  animation: data-float 8s ease-in-out infinite;
  animation-delay: var(--d);
  animation-direction: calc(var(--s) * 1);
  transform-origin: center;
  border: 1px solid rgba(0, 212, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.03);
  transition: opacity 0.4s;
}

.data-tag:nth-child(odd) {
  animation-direction: normal;
}
.data-tag:nth-child(even) {
  animation-direction: reverse;
}

@keyframes data-float {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.07; }
  50%       { transform: translateY(-10px) scale(1.02); opacity: 0.13; }
}

/* Radial glow */
#hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 60%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   PLATFORMS
   ============================================ */
#platforms {
  /* platforms je nyní součástí hero sekce */
}

.platforms-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Platform ticker — 3 slots, grid dissolve */
.platforms-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.platform-tick-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 80px;
  overflow: hidden;
}

/* Subtle separator between slots */
.platform-tick-slot + .platform-tick-slot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

/* Scanner line */
.scanner-line {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -4px;
  width: 0.5px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 212, 255, 0.4) 15%,
    rgba(0, 212, 255, 1) 38%,
    #ffffff 50%,
    rgba(0, 212, 255, 1) 62%,
    rgba(0, 212, 255, 0.4) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 2px 1px rgba(0, 212, 255, 0.9),
    0 0 8px 2px rgba(0, 212, 255, 0.35);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  will-change: left;
}

/* Soft halo vlevo od čáry */
.scanner-line::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -10px;
  width: 22px;
  background: linear-gradient(to right,
    transparent,
    rgba(0, 212, 255, 0.06) 40%,
    rgba(0, 212, 255, 0.12) 60%,
    transparent
  );
}

/* Jiskra — svítící tečka cestující po čáře */
.scanner-line::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px 3px rgba(0, 212, 255, 1),
    0 0 14px 5px rgba(0, 212, 255, 0.6);
  animation: spark-travel 0.35s ease-in-out infinite alternate;
}

@keyframes spark-travel {
  from { top: 18%; }
  to   { top: 72%; }
}

.platform-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.78);
  transition: filter 0.3s;
  position: relative;
  z-index: 1;
}

.platform-logo--wide {
  max-width: 220px;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-head);
  flex-shrink: 0;
}

.pi-google { background: #fff; color: #4285F4; }
.pi-sklik { background: #CC0000; color: #fff; }
.pi-meta { background: #0866FF; color: #fff; }
.pi-bing { background: #008272; color: #fff; }
.pi-ga4 { background: #E37400; color: #fff; }
.pi-looker { background: #4285F4; color: #fff; }

.pi-img {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 4px;
}

.pi-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: 100px 0;
}

.services-header {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(17, 24, 39, 0.48);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(22, 32, 53, 0.60);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 212, 255, 0.06);
}

.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.09) 0%, rgba(17, 24, 39, 0.48) 100%);
}

.service-card.featured::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-head);
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.si-cyan { background: transparent; color: var(--accent-cyan); border: none; }
.si-orange { background: transparent; color: var(--accent-orange); border: none; }
.si-blue { background: transparent; color: #60A5FA; border: none; }
.si-green { background: transparent; color: #22C55E; border: none; }
.si-purple { background: transparent; color: #A78BFA; border: none; }
.si-red { background: transparent; color: #F87171; border: none; }

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-head);
}

/* ============================================
   REFERENCES
   ============================================ */
#references {
  padding: 100px 0;
  position: relative;
}

#references::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.references-header {
  margin-bottom: 30px;
}
.references-header .section-title {
  margin-top: 12px;
  font-size: clamp(15px, 4vw, 48px);
  white-space: nowrap;
}

.references-sub-line {
  display: block;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  margin-top: 6px;
}

/* --- Loga klientů grid --- */
.clients-section {
  margin-bottom: 140px;
}

#clients-sub-word {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--accent-orange);
  font-family: 'Space Grotesk', monospace;
}

.clients-grid-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 2cm;
}

.clients-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2cm 48px;
  align-items: center;
  justify-items: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.clients-group--active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Horizontální scanner čára — pohybuje se shora dolů */
.clients-scanner {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 212, 255, 0.4) 10%,
    rgba(0, 212, 255, 1) 38%,
    #ffffff 50%,
    rgba(0, 212, 255, 1) 62%,
    rgba(0, 212, 255, 0.4) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 3px 1px rgba(0, 212, 255, 0.9),
    0 0 10px 3px rgba(0, 212, 255, 0.35);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: none;
}

.clients-scanner::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -14px;
  height: 30px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0, 212, 255, 0.06) 40%,
    rgba(0, 212, 255, 0.12) 60%,
    transparent
  );
}

/* Spark kulička jedoucí zleva doprava po čáře */
.clients-scanner::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px 3px rgba(0, 212, 255, 1),
    0 0 14px 5px rgba(0, 212, 255, 0.6);
  animation: spark-travel-h 0.45s ease-in-out infinite alternate;
}

@keyframes spark-travel-h {
  from { left: 15%; }
  to   { left: 82%; }
}

.client-logo {
  height: 35px;
  width: auto;
  max-width: 144px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.3s ease;
  display: block;
}

.client-logo:hover {
  opacity: 1;
}


/* --- Testimonials carousel --- */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 0 24px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.testimonials-carousel.tc-dragging {
  cursor: grabbing;
}

/* Pulzující pravá karta v pozadí — hint pro swipe */
@keyframes tc-right-pulse {
  0%, 100% { opacity: 0.46; }
  50%       { opacity: 0.75; }
}
.tc-pulse-hint {
  animation: tc-right-pulse 2.4s ease-in-out infinite;
}

/* Dot pagination */
.tc-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
}
.tc-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: rgba(0,212,255,0.18);
  border: 1px solid rgba(0,212,255,0.12);
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}
.tc-dot:hover {
  background: rgba(0,212,255,0.35);
}
.tc-dot.tc-dot--active {
  width: 22px;
  background: rgba(0,212,255,0.82);
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 8px rgba(0,212,255,0.55), 0 0 18px rgba(0,212,255,0.2);
}

.testimonials-track {
  position: relative;
  min-height: 580px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  min-height: 480px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(0,212,255,0.35);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.45s ease,
              filter 0.45s ease;
}

/* Střední — aktivní karta */
.testimonial-card.tc-active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/* Boční karty — vesmírná mlha */
.testimonial-card.tc-side {
  filter: blur(1.5px) brightness(0.65);
  pointer-events: none;
}

/* Levá karta — mlha mizí zleva doprava */
.testimonial-card.tc-left {
  mask-image: linear-gradient(to left, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 75%);
}

/* Pravá karta — mlha mizí zprava doleva */
.testimonial-card.tc-right {
  mask-image: linear-gradient(to right, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 75%);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent);
}

.testimonial-card.tc-active:hover {
  border-color: rgba(0,212,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* Metriky nahoře */
.tc-metrics {
  display: flex;
  gap: 20px;
}

.tc-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-mlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Space Grotesk', monospace;
}

.tc-mval {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tc-logo {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tc-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

/* VOATT logo má vizuálně těžší písmo — opticky vyváženo */
.testimonial-card:nth-child(3) .tc-logo-img {
  height: 40px;
}

/* LicencePro má více whitespace v canvasu — zvětšeno */
.testimonial-card:nth-child(2) .tc-logo-img {
  height: 68px;
}

.tc-verified {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Space Grotesk', monospace;
  white-space: nowrap;
}

.tc-verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.tc-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0,212,255,0.2), transparent);
}

/* Citát */
.tc-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
  position: relative;
}

.tc-prompt {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-right: 6px;
  font-size: 16px;
  opacity: 0.7;
}

/* Autor */
.tc-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.tc-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.tc-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tc-author-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}


@media (max-width: 900px) {
  .testimonial-card { width: 80%; }
  .client-tick-slot { width: 120px; }
}

/* ============================================
   PROCESS
   ============================================ */
#process {
  padding: 100px 0;
  background: rgba(13, 18, 32, 0.35);
}

.process-header {
  margin-bottom: 70px;
}

.process-header .section-sub {
  margin: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(10% + 32px);
  right: calc(10% + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), rgba(0, 212, 255, 0.2), var(--accent-cyan));
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.process-step.active {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.process-step:hover .step-num,
.process-step.active .step-num {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
  background: var(--accent-cyan-dim);
}

.step-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
#stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 40px 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   WHY US
   ============================================ */
#whyus {
  padding: 100px 0;
}

.whyus-content {
  max-width: 680px;
  margin-bottom: 48px;
}

.whyus-content .section-title { margin-bottom: 24px; }
.whyus-content .section-sub { margin-bottom: 0; }

.whyus-points {
  position: relative;
  min-height: 660px;
  margin-top: 100px;
  margin-bottom: 48px;
}

.whyus-point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: absolute;
  max-width: 300px;
  transition: var(--transition);
}

.whyus-point:nth-child(1) { left: 0;    top: 0px;   }
.whyus-point:nth-child(2) { right: 0;   top: 50px;  }
.whyus-point:nth-child(3) { left: 18%;  top: 250px; }
.whyus-point:nth-child(4) { right: 4%;  top: 270px; }
.whyus-point:nth-child(5) { left: 36%;  top: 480px; }

.point-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.point-icon--letter {
  background: none;
  border: none;
  width: 100%;
  min-width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.whyus-point--compare {
  padding: 0;
  overflow: hidden;
}

.ct-inline {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ct-inline .ct-header {
  font-size: 10px;
  padding: 12px 16px;
  letter-spacing: 0.06em;
}

.ct-inline .ct-row {
  padding: 9px 16px;
  font-size: 11px;
  flex: 1;
}

.ct-inline .ct-row .criteria {
  font-size: 11px;
}

.ct-inline .ct-check { font-size: 13px; }
.ct-inline .ct-cross { font-size: 14px; }
.ct-inline .ct-partial { font-size: 11px; }

.wi-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.wi-letter {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.wi-suffix {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.wi-letter--iq {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.55);
  font-size: 30px;
}

.point-text h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.point-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.whyus-visual {
  position: relative;
}

.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ct-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
  transition: var(--transition);
}

.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--bg-card-hover); }

.ct-row .criteria { color: var(--text-secondary); font-weight: 500; }

.ct-check { color: #22C55E; font-size: 16px; font-weight: 700; }
.ct-cross { color: #EF4444; font-size: 18px; font-weight: 300; }
.ct-partial { color: #FBBF24; font-size: 14px; }

.col-us {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 100px 0;
  background: rgba(13, 18, 32, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-content .section-title { margin-bottom: 20px; }

.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-certs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 80px;
  align-items: center;
  position: relative;
}

/* Mřížka přes loga — vizuálně je posouvá do pozadí */
.about-certs::after {
  content: '';
  position: absolute;
  inset: -60px -80px;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 75%);
}

.cert-logo {
  height: calc(40px + 0.5cm);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.38;
  transition: opacity 0.25s ease;
  position: relative;
  z-index: 0;
}

.cert-logo:hover {
  opacity: 1;
}

.about-certs .cert-logo:first-child {
  transform: scale(1.35);
}

.about-stats-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-40px);
}

/* Vesmírná záře za postavou */
.about-visual::before {
  content: '';
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(0, 212, 255, 0.03) 50%,
    transparent 75%);
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.about-photo {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  mask-image: radial-gradient(ellipse 72% 78% at 50% 32%,
    black 28%,
    rgba(0,0,0,0.85) 45%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.15) 72%,
    transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 32%,
    black 28%,
    rgba(0,0,0,0.85) 45%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.15) 72%,
    transparent 82%);
}

.about-highlight {
  padding: 6px 0 3px 0;
}

.about-highlight:hover {}

.about-highlight h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-highlight p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.highlight-number {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

/* ============================================
   CONTACT
   ============================================ */

.section-divider-spark {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.05) 10%,
    rgba(0, 212, 255, 0.35) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(0, 212, 255, 0.35) 70%,
    rgba(0, 212, 255, 0.05) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 4px 1px rgba(0, 212, 255, 0.2),
    0 0 12px 2px rgba(0, 212, 255, 0.1);
}

.section-divider-spark::before,
.section-divider-spark::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.section-divider-spark::before,
.section-divider-spark::after { display: none; }

@keyframes spark-ltr {
  0%   { left: 2%; }
  100% { left: 98%; }
}

@keyframes spark-sparkle {
  0%   { box-shadow: 0 0 3px 2px #fff,  3px -6px 0 0 rgba(0,212,255,0.9), -5px 2px 0 0 rgba(0,212,255,0.7),  6px 4px 0 0 rgba(255,255,255,0.6), -3px -7px 0 0 rgba(0,212,255,0.5),  8px -2px 0 0 rgba(0,212,255,0.4); }
  16%  { box-shadow: 0 0 3px 2px #fff, -5px -4px 0 0 rgba(0,212,255,0.9),  7px 1px 0 0 rgba(0,212,255,0.7), -2px  7px 0 0 rgba(255,255,255,0.6),  4px -6px 0 0 rgba(0,212,255,0.5), -8px 3px 0 0 rgba(0,212,255,0.4); }
  33%  { box-shadow: 0 0 3px 2px #fff,  6px  4px 0 0 rgba(0,212,255,0.9), -4px -7px 0 0 rgba(0,212,255,0.7),  2px  8px 0 0 rgba(255,255,255,0.6), -7px  2px 0 0 rgba(0,212,255,0.5),  3px -8px 0 0 rgba(0,212,255,0.4); }
  50%  { box-shadow: 0 0 3px 2px #fff, -7px  2px 0 0 rgba(0,212,255,0.9),  2px -8px 0 0 rgba(0,212,255,0.7), -4px  6px 0 0 rgba(255,255,255,0.6),  8px  1px 0 0 rgba(0,212,255,0.5), -2px -6px 0 0 rgba(0,212,255,0.4); }
  66%  { box-shadow: 0 0 3px 2px #fff,  5px  7px 0 0 rgba(0,212,255,0.9), -8px -1px 0 0 rgba(0,212,255,0.7),  7px -5px 0 0 rgba(255,255,255,0.6), -3px  8px 0 0 rgba(0,212,255,0.5),  1px -7px 0 0 rgba(0,212,255,0.4); }
  83%  { box-shadow: 0 0 3px 2px #fff, -6px  6px 0 0 rgba(0,212,255,0.9),  8px -3px 0 0 rgba(0,212,255,0.7), -1px  8px 0 0 rgba(255,255,255,0.6),  6px  5px 0 0 rgba(0,212,255,0.5), -7px -5px 0 0 rgba(0,212,255,0.4); }
  100% { box-shadow: 0 0 3px 2px #fff,  3px -6px 0 0 rgba(0,212,255,0.9), -5px 2px 0 0 rgba(0,212,255,0.7),  6px 4px 0 0 rgba(255,255,255,0.6), -3px -7px 0 0 rgba(0,212,255,0.5),  8px -2px 0 0 rgba(0,212,255,0.4); }
}

#contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }
.contact-info .section-sub { margin-bottom: calc(40px + 2cm); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.cd-letter {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.cd-word {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.cd-word--link {
  text-decoration: none;
  transition: var(--transition);
}
.cd-word--link:hover .cd-letter,
.cd-word--link:hover .cd-suffix {
  color: var(--accent-cyan);
}

.cd-suffix {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cd-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  padding-left: 2cm;
}

.cd-value:hover { color: var(--accent-cyan); }

.cd-value--orange {
  color: var(--accent-orange);
  font-weight: 600;
}
.cd-value--orange:hover { color: var(--accent-cyan); }

/* IQ — čistý text bez rámečku, jako v logu */
.cd-letter--iq {
  width: auto;
  height: auto;
  font-size: 54px;
  font-weight: 300;
  border: none;
  background: none;
  color: var(--accent-cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
  padding: 0;
}

.contact-detail-iq {
  display: flex;
  align-items: center;
}

.iq-spinner {
  display: inline-flex;
  align-items: baseline;
  animation: iq-float 48s linear infinite;
  transform-origin: center center;
  transform-style: preserve-3d;
  perspective: 600px;
  position: relative;
}

.iq-face {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  position: absolute;
  top: 0;
  left: 0;
}

.iq-face:first-child {
  position: relative;
}

.iq-face:not(:first-child) {
  opacity: 0.15;
}

.cd-iq-dot {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
}

/* Přebití tučnosti zděděné z .cd-letter */
.contact-detail-iq .cd-letter {
  font-weight: 300 !important;
}

@keyframes iq-float {
  0%   { transform: rotateZ(0deg)   rotateX(0deg)    rotateY(0deg); }
  25%  { transform: rotateZ(90deg)  rotateX(270deg)  rotateY(180deg); }
  50%  { transform: rotateZ(180deg) rotateX(540deg)  rotateY(360deg); }
  75%  { transform: rotateZ(270deg) rotateX(810deg)  rotateY(540deg); }
  100% { transform: rotateZ(360deg) rotateX(1080deg) rotateY(720deg); }
}

.cd-text a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.cd-text a:hover { color: var(--accent-cyan); }
.cd-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-desc { margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
  .hero-visual { justify-content: center; grid-row: auto; }
  .floating-badge.badge-1 { right: 0; }
  .floating-badge.badge-2 { left: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .process-steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-certs {
    flex-wrap: wrap;
    gap: 48px 0;
    justify-content: space-around;
  }
  .cert-logo {
    height: calc(40px + 0.5cm);
    width: 40%;
    max-width: 180px;
  }
  .whyus-points { min-height: 820px; }
  .whyus-point  { max-width: 260px; }
  .whyus-point:nth-child(1) { left: 0;    top: 0;    }
  .whyus-point:nth-child(2) { right: 0;   top: 50px; }
  .whyus-point:nth-child(3) { left: 10%;  top: 260px;}
  .whyus-point:nth-child(4) { right: 2%;  top: 280px;}
  .whyus-point:nth-child(5) { left: 28%;  top: 530px;}
  .wi-letter { font-size: 20px; }
  .wi-suffix { font-size: 12px; }
  .point-text h4 { font-size: 13px; }
  .point-text p { font-size: 12px; }
}

@media (max-width: 768px) {
  /* whyus: revert to single-column flow on mobile */
  .whyus-points {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .whyus-point,
  .whyus-point:nth-child(1),
  .whyus-point:nth-child(2),
  .whyus-point:nth-child(3),
  .whyus-point:nth-child(4),
  .whyus-point:nth-child(5) {
    position: static;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 40px;
    gap: 0;
    transition: var(--transition-slow);
    z-index: 102;
    backdrop-filter: blur(20px);
    overflow-y: auto;
  }

  .nav-links.open { right: 0; }

  .nav-close-item {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 4px 0 20px;
    border-bottom: none !important;
  }

  .nav-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
  }

  .nav-close-btn:hover { color: var(--text-primary); }

  .nav-links li {
    width: 100%;
    max-width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:has(.nav-cta) {
    margin-top: 24px;
  }

  .nav-links .nav-cta {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    padding: 14px 0;
  }

  .nav-toggle { display: flex; z-index: 103; }
  .nav-toggle.open { opacity: 0; pointer-events: none; }

  .clients-group { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .client-logo { height: 28px; max-width: 120px; }

  .platforms-ticker { width: 100%; }
  .platform-tick-slot { width: 50%; height: 70px; }
  .platform-logo { height: 32px; max-width: 150px; }
  .platform-logo--wide { max-width: 170px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  #hero { padding: 100px 24px 60px; }

  .section-title { font-size: 28px; }
  .hero-title { font-size: 36px; }

  .stat-value { font-size: 36px; }
  .stat-item { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .platforms-grid { gap: 8px; }
  .platform-item { padding: 10px 14px; font-size: 13px; }
}

/* ============================================
   AI TOOLS SECTION
   ============================================ */
#ai-tools {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#ai-tools::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 55% 50% at 75% 50%, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.gradient-text-ai {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 16px;
}

.ai-section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #A78BFA;
  border-radius: 2px;
}

/* ── Star orb (živá hvězda) ──────────────────────────── */
.star-orb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(200, 185, 255, 0.55);
  box-shadow:
    0 0 4px 2px rgba(167, 139, 250, 0.28),
    0 0 12px 5px rgba(167, 139, 250, 0.12),
    0 0 24px 8px rgba(167, 139, 250, 0.05);
  animation: star-orb-breathe 3.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes star-orb-breathe {
  0%, 100% {
    transform: scale(0.78);
    opacity: 0.4;
    box-shadow:
      0 0 3px 1px rgba(167, 139, 250, 0.18),
      0 0 8px 3px rgba(167, 139, 250, 0.08);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow:
      0 0 7px 4px rgba(167, 139, 250, 0.55),
      0 0 18px 7px rgba(167, 139, 250, 0.28),
      0 0 35px 12px rgba(167, 139, 250, 0.1);
  }
}

@keyframes star-orb-flare {
  0%, 100% {
    transform: scale(1.05);
    background: rgba(240, 235, 255, 0.95);
    box-shadow:
      0 0 8px 4px rgba(210, 195, 255, 1),
      0 0 22px 9px rgba(167, 139, 250, 0.7),
      0 0 44px 16px rgba(167, 139, 250, 0.35),
      0 0 80px 24px rgba(167, 139, 250, 0.15);
  }
  50% {
    transform: scale(1.3);
    background: #ffffff;
    box-shadow:
      0 0 12px 6px rgba(230, 220, 255, 1),
      0 0 32px 13px rgba(167, 139, 250, 0.8),
      0 0 64px 22px rgba(167, 139, 250, 0.4),
      0 0 110px 34px rgba(167, 139, 250, 0.18);
  }
}

/* ── AI Stream layout ─────────────────────────────────── */
.ai-stream {
  position: relative;
  margin-top: 64px;
  padding-left: 28px;
  max-width: 780px;
  /* Přepsat výchozí reveal – kontejner se nezobrazuje sám, animují se děti */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Vertikální datová linka vlevo — začíná scaleY(0), kreslí se při reveal */
.ai-stream::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(167, 139, 250, 0.22) 6%,
    rgba(167, 139, 250, 0.12) 94%,
    transparent
  );
  transform: scaleY(0);
  transform-origin: top center;
}

.ai-stream.visible::before {
  animation: line-draw 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes line-draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Pulzující částice — spustí se až po dokončení line-draw */
.ai-stream::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 0;
  width: 5px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(167, 139, 250, 0.7), transparent);
  border-radius: 3px;
  animation: data-flow 6s ease-in-out infinite;
  animation-play-state: paused;
}

.ai-stream.visible::after {
  animation-play-state: running;
  animation-delay: 5s;
}

@keyframes data-flow {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Položky a tagy začínají neviditelně */
.ai-stream-item,
.ai-tech-tags {
  opacity: 0;
}

/* Scramble znaky — cyan tech barva dokud nejsou opraveny */
.scramble-char {
  color: rgba(0, 212, 255, 0.62);
  font-weight: 400;
  animation: char-flicker 0.11s steps(1) infinite;
}

@keyframes char-flicker {
  0%   { opacity: 1;    color: rgba(0, 212, 255, 0.62); }
  35%  { opacity: 0.35; color: rgba(167, 139, 250, 0.8); }
  60%  { opacity: 1;    color: rgba(0, 212, 255, 0.55); }
  85%  { opacity: 0.6;  color: rgba(100, 220, 255, 0.9); }
  100% { opacity: 1;    color: rgba(0, 212, 255, 0.62); }
}

/* Problikávání celé položky při scramblování */
.ai-stream-item.scrambling {
  animation: ai-item-flicker 0.32s steps(1) infinite;
}

@keyframes ai-item-flicker {
  0%   { opacity: 1;    }
  10%  { opacity: 0.65; }
  22%  { opacity: 1;    }
  48%  { opacity: 0.82; }
  63%  { opacity: 0.5;  }
  78%  { opacity: 1;    }
  91%  { opacity: 0.75; }
  100% { opacity: 1;    }
}

/* Mřížka lokálně kolem scramblujícího textu — do ztracena */
.ai-stream-item.scrambling::after {
  content: '';
  position: absolute;
  inset: -70px -200px -70px -44px;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 72% 68% at 36% 50%,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.65) 28%,
    rgba(0,0,0,0.2) 52%,
    transparent 68%
  );
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 36% 50%,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.65) 28%,
    rgba(0,0,0,0.2) 52%,
    transparent 68%
  );
  animation: item-grid-flicker 0.52s steps(1) infinite;
}

@keyframes item-grid-flicker {
  0%   { opacity: 1;    }
  18%  { opacity: 0.3;  }
  40%  { opacity: 0.85; }
  62%  { opacity: 0.15; }
  80%  { opacity: 1;    }
  93%  { opacity: 0.5;  }
  100% { opacity: 1;    }
}

.ai-stream-item {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.07);
  cursor: default;
  transition: border-color 0.35s ease;
}

.ai-stream-item:last-child {
  border-bottom: none;
}

.ai-stream-item::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -28px;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(167, 139, 250, 0.045) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ai-stream-item:hover::before { opacity: 1; }
.ai-stream-item:hover { border-bottom-color: rgba(167, 139, 250, 0.22); }

.ai-stream-node {
  flex-shrink: 0;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

/* Nezávislé animační rytmy hvězd */
.ai-stream-item:nth-child(2) .star-orb { animation-duration: 5.1s; animation-delay: -2.0s; }
.ai-stream-item:nth-child(4) .star-orb { animation-duration: 4.3s; animation-delay: -3.7s; }
.ai-stream-item:nth-child(5) .star-orb { animation-duration: 4.7s; animation-delay: -1.5s; }

.ai-stream-item:hover .star-orb {
  animation: star-orb-flare 1s ease-in-out infinite;
}

.ai-stream-content { flex: 1; }

.ai-stream-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ai-stream-item:hover .ai-stream-content h3 {
  color: #C4B5FD;
}

.ai-stream-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 640px;
}

/* Plovoucí tech-tagy */
.ai-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 20px 40px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.07);
}

.ai-tech-tags span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.48);
  padding: 4px 12px;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 100px;
  font-family: var(--font-head);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.ai-tech-tags span:hover {
  color: rgba(196, 181, 253, 0.85);
  border-color: rgba(167, 139, 250, 0.35);
}

/* AI tag in service cards */
.tag-ai {
  padding: 4px 10px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #A78BFA;
  font-family: var(--font-head);
}

/* Platform icons for AI */
.pi-ai {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* Nav AI link */
.nav-ai { color: #A78BFA !important; }
.nav-ai:hover { color: #C4B5FD !important; }

@media (max-width: 1024px) {
  .ai-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ai-tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   WHYUS — PERFIQ BURST ANIMATION
   ============================================ */
.perfiq-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-size: clamp(38px, 5.5vw, 74px);
  font-weight: 800;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  user-select: none;
  white-space: nowrap;
}

.pb-letter {
  display: inline-block;
  color: #fff;
}

.pb-iq { color: var(--accent-cyan); }

.pb-dot {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 1.35em;
  line-height: 0.85;
  margin-left: 1px;
}

@keyframes pb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    filter: brightness(1)   drop-shadow(0 0 6px rgba(0,212,255,0.3)); }
  50%       { transform: translate(-50%, -50%) scale(1.12); filter: brightness(1.8) drop-shadow(0 0 28px rgba(0,212,255,0.8)); }
}

.perfiq-burst.pb-charging {
  animation: pb-pulse 1.5s ease-in-out infinite;
}

/* Typewriter spark — inline glow that rides the leading edge of typed text */
.type-spark {
  display: inline-block;
  width: 14px;
  height: 0.85em;
  vertical-align: middle;
  margin-left: 2px;
  background: linear-gradient(90deg,
    transparent                0%,
    rgba(0,212,255,0.35)      35%,
    rgba(0,212,255,0.9)       68%,
    #ffffff                   82%,
    rgba(0,212,255,0.5)      100%);
  box-shadow: 0 0 7px rgba(0,212,255,0.9), 0 0 18px rgba(0,212,255,0.45);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  animation: spark-flicker 0.12s ease-in-out infinite alternate;
}

@keyframes spark-flicker {
  from { opacity: 0.85; box-shadow: 0 0 5px rgba(0,212,255,0.8),  0 0 14px rgba(0,212,255,0.4); }
  to   { opacity: 1;    box-shadow: 0 0 10px rgba(0,212,255,1),    0 0 22px rgba(0,212,255,0.6); }
}

/* ============================================
   COOKIE MODAL — centred consent dialog
   ============================================ */

/* Overlay */
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.ck-overlay.ck-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* Modal card */
.ck-modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0,212,255,0.06), 0 24px 80px rgba(0,0,0,0.7), 0 0 60px rgba(0,212,255,0.07);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34,1.28,0.64,1);
}
.ck-overlay.ck-overlay--visible .ck-modal {
  transform: translateY(0) scale(1);
}

/* ── Brand strip ── */
.ck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 12px;
  background: rgba(0,212,255,0.04);
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.ck-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.ck-bar {
  width: 5px;
  height: var(--h, 50%);
  background: rgba(0,212,255,0.3);
  border-radius: 2px 2px 0 0;
  animation: ck-breathe 2.8s ease-in-out infinite;
}
.ck-bar--hi {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0,212,255,0.65);
  animation: ck-hi 1.6s ease-in-out infinite;
}
@keyframes ck-breathe {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1;   }
}
@keyframes ck-hi {
  0%,100% { box-shadow: 0 0 4px rgba(0,212,255,0.5); }
  50%     { box-shadow: 0 0 12px rgba(0,212,255,1);  }
}

.ck-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ck-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: ck-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes ck-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%     { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.ck-brand-label {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  opacity: 0.6;
}
.ck-brand-dot { color: var(--accent-cyan); }

/* ── Copy ── */
.ck-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  padding: 24px 24px 8px;
  line-height: 1.2;
}
.ck-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 24px 20px;
}

/* ── Category panel ── */
.ck-categories {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  opacity: 0;
}
.ck-categories.ck-categories--open {
  max-height: 360px;
  opacity: 1;
}

.ck-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}
.ck-cat__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ck-cat__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.ck-cat__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.ck-always {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  white-space: nowrap;
  opacity: 0.7;
}

/* Toggle switch */
.ck-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.ck-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.ck-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  transition: background 0.25s, border-color 0.25s;
}
.ck-switch__track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), background 0.25s;
}
.ck-switch input:checked + .ck-switch__track {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
}
.ck-switch input:checked + .ck-switch__track::after {
  transform: translateX(18px);
  background: #070B14;
}

/* ── Actions ── */
.ck-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.ck-actions--save {
  display: none;
  border-top: none;
  padding-top: 0;
}
.ck-actions--hidden { display: none; }
.ck-actions--visible { display: flex; }

.ck-btn {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.ck-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.08);
}
.ck-btn--ghost:hover {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.18);
}
.ck-btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(0,212,255,0.25);
}
.ck-btn--outline:hover {
  border-color: rgba(0,212,255,0.5);
  color: var(--text-primary);
}
.ck-btn--primary {
  background: var(--accent-cyan);
  color: #070B14;
  border-color: var(--accent-cyan);
  margin-left: auto;
}
.ck-btn--primary:hover {
  background: #33ddff;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.ck-arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.ck-btn--primary:hover .ck-arr { transform: translateX(3px); }

@media (max-width: 480px) {
  .ck-actions { flex-wrap: wrap; }
  .ck-btn--primary { margin-left: 0; width: 100%; justify-content: center; text-align: center; }
  .ck-title { font-size: 19px; }
}
