/* ─── PREZENTA — Homepage v3 (WordPress Theme CSS) ─────────────────────────
   Soubor: assets/css/prezenta.css
   Popis:  Hlavní styly šablony – design system, komponenty, animace
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── CSS Custom Properties (Design tokens) ─────────────────── */
:root {
  --bg: #ffffff;
  --bg-tint: #f8f9ff;
  --bg-tint-2: #f0f2ff;
  --fg: #121214;
  --fg-dim: #6d6c89;
  --fg-soft: #9897b0;
  --brand: #5442ff;
  --brand-soft: #6a7bff;
  --brand-tint: #e7eaff;
  --brand-deep: #1a0f4a;
  --line: rgba(18, 18, 36, 0.08);

  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --kicker: "Unbounded", "Inter", sans-serif;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --hero-blob-opacity: 1;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
}

/* ─── Typografické primitiva ─────────────────────────────────── */
.kicker {
  font-family: var(--kicker);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker--brand { color: var(--brand); }
.kicker--light { color: rgba(255, 255, 255, 0.7); }

/* ─── Tlačítka (Buttons) ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--easing), background 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: var(--body);
}

.btn--lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn--primary {
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(84, 66, 255, 0.5);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(84, 66, 255, 0.6);
  background: #4533e8;
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--light {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.25);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.3);
}

/* ─── Navigace (Nav) ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s var(--easing-soft), border-color 0.4s, padding 0.4s var(--easing-soft);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}

.nav--over-dark.nav--scrolled {
  background: rgba(10, 10, 18, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  transition: color 0.4s var(--easing-soft), filter 0.4s var(--easing-soft);
}

.nav--scrolled:not(.nav--over-dark) .nav__logo {
  color: var(--brand);
}

/* Logo jako <img> nebo inline SVG – sdílená pravidla výšky */
.nav__logo-img,
.nav__logo .custom-logo {
  height: 60px;
  width: auto;
  display: block;
  transition: color 0.4s var(--easing-soft), filter 0.4s var(--easing-soft);
}

/* Inline SVG logo: fill přes currentColor */
.nav__logo .nav__logo-img path,
.nav__logo .nav__logo-img rect,
.nav__logo .nav__logo-img polygon,
.nav__logo .nav__logo-img circle,
.nav__logo .nav__logo-img ellipse {
  fill: currentColor;
}

/* Na tmavém pozadí: bílá */
.nav__logo {
  color: #fff;
}

/* Na světlém pozadí (scrolled): brand barva z color switcheru */
.nav--scrolled:not(.nav--over-dark) .nav__logo {
  color: var(--brand);
}

/* Fallback <img> logo (non-SVG nebo CSS filter) */
.nav--scrolled:not(.nav--over-dark) .nav__logo .custom-logo {
  filter: none;
}
.nav__logo .custom-logo {
  filter: brightness(0) invert(1);
}

.nav__menu {
  display: flex;
  gap: 90px;
  align-items: center;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu li {
  list-style: none;
}

.nav__link {
  padding: 8px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  display: block;
  cursor: default;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav--scrolled:not(.nav--over-dark) .nav__link {
  color: var(--fg-dim);
}

.nav--scrolled:not(.nav--over-dark) .nav__link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
}

.nav__cta {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.3s var(--easing);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__cta:hover {
  background: #4533e8;
  transform: translateY(-1px);
  color: #fff;
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav__hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.nav--scrolled:not(.nav--over-dark) .nav__hamburger span {
  background: var(--fg);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 6, 15, 0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(24px);
}

.nav__drawer.is-open {
  display: flex;
}

.nav__drawer .nav__link {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 28px;
  letter-spacing: -0.02em;
}

.nav__drawer .nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__drawer .nav__cta {
  margin-top: 24px;
  font-size: 16px;
  padding: 16px 32px;
}

@media (max-width: 1024px) {
  .nav__menu {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ─── Hero: scroll-zoom wrapper ─────────────────────────────── */
.hero-zoom-space {
  position: relative;
  /* výška se nastaví JS: hero.offsetHeight + zoomDist */
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-bottom: 6vw;
}

/* ─── Hero: WebGL shader canvas ─────────────────────────────── */
.hero__shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__shader-canvas--base    { z-index: 2; }
.hero__shader-canvas--overlay { z-index: 3; opacity: 0.6; mix-blend-mode: screen; }

/* Blob fallback se skryje jakmile WebGL uspěje – animace zastavíme */
.hero--shader-ready .hero__bg-inner {
  opacity: 0;
  pointer-events: none;
}
.hero--shader-ready .hero__bg-blob {
  animation-play-state: paused;
  will-change: auto;
}

/* ─── Hero: Aceternity background gradient animation ─────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #03020a;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12.28vw - 400px), 0 calc(100% - 400px));
  animation: heroBgReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroBgReveal {
  0%   { filter: brightness(0.2) saturate(0.4); }
  40%  { filter: brightness(0.7) saturate(0.8); }
  100% { filter: brightness(1)   saturate(1);   }
}

.hero__bg-inner {
  position: absolute;
  inset: -20%;
  filter: blur(40px);
}

.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Blob 1 – tmavší brand fialová */
.hero__bg-blob--1 {
  width: 75%; height: 70%;
  top: 10%; left: 5%;
  background: radial-gradient(circle at 40% 40%, #3d2db8 0%, #2a1d8a 30%, transparent 70%);
  opacity: 0.90;
  animation: gradBlob1 12s ease-in-out infinite alternate;
}

/* Blob 2 – hluboká purpurová */
.hero__bg-blob--2 {
  width: 60%; height: 60%;
  top: -5%; right: -5%;
  background: radial-gradient(circle at 60% 40%, #5b0f8a 0%, #3d0a5e 35%, transparent 70%);
  opacity: 0.80;
  animation: gradBlob2 15s ease-in-out infinite alternate;
}

/* Blob 3 – tmavá námořní modrá */
.hero__bg-blob--3 {
  width: 65%; height: 60%;
  bottom: -10%; left: -10%;
  background: radial-gradient(circle at 50% 60%, #0f2a7a 0%, #091c52 35%, transparent 70%);
  opacity: 0.85;
  animation: gradBlob3 18s ease-in-out infinite alternate;
}

/* Blob 4 – středně tmavá indigo */
.hero__bg-blob--4 {
  width: 50%; height: 50%;
  top: 35%; right: -5%;
  background: radial-gradient(circle at 50% 50%, #1a1060 0%, #0e0940 35%, transparent 70%);
  opacity: 0.70;
  animation: gradBlob4 20s ease-in-out infinite alternate;
}

/* Blob 5 – tmavá fialovo-modrá */
.hero__bg-blob--5 {
  width: 45%; height: 45%;
  top: -10%; left: 28%;
  background: radial-gradient(circle at 50% 50%, #2d1878 0%, #1a0e4a 35%, transparent 70%);
  opacity: 0.75;
  animation: gradBlob5 10s ease-in-out infinite alternate;
}

@keyframes gradBlob1 {
  0%   { transform: translate(  0%,   0%) scale(1.00); }
  33%  { transform: translate(  8%,  14%) scale(1.15); }
  66%  { transform: translate( -7%,   7%) scale(0.90); }
  100% { transform: translate(  5%, -12%) scale(1.08); }
}

@keyframes gradBlob2 {
  0%   { transform: translate(  0%,   0%) scale(1.00); }
  50%  { transform: translate(-16%,  12%) scale(1.20); }
  100% { transform: translate(  7%, -14%) scale(0.86); }
}

@keyframes gradBlob3 {
  0%   { transform: translate(  0%,   0%) scale(1.00); }
  40%  { transform: translate( 12%, -16%) scale(1.14); }
  100% { transform: translate( -8%,  12%) scale(0.92); }
}

@keyframes gradBlob4 {
  0%   { transform: translate(  0%,   0%) scale(1.00); }
  50%  { transform: translate(-12%, -10%) scale(1.25); }
  100% { transform: translate( 14%,  12%) scale(0.82); }
}

@keyframes gradBlob5 {
  0%   { transform: translate(  0%,   0%) scale(1.00); }
  50%  { transform: translate( 16%,  10%) scale(1.18); }
  100% { transform: translate(-10%, -14%) scale(1.05); }
}

/* Mouse-reactive overlay na .hero__bg – lerped JS hodnoty přes --mx / --my */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px circle at var(--mx, 50%) var(--my, 50%),
    rgba(108, 90, 255, 0.28) 0%,
    rgba(84,  66, 255, 0.12) 30%,
    transparent 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 10;
}

/* Cursor glow (menší, ostrý bod přesně na kurzoru) */
.hero__mouse-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  transform: translate(calc(var(--mouse-x, 50vw) - 160px), calc(var(--mouse-y, 50vh) - 160px));
  background: radial-gradient(circle, rgba(150, 120, 255, 0.20), transparent 65%);
  pointer-events: none;
  z-index: 8;
  will-change: transform;
}

/* Film grain */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  z-index: 7;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12.28vw - 400px), 0 calc(100% - 400px));
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── Hero: textový obsah ────────────────────────────────────── */
/* Clip wrapper – overflow:hidden skryje panel před animací */
.hero__inner-clip {
  flex-shrink: 0;
  overflow: hidden;
  /* overflow: clip opravuje Safari compositing bug (will-change + overflow:hidden = leaking content) */
  overflow: clip;
  position: relative;
  z-index: 4;
  will-change: transform;
}

/* Panel textu – startuje schovaný dole, vyjede při is-loaded */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: clamp(55px, 18vh, 105px) 32px clamp(48px, 6vh, 72px);
  /* Počáteční stav: panel níž než clip → neviditelný */
  transform: translateY(105%);
}

.hero.is-loaded .hero__inner {
  animation: heroInnerUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

@keyframes heroInnerUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

/* Staggered reveal prvků uvnitř panelu – nastupuje jak panel stoupá */
.hero__kicker,
.hero__title-line,
.hero__cta-group {
  opacity: 0;
  transform: translateY(22px);
}

.hero.is-loaded .hero__kicker {
  animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.hero.is-loaded .hero__title-line:nth-child(1) {
  animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero.is-loaded .hero__title-line:nth-child(2) {
  animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero.is-loaded .hero__cta-group {
  animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Kicker */
.hero__kicker {
  font-family: var(--kicker);
  font-weight: 300;
  font-size: clamp(10px, 0.82vw, 12px);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}


/* Nadpis – dvě velké řádky */
.hero__title {
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__title-line {
  display: block;
  font-family: "Inter Tight", var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  /* Padding zabrání ořezu u background-clip: text */
  padding: 0.04em 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #f0ecff 30%, #d4c8ff 60%, #b8d8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* rgba bílá: alpha=1 → čistě bílý text; alpha=0 → gradient prosvítá */
  color: rgba(255, 255, 255, var(--title-alpha, 1));
}

/* Druhá řádka – stejný gradient bez průhlednosti */
.hero__title-line--dim {
  background: linear-gradient(135deg, #ffffff 0%, #d2c3ff 40%, #aad2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255, 255, 255, var(--title-alpha, 1));
}

/* ─── Hero: CTA tlačítka ─────────────────────────────────────── */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta           { font-size: 15px; padding: 16px 32px; }
.hero__cta-secondary { font-size: 15px; padding: 16px 28px; }

/* ─── Hero: scroll CTA pod tlačítky ─────────────────────────── */
.hero__scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero.is-loaded .hero__scroll-cta {
  animation: heroReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.hero__scroll-cta-label {
  font-family: var(--kicker);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Animovaná šipka dolů */
.hero__scroll-cta-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: visible;
  background: none;
  width: auto;
  height: auto;
}

.hero__scroll-cta-line::before,
.hero__scroll-cta-line::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  animation: scrollChevron 1.4s ease-in-out infinite;
}

.hero__scroll-cta-line::after {
  margin-top: -6px;
  animation-delay: 0.22s;
  opacity: 0.55;
}

@keyframes scrollChevron {
  0%   { transform: rotate(45deg) translateY(-4px) translateX(-4px); opacity: 0; }
  40%  { opacity: 1; }
  80%  { transform: rotate(45deg) translateY( 4px) translateX( 4px); opacity: 0.9; }
  100% { transform: rotate(45deg) translateY( 6px) translateX( 6px); opacity: 0; }
}

/* ─── Hero: produktový obrázek – zoom scroll efekt ──────────── */
.hero__visual {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: min(1225px, 90vw);
  margin: 0 auto;
  margin-left: calc(50% - min(612px, 45vw) - 125px);
  opacity: 0;
  transform-origin: center 40%;
  will-change: transform, opacity;
}

/* Fáze 1: opacity fade-in (transform řídí JS) */
.hero.is-intro .hero__visual {
  animation: heroVisualIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

/* Cílová opacity 0.52 – pozadí výrazně prosvítá přes blurred produkt */
@keyframes heroVisualIn {
  to { opacity: 0.52; }
}

.hero__visual::after {
  display: none;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55))
          drop-shadow(0  4px 20px rgba(84, 66, 255, 0.20));
  pointer-events: none;
  user-select: none;
}

/* ─── Hero: scroll hint ──────────────────────────────────────── */

/* ─── Hero: responzivita ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__title-line {
    white-space: normal;
    font-size: clamp(38px, 11vw, 62px);
  }

  .hero__inner { padding-bottom: 36px; }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero__cta,
  .hero__cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__visual   { width: 96vw; }
  .hero__inner    { padding-top: 100px; }
}

/* ─── Statement sekce ────────────────────────────────────────── */
.statement {
  background: #fff;
  position: relative;
  z-index: 3;
  padding: clamp(70px, 9vw, 130px) 0;
}

.statement__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.statement__kicker {
  margin-bottom: 32px;
}

.statement__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 80px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0;
}

.statement__text .muted {
  color: #d3d3de;
  transition: color 0.5s var(--easing);
}

.statement__text .muted.is-on {
  color: var(--fg);
}

.statement__stats {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--brand);
  display: inline-block;
  will-change: transform;
  transition: transform 0.01s linear;
}

.stat__num.is-counting {
  background: linear-gradient(
    105deg,
    var(--brand) 0%,
    #a78bfa 38%,
    var(--brand-soft) 55%,
    var(--brand) 100%
  );
  background-size: 240% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: stat-shimmer 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat__num.is-done {
  animation: stat-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stat-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -60% 0; }
}

@keyframes stat-pop {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.stat__label {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0;
}

@media (max-width: 800px) {
  .statement__stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* ─── Product Grid (4 karty pod hero) ───────────────────────── */
.pgrid {
  position: relative;
  z-index: 3;
  background: #fff;
  padding: clamp(40px, 5vw, 60px) 0 clamp(40px, 6vw, 80px);
}

.pgrid__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pgrid__card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px;
  min-height: 320px;
  background: var(--bg-tint);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.5s var(--easing), box-shadow 0.5s var(--easing);
  text-decoration: none;
  color: inherit;
}

.pgrid__card--b {
  background: var(--bg-tint-2);
}

.pgrid__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -22px rgba(84, 66, 255, 0.22);
}

.pgrid__glow {
  position: absolute;
  top: -25%;
  right: -20%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 66, 255, 0.16), transparent 70%);
  transition: transform 0.6s var(--easing), opacity 0.5s;
  pointer-events: none;
}

.pgrid__card--b .pgrid__glow {
  top: auto;
  right: auto;
  bottom: -25%;
  left: -20%;
  background: radial-gradient(circle, rgba(151, 71, 255, 0.16), transparent 70%);
}

.pgrid__card:hover .pgrid__glow {
  transform: scale(1.3);
}

.pgrid__media {
  position: relative;
  width: 100%;
  height: 440px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgrid__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.14));
  transition: transform 0.5s var(--easing);
}

.pgrid__card:hover .pgrid__media img {
  transform: scale(1.25);
}

.pgrid__title {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--fg);
}

.pgrid__body {
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 28px;
  max-width: 42ch;
}

.pgrid__cta {
  position: relative;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--easing), background 0.2s;
}

.pgrid__card:hover .pgrid__cta {
  transform: translateY(-2px);
  background: #4533e8;
}

.pgrid__cta svg {
  transition: transform 0.3s var(--easing);
}

.pgrid__card:hover .pgrid__cta svg {
  transform: translateX(3px);
}

@media (max-width: 800px) {
  .pgrid { padding-top: 220px; }
  .pgrid__inner { grid-template-columns: 1fr; }
  .pgrid__card { padding: 32px; min-height: 260px; }
  .pgrid__media { height: 280px; }
}

/* ─── Product bands – sticky-pinned showcases ────────────────── */
.pin {
  position: relative;
  height: 240vh;
  background: var(--bg-tint);
  overflow: clip;
}

.pin--dark {
  background: #0a0a0f;
  color: #fff;
}

.pin__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 0 64px;
  overflow: visible;
}

.pin__progress {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pin__dot {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.14);
  transition: background 0.3s, width 0.3s;
}

.pin--dark .pin__dot {
  background: rgba(255, 255, 255, 0.2);
}

.pin__dot.is-on {
  background: var(--brand-gradient, var(--brand));
  width: 38px;
}

.pin--dark .pin__dot.is-on {
  background: var(--brand-soft);
}

.pin__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pin__eyebrow {
  margin-bottom: 18px;
}

.pin__num {
  font-weight: 700;
  color: var(--brand);
  margin-right: 4px;
}

.pin--dark .pin__num {
  color: var(--brand-soft);
}

.pin__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 28px;
}

.pin__accent {
  display: block;
  color: var(--brand);
}

.pin--dark .pin__accent {
  color: var(--brand-soft);
}

.pin__panels {
  position: relative;
  min-height: 230px;
}

.pin__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
  pointer-events: none;
}

.pin__panel.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin__panel p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 18px;
  max-width: 46ch;
}

.pin--dark .pin__panel p {
  color: rgba(255, 255, 255, 0.72);
}

.pin__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pin__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.pin--dark .pin__features li {
  color: rgba(255, 255, 255, 0.92);
}

.pin__features li::before {
  content: "";
  flex: none;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient, var(--brand));
}

.pin--dark .pin__features li::before {
  background: var(--brand-soft);
}

.pin__cta {
  margin-top: 32px;
  align-self: flex-start;
}

.pin__cta svg {
  transition: transform 0.3s var(--easing);
}

.pin__cta:hover svg {
  transform: translateX(3px);
}

.pin__visual {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.pin__blob {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(106, 123, 255, 0.26), rgba(84, 66, 255, 0.1) 52%, transparent 80%);
  filter: blur(10px);
  animation: blobMorph 11s ease-in-out infinite alternate;
}

.pin--dark .pin__blob {
  background: radial-gradient(circle at 32% 30%, rgba(151, 71, 255, 0.5), rgba(84, 66, 255, 0.18) 52%, transparent 80%);
}

@keyframes blobMorph {
  from { transform: scale(1) rotate(0deg); border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; }
  to   { transform: scale(1.05) rotate(36deg); border-radius: 60% 40% 45% 55% / 60% 50% 50% 40%; }
}

.pin__img {
  position: relative;
  z-index: 2;
  max-height: 86vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 48px 80px rgba(0, 0, 0, 0.32));
  transition: transform 0.7s var(--easing);
}

.pin__img--panel {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  max-height: 86vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 48px 80px rgba(0, 0, 0, 0.32));
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  will-change: opacity, transform;
}

.pin__img--panel.is-on {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pin__graphic {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 4 / 5;
  max-height: 66vh;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, #7d4bff 55%, var(--brand-deep) 100%);
  display: flex;
  align-items: flex-end;
  padding: 44px;
  box-shadow: 0 36px 70px -28px rgba(84, 66, 255, 0.55);
}

.pin__graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(255, 255, 255, 0.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 20px);
  pointer-events: none;
}

.pin__graphic-num {
  position: absolute;
  top: 36px;
  right: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.02em;
}

.pin__graphic-word {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.96);
  text-transform: lowercase;
}

@media (max-width: 860px) {
  .pin { height: auto; }

  .pin__sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 90px 24px;
  }

  .pin__progress { display: none; }

  .pin__panels { position: relative; min-height: 0; }

  .pin__panel {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .pin__panel:not(.is-on) { display: none; }

  .pin__visual { height: auto; order: -1; }
  .pin__img,
  .pin__img--panel { max-height: 53vh; }
  .pin__graphic { width: 100%; max-height: none; }
}

/* ─── Clients marquee ────────────────────────────────────────── */
.clients {
  background: #fff;
  padding: 140px 0 160px;
  position: relative;
}

.clients__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 72px;
  text-align: center;
}

.clients__kicker {
  margin-bottom: 16px;
}

.clients__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.13;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--fg);
}

.clients__cta-row {
  text-align: center;
  margin-top: 50px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.marquee__track {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  padding: 16px 32px;
  will-change: transform;
  user-select: none;
  box-sizing: border-box;
}

.marquee__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.035em;
  color: #c5c5d5;
  white-space: nowrap;
  flex: none;
  transition: color 0.3s;
  user-select: none;
}

.marquee__logo:hover {
  color: var(--fg);
}

.marquee__logo--img {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee__logo--img img {
  max-height: 44px;
  width: auto;
  max-width: 150px;
  filter: none;
  transition: filter 0.35s;
  display: block;
}

.marquee__logo--img:hover img {
  filter: none;
}

/* ─── Testimonial – slider referencí ────────────────────────── */
.testimonial {
  position: relative;
  background: #121214;
  color: #fff;
  padding: 100px 0 120px;
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(84, 66, 255, 0.32), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(139, 24, 246, 0.22), transparent 60%);
  pointer-events: none;
}

.testimonial__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.testimonial__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.testimonial__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.13;
  margin: 0;
  max-width: 18ch;
}

.testimonial__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.testimonial__media {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.testimonial__media-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Foto – Ken Burns při vstupu, fade při odchodu */
@keyframes kenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

.testimonial__media-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial__media-stack img.is-on {
  opacity: 1;
  animation: kenBurns 9s ease-in-out forwards;
}

.testimonial__media-stack img.is-off {
  opacity: 0;
  transform: scale(0.97);
}

.testimonial__quote-block {
  max-width: 640px;
}

/* Grid stacking – citáty i osoby se překrývají ve stejné buňce */
.testimonial__quotes,
.testimonial__persons {
  display: grid;
}

.testimonial__quotes > *,
.testimonial__persons > * {
  grid-area: 1 / 1;
}

.testimonial__quotes {
  margin-bottom: 32px;
}

/* Výchozí stav – schované, posunuté dolů */
.testimonial__quote,
.testimonial__person {
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.5s;
}

/* Aktivní stav – fade in + slide up */
.testimonial__quote.is-on,
.testimonial__person.is-on {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Osoba se objeví o 80 ms později než citát (stagger) */
.testimonial__person.is-on {
  transition-delay: 0.08s, 0.08s, 0s;
}

.testimonial__quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  min-height: 5em;
  position: relative;
  color: #fff;
}

.testimonial__mark {
  display: inline;
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 1.2em;
  margin: 0 4px 0 -4px;
  vertical-align: -0.05em;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex: none;
}

.testimonial__name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #fff;
}

.testimonial__role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.testimonial__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.testimonial__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.testimonial__dots {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.testimonial__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--easing);
}

.testimonial__dot.is-on {
  background: var(--brand-soft);
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .testimonial__grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonial__media { max-width: 380px; }
}

/* ─── CTA sekce ──────────────────────────────────────────────── */
/* ─── Komponenty – záhlaví stránky ──────────────────────────── */
.komponenty-header {
  background: #121214;
  padding: 140px 32px 80px;
  text-align: center;
}

.komponenty-header__inner {
  max-width: 640px;
  margin: 0 auto;
}

.komponenty-header__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin: 16px 0 20px;
}

.komponenty-header__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ─── CTA Horizontal Scroll sekce ───────────────────────────── */

/* Wrapper */
.cta-hscroll {
  position: relative;
  /* 3 panely × 100vh přechodů + 120vh dwell na prvním slidu + 150vh dwell na posledním slidu */
  height: 570vh;
  background: #f4f5fb;
}

.cta-hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: inherit;
}

/* Progress bar */
.cta-hscroll__progressbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 30;
}

.cta-hscroll__progressbar-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  transition: width 0.08s linear;
}

/* Counter */
.cta-hscroll__counter {
  position: absolute;
  bottom: 36px;
  right: 44px;
  z-index: 30;
  font-family: var(--kicker);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.cta-hscroll__counter-cur {
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
}

/* Track – 3 panely vedle sebe */
.cta-hscroll__track {
  display: flex;
  width: 300vw;
  height: 100%;
  will-change: transform;
}

/* Základní panel – žádný overflow clip na contentu */
.cta-hscroll__panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  background: #f4f5fb;
}

/* ── Sdílená typografie ──────────────────────────────────────── */
.cta-s__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 74px);
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin: 0 0 22px;
  color: var(--fg);
  font-style: normal;
}

.cta-s__title em {
  font-style: normal;
  color: var(--brand);
}

.cta-s__lede {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0 0 32px;
  max-width: 40ch;
}

/* Scroll hint */
.cta-s__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--kicker);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fg);
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 22px 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: sh-pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}

.cta-s__scroll-hint svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes sh-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(calc(-50% + 0px)); }
  50%       { opacity: 1;   transform: translateX(calc(-50% + 6px)); }
}

/* ═══ SLIDE 1 – produktová galerie ═══════════════════════════ */
.cta-s1 {
  align-items: flex-end;
}

.cta-s1__left {
  width: 34%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 9vh, 120px) 24px 0 clamp(32px, 4.5vw, 80px);
  position: relative;
  z-index: 2;
}

.cta-s1__header .kicker { margin-bottom: 18px; }

/* Zaoblená karta s event fotkou */
.cta-s1__event-photo {
  position: relative;
  width: 90%;
  aspect-ratio: 4 / 3;
  border-radius: clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(84, 66, 255, 0.1), 0 4px 16px rgba(0,0,0,0.07);
  flex-shrink: 0;
  will-change: transform;
}

.cta-s1__event-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta-s1__badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: var(--kicker);
  letter-spacing: 0.06em;
  color: var(--fg);
}

/* Stan – střed, bez ořezu */
.cta-s1__center {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
  /* Bez overflow:hidden – stan musí být celý viditelný */
}

.cta-s1__center img {
  /* max-height = 100vh minus výška navu (92px) minus malý buffer */
  max-height: calc(100vh - 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -4px 40px rgba(84, 66, 255, 0.1));
  display: block;
}

/* Vlajky – pravý kraj */
.cta-s1__right {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  will-change: transform;
  overflow: hidden;
}

.cta-s1__right img {
  max-height: calc(100vh - 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* ═══ SLIDE 2 – Zaujme na první pohled ═══════════════════════ */
.cta-s2 {
  /* Stejné pozadí jako slide 1 → plynulý bezešvý přechod */
}

/* Jemný separator – začíná pod navem */
.cta-s2::before {
  content: '';
  position: absolute;
  left: 36%;
  top: 100px; bottom: 48px;
  width: 1px;
  background: var(--line);
  z-index: 1;
}

/* Text sloupec */
.cta-s2__text {
  width: 36%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding-top min 96px = nad nav (92px) + buffer */
  padding: clamp(96px, 10vh, 120px) 48px clamp(48px, 6vh, 80px) clamp(32px, 4.5vw, 80px);
  position: relative;
  z-index: 2;
}

.cta-s2__text .kicker { margin-bottom: 18px; }

/* Video karta */
.cta-s2__video-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 16 / 10;
  border-radius: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(84, 66, 255, 0.12), 0 4px 12px rgba(0,0,0,0.07);
  margin-top: auto;
}

.cta-s2__video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cta-s2__video-label {
  position: absolute;
  bottom: 10px; left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--kicker);
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 4px 10px;
}

/* Obrázek – pravá část, contain aby nebyl ořezaný */
.cta-s2__image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
  /* top padding musí přesáhnout nav (92px) */
  padding: 100px 0 32px;
}

.cta-s2__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.08));
}

/* ═══ SLIDE 3 – Rychle a jednoduše ═══════════════════════════ */
.cta-s3 {
  /* Stejné světlé pozadí → žádný ořez přechodu */
}

/* Video – zaoblená karta, vlevo */
.cta-s3__video-wrap {
  width: 48%;
  flex-shrink: 0;
  height: 100%;
  /* top padding musí přesáhnout nav (92px) */
  padding: 100px clamp(32px, 4vh, 56px) clamp(32px, 4vh, 56px);
  position: relative;
  will-change: transform;
}

.cta-s3__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: clamp(16px, 2vw, 28px);
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
}

/* Pravý panel */
.cta-s3__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* top padding musí přesáhnout nav (92px) */
  padding: 100px clamp(32px, 4.5vw, 72px) clamp(32px, 4vh, 56px) 0;
  gap: clamp(20px, 2.5vh, 32px);
}

/* Produktový obrázek nahoře vpravo – plný, bez ořezu */
.cta-s3__product {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: clamp(12px, 1.5vw, 20px);
  background: #eef0fb;
  will-change: transform;
}

.cta-s3__product img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Text + CTA dole vpravo */
.cta-s3__text {
  flex-shrink: 0;
}

.cta-s3__text .kicker { margin-bottom: 14px; }
.cta-s3__text .cta-s__title { margin-bottom: 14px; }
.cta-s3__text .cta-s__lede  { margin-bottom: 24px; }

/* ── Mobil ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cta-hscroll { height: auto; background: #f4f5fb; }

  .cta-hscroll__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .cta-hscroll__progressbar,
  .cta-hscroll__counter,
  .cta-s__scroll-hint { display: none; }

  .cta-hscroll__track {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .cta-hscroll__panel {
    width: 100%;
    height: auto;
    min-height: 100svh;
    flex-direction: column;
  }

  /* Slide 1 mobile */
  .cta-s1 { align-items: flex-start; padding: 80px 24px 0; gap: 24px; }
  .cta-s1__left { width: 100%; height: auto; padding: 0; gap: 20px; }
  .cta-s1__event-photo { width: 100%; aspect-ratio: 16 / 9; }
  .cta-s1__center { width: 100%; max-height: 50vw; }
  .cta-s1__center img { max-height: 50vw; }
  .cta-s1__right { display: none; }

  /* Slide 2 mobile */
  .cta-s2 { flex-direction: column-reverse; }
  .cta-s2::before { display: none; }
  .cta-s2__text { width: 100%; padding: 32px 24px 48px; justify-content: flex-start; }
  .cta-s2__video-card { max-width: 100%; }
  .cta-s2__image { width: 100%; height: 45svh; flex: none; padding: 16px; }

  /* Slide 3 mobile */
  .cta-s3 { flex-direction: column; }
  .cta-s3__video-wrap { width: 100%; height: 45svh; padding: 20px; }
  .cta-s3__right { padding: 24px 24px 48px; }
  .cta-s3__product { max-height: 35svh; }
}


/* ─── Kontakt sekce ──────────────────────────────────────────── */
.contact {
  background: #fff;
  padding: clamp(60px, 9vw, 120px) 0;
  position: relative;
}

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Levá karta: Andrea ─────────────────────────────────────── */
.contact__card {
  background: #fff;
  border-radius: 32px;
  border: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px 28px;
  text-align: center;
  height: 665px;
}

/* andrea-cta.svg – vlajka + foto nahoře */
.contact__card-photo {
  width: 85%;
  height: auto;
  display: block;
  margin-bottom: -24px;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

/* Textový blok pod fotkou – přitažen nahoru */
.contact__card > div[style] {
  position: relative;
  z-index: 1;
}

/* ── Pravá karta: CTA ───────────────────────────────────────── */
.contact__card--brand {
  background: linear-gradient(160deg, #fafbff 0%, #f5f6ff 100%);
  border-color: rgba(84, 66, 255, 0.08);
  color: var(--fg);
  overflow: hidden;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding: 32px 48px 32px 56px;
  height: 515px;
}

/* Jemná záře v rohu */
.contact__card--brand::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(84, 66, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact__card--brand .contact__sub {
  color: var(--fg-dim);
  max-width: 38ch;
}

.contact__card--brand .contact__name {
  color: var(--fg);
}

/* ── Sdílené typo ───────────────────────────────────────────── */
.contact__role {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--kicker);
  font-weight: 400;
  color: var(--brand);
  margin: 0 0 5px;
}

.contact__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--brand);
}

.contact__phone {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  color: var(--brand);
  transition: opacity 0.2s;
}

.contact__phone:hover { opacity: 0.75; }

.contact__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0 0 8px;
  text-decoration: none;
  display: block;
}

a.contact__sub:hover {
  color: var(--brand);
}

.contact__btn {
  margin-top: 16px;
  align-self: flex-start;
}

@media (max-width: 800px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__card { min-height: 420px; }
  .contact__card-photo { width: 55%; bottom: 130px; }
  .contact__card--brand { padding: 36px; }
}

/* ─── Wordmark – scroll-driven reveal ───────────────────────── */
.wordmark {
  background: #fff;
  padding: 60px 0 30px;
  overflow: hidden;
  text-align: center;
}

.wordmark__logo-wrap {
  display: block;
  width: min(1280px, 100% - 48px);
  margin: 0 auto;
  user-select: none;
}

.wordmark__logo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 calc(var(--reveal-pct, 0%) - 2%),
    rgba(0,0,0,0.15) calc(var(--reveal-pct, 0%) + 2%),
    rgba(0,0,0,0.15) 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 calc(var(--reveal-pct, 0%) - 2%),
    rgba(0,0,0,0.15) calc(var(--reveal-pct, 0%) + 2%),
    rgba(0,0,0,0.15) 100%
  );
}

.wordmark__text-fallback {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14vw;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
  background-image: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) calc(var(--reveal-pct, 0%) - 2%),
    #c8cbf0 calc(var(--reveal-pct, 0%) + 2%),
    #c8cbf0 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  white-space: nowrap;
  display: inline-block;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-tint);
  color: var(--fg-dim);
  padding: 100px 0;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer__contact-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 20px;
}

.footer__contact-icon {
  width: auto;
  height: 34px;
  flex: none;
}

.footer__address {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 20px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--brand);
}

.footer__contact a[href^="mailto"] {
  color: var(--brand);
}

.footer__col-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 18px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a {
  font-size: 15px;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--brand);
}

.footer__socials {
  display: flex;
  gap: 50px;
  align-items: center;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.3s var(--easing);
}

.footer__social-icon {
  height: 29px;
  width: auto;
  display: block;
}

.footer__social:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.footer__social:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.footer__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(84, 66, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-dim);
}

.footer__bar a:hover {
  color: var(--brand);
}

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── Reveal animace (scroll-triggered) ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity, filter;
}

.reveal.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ─── Skip link (accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ─── Standardní stránky (page.php, single.php) ─────────────── */
.site-main {
  min-height: 60vh;
  padding-top: 100px;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  margin-top: 40px;
  line-height: 1.15;
}

.entry-content h1 { font-size: clamp(32px, 4vw, 52px); }
.entry-content h2 { font-size: clamp(26px, 3vw, 40px); }
.entry-content h3 { font-size: clamp(22px, 2.5vw, 32px); }

.entry-content p {
  margin-bottom: 24px;
  color: var(--fg-dim);
}

.entry-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--fg-dim);
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.entry-content img {
  border-radius: 16px;
  margin: 32px auto;
}

.entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-tint);
  border-radius: 0 12px 12px 0;
  font-size: 20px;
  font-style: italic;
  color: var(--fg);
}

.page-header {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #0a0f1a 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 32px 60px;
  text-align: center;
}

.page-header__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.page-header__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Archiv / Blog ──────────────────────────────────────────── */
.archive-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--easing), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(84, 66, 255, 0.18);
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--easing);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  font-size: 13px;
  color: var(--fg-soft);
  margin-bottom: 12px;
  font-family: var(--kicker);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.post-card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 12px;
}

.post-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin-bottom: 24px;
  flex: 1;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s;
}

.post-card:hover .post-card__link {
  gap: 10px;
}

/* ─── 404 stránka ────────────────────────────────────────────── */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
}

.error-404__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(100px, 20vw, 200px);
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.error-404__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.error-404__text {
  color: var(--fg-dim);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Vyhledávání ────────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-field {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 16px;
  font-family: var(--body);
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(84, 66, 255, 0.12);
}

.search-submit {
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--easing);
}

.search-submit:hover {
  background: #4533e8;
  transform: translateY(-1px);
}

/* ─── WordPress specifické styly ─────────────────────────────── */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--fg-soft);
  text-align: center;
  margin-top: 8px;
}

.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; width: 100%; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 32px 80px;
}

.page-numbers {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--line);
  color: var(--fg-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}

/* ─── Color Switcher ──────────────────────────────────────────── */
.color-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.color-switcher__toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-switcher__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.24);
}

.color-switcher__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient, var(--brand));
  display: block;
  transition: background 0.3s ease;
}

.color-switcher__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: var(--fg);
  border-radius: 24px;
  padding: 10px 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  animation: swatcher-in 0.2s ease;
}

.color-switcher__panel[hidden] {
  display: none;
}

@keyframes swatcher-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.color-switcher__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: var(--swatch);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.color-switcher__swatch:hover {
  transform: scale(1.15);
}

.color-switcher__swatch.is-active {
  border-color: #fff;
  transform: scale(1.1);
}

.color-switcher__swatch--gradient {
  background: conic-gradient(#5442ff, #f059a0, #f59e0b, #16a34a, #5442ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-switcher__gradient-form {
  background: var(--fg);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  animation: swatcher-in 0.2s ease;
  min-width: 130px;
}

.color-switcher__gradient-form[hidden] {
  display: none;
}

.color-switcher__gradient-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.color-switcher__color-from,
.color-switcher__color-to {
  width: 36px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
  background: none;
}

.color-switcher__gradient-label--angle {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.color-switcher__angle-val {
  font-weight: 700;
  font-style: normal;
}

.color-switcher__angle {
  width: 100%;
  cursor: pointer;
  accent-color: var(--brand);
}

.color-switcher__gradient-apply {
  margin-top: 4px;
  background: var(--brand-gradient, var(--brand));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.color-switcher__gradient-apply:hover {
  opacity: 0.85;
}
