/* ============================================================
   KUBÍK GROUP — SYSTEMS
   Light cream · Deep emerald accent · Playfair Display + Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg:           #eff6f1;
  --bg-soft:      #e2ebe5;
  --bg-card:      #ffffff;
  --ink:          #1a1612;
  --ink-soft:     #3a342d;
  --muted:        #6b6359;
  --dim:          #9a9284;
  --border:       #d5dfd8;
  --border-strong:#b6c3bb;
  --input-bg:     #ffffff;

  --accent:       #0f5142;
  --accent-hi:    #166a57;
  --accent-lo:    #083a2e;
  --accent-soft:  rgba(15, 81, 66, 0.08);
  --accent-glow:  rgba(15, 81, 66, 0.18);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  --sh-sm: 0 2px 12px rgba(26, 22, 18, 0.04);
  --sh-md: 0 12px 36px rgba(26, 22, 18, 0.08);
  --sh-lg: 0 30px 80px rgba(26, 22, 18, 0.14);

  --container: 1200px;
  --section-space: 110px;
  --header-height: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;        /* fallback pro starší prohlížeče */
  overflow-x: clip;          /* moderní — netvoří scroll container, neblokuje sticky pin */
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ============ Background — green-tinted layered tech ambient ============ */
/* Base soft green wash on body */
body {
  background:
    radial-gradient(70% 55% at 16% 8%, rgba(182, 236, 211, 0.38), transparent 70%),
    radial-gradient(62% 48% at 88% 14%, rgba(206, 244, 227, 0.3), transparent 72%),
    linear-gradient(155deg, #ffffff 0%, #eff6f1 55%, #e2ebe5 100%);
}

/* Animated blurred blobs — layer A (slow float) */
/* Simplified — odebrán filter:blur (drahá re-rasterizace každý frame) */
.bg-ambient {
  position: fixed; inset: -12%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(50% 38% at 18% 28%, rgba(69, 200, 139, 0.18), transparent 75%),
    radial-gradient(44% 42% at 78% 72%, rgba(180, 230, 200, 0.14), transparent 78%);
  animation: floatA 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* Simplified — odebrán filter:blur(40px), nahrazen rozšířenějším gradientem */
.bg-grain {
  position: fixed; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 65% 34%, rgba(88, 200, 140, 0.12), transparent 75%),
    radial-gradient(50% 45% at 30% 70%, rgba(170, 230, 195, 0.1), transparent 78%);
  opacity: 0.6;
  animation: floatB 16s ease-in-out infinite alternate;
  will-change: transform;
}

/* Technical grid — green tint */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 81, 66, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 81, 66, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 40%, transparent 88%);
}

@keyframes floatA {
  0%   { transform: translate3d(-2%, -1%, 0); }
  100% { transform: translate3d(2%, 2%, 0); }
}

@keyframes floatB {
  0%   { transform: translate3d(3%, -2%, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

/* ============ Scroll-triggered light effects ============ */

/* Main glow — odebrán filter:blur(60px), gradient sám je dostatečně diffuze */
.bg-scroll-glow {
  position: fixed;
  top: 0;
  left: 50%;
  width: 160vw;
  height: 85vh;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(-50%, calc(-30vh + var(--scroll-offset, 0px)), 0);
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(160, 240, 195, 0.28), transparent 75%),
    radial-gradient(ellipse 45% 55% at 72% 58%, rgba(120, 220, 170, 0.2), transparent 78%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* Diagonal light ray — odebrán filter:blur, jednodušší gradient */
.bg-scroll-ray {
  position: fixed;
  top: -10%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, calc(var(--scroll-offset, 0px) * 1.8), 0) rotate(-18deg);
  background: linear-gradient(
    90deg,
    transparent 47%,
    rgba(200, 255, 220, 0.16) 50%,
    transparent 53%
  );
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0.7;
}

/* ============ Fly-in blocks on scroll ============ */
.fly-in {
  opacity: 1;
  transform: translate3d(0, 40px, 0);
  transition:
    transform 0.85s cubic-bezier(0.22, 0.65, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}

.fly-in-left {
  opacity: 1;
  transform: translate3d(-60px, 20px, 0) rotate(-1.2deg);
  transition:
    transform 0.95s cubic-bezier(0.22, 0.65, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}

.fly-in-right {
  opacity: 1;
  transform: translate3d(60px, 20px, 0) rotate(1.2deg);
  transition:
    transform 0.95s cubic-bezier(0.22, 0.65, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}

.fly-in.is-visible,
.fly-in-left.is-visible,
.fly-in-right.is-visible {
  transform: translate3d(0, 0, 0) rotate(0);
  will-change: auto;
}

/* ============ Typography ============ */
h1, h2, h3, h4 {
  font-family: "Playfair Display", "Iowan Old Style", Palatino, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 18px;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 96;
  color: var(--accent);
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-variation-settings: "opsz" 144; max-width: 18ch; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-variation-settings: "opsz" 96; }
h3 { font-size: 1.2rem; font-variation-settings: "opsz" 48; }

p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 56ch; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: "JetBrains Mono", "Inter", monospace;
}

.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}

.eyebrow-sm {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
}

.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: #fff; }

/* ============ Layout ============ */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-alt {
  background: transparent;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading .eyebrow { justify-content: center; }

.section-heading h2 {
  margin-bottom: 22px;
  position: relative;
  padding-top: 28px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--accent);
}

.section-heading p { font-size: 1.04rem; margin-bottom: 0; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  z-index: 1001; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 240, 0.96);
  box-shadow: var(--sh-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

/* Brand block: separate clickable parts — logo→rozcestník, text→current site */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo,
.brand-text-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.brand-logo:hover,
.brand-logo:focus-visible,
.brand-text-link:hover,
.brand-text-link:focus-visible {
  opacity: 0.85;
  outline: none;
}

.brand-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-card);
  padding: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.brand-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text strong {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-text span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.site-nav > a:not(.btn):not(.nav-back) {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav > a:not(.btn):not(.nav-back):hover,
.site-nav > a:not(.btn):not(.nav-back):focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-back {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-left: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-back:hover, .nav-back:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer; padding: 0;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(15, 81, 66, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hi);
  box-shadow: 0 16px 40px rgba(15, 81, 66, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-gold {
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--ink);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============ HERO — full viewport (scroll reveals next section) ============ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero > .container { width: min(var(--container), calc(100% - 40px)); }

.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none; z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: center;
  position: relative; z-index: 1;
}

.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-bottom: 24px; color: var(--ink); }
.hero-copy .lead { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-points {
  list-style: none;
  padding: 28px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid var(--border-strong);
  counter-reset: hp;
}

.hero-points li {
  counter-increment: hp;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-points li::before {
  content: counter(hp, decimal-leading-zero);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  position: static;
  background: transparent;
  width: auto;
  height: auto;
}

/* ---- Dashboard mockup: now dark card against light bg (contrast / tech feel) ---- */
.hero-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi), var(--accent));
}

.hero-card-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-glow);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 5px var(--accent-soft); }
  50% { box-shadow: 0 0 0 10px rgba(15, 81, 66, 0.04); }
}

/* ---- Mock dashboard — DARK inside to look like a real product UI ---- */
.mock-dashboard {
  position: relative;
  padding: 22px;
  border-radius: var(--r-md);
  background: linear-gradient(165deg, #0f1e1a 0%, #081613 100%);
  border: 1px solid #1a2f28;
  color: #e0ede8;
}

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

.mock-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 106, 87, 0.22);
  color: #8dd9c2;
  border: 1px solid rgba(22, 106, 87, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8dd9c2;
  box-shadow: 0 0 8px #8dd9c2;
}

.mock-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 130px;
  align-items: end;
  margin-bottom: 22px;
}

.mock-bars span {
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #8dd9c2, #166a57);
  animation: bars-breathe 3.2s ease-in-out infinite alternate;
  opacity: 0.95;
}

.mock-bars span:nth-child(2) { animation-delay: 0.2s; }
.mock-bars span:nth-child(3) { animation-delay: 0.4s; }
.mock-bars span:nth-child(4) { animation-delay: 0.6s; }
.mock-bars span:nth-child(5) { animation-delay: 0.8s; }
.mock-bars span:nth-child(6) { animation-delay: 1.0s; }
.mock-bars span:nth-child(7) { animation-delay: 1.2s; }

@keyframes bars-breathe {
  0% { filter: brightness(0.85); }
  100% { filter: brightness(1.12); }
}

.mock-bars-sm {
  height: 80px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
}

.mock-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-stats li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(141, 217, 194, 0.06);
  border: 1px solid rgba(141, 217, 194, 0.14);
  display: grid;
  gap: 2px;
}

.mock-stats strong {
  font-family: "Playfair Display", serif;
  font-variation-settings: "opsz" 144;
  font-size: 1.25rem;
  font-weight: 500;
  color: #8dd9c2;
  line-height: 1;
}

.mock-stats span {
  font-size: 0.74rem;
  color: #a6c0b5;
  line-height: 1.3;
}

/* ============ Cards ============ */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform 0.4s cubic-bezier(0.22, 0.65, 0.2, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0.24);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 0.65, 0.2, 1);
}

.card:hover, .card:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--sh-md);
}

.card:hover::before, .card:focus-within::before { transform: scaleX(1); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  border: 1px solid var(--accent-glow);
}

.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ============ Showcase ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.showcase-card {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.showcase-head h3 { margin: 0; }

.showcase-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-card > p { margin-bottom: 22px; }

.mock-metrics {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-metrics > div {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.mock-metrics dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.mock-metrics dd {
  font-family: "Playfair Display", serif;
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

/* Workflow list */
.workflow-list {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.workflow-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-strong);
}

.workflow-dot-done {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.workflow-dot-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.workflow-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.workflow-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ============ Steps / process ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 30px 26px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--sh-md);
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  width: fit-content;
}

.step-card h3 { color: var(--ink); }

/* ============ CTA ============ */
.cta-banner {
  position: relative;
  padding: 84px 48px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(0, 0, 0, 0.22), transparent 65%),
    linear-gradient(135deg, var(--accent-lo) 0%, var(--accent) 55%, var(--accent-hi) 100%);
  border: 1px solid var(--accent-lo);
  box-shadow: 0 30px 80px rgba(15, 81, 66, 0.3);
  text-align: center;
  color: #f2fcf8;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
}

.cta-banner h2 {
  max-width: 900px;
  margin: 0 auto 32px;
  color: #ffffff;
  font-weight: 600;
}

.cta-banner h2 em { color: #ffffff; opacity: 0.92; }
.cta-banner .eyebrow { justify-content: center; color: #ffffff; }
.cta-banner .eyebrow::before { background: #ffffff; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contact-panel {
  padding: 40px 34px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.contact-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
}

.contact-list a { color: var(--ink); transition: color 0.2s ease; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--accent); }

.contact-icon {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.98rem;
}

.contact-form {
  padding: 40px 34px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-full { grid-column: 1 / -1; }

.contact-form textarea { min-height: 140px; resize: vertical; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 22px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.turnstile-wrap { margin: 0 0 22px; }
.turnstile-wrap .cf-turnstile { min-height: 66px; }

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.94rem;
  display: none;
}

.form-message.is-visible { display: block; }

.form-message.success {
  background: var(--accent-soft);
  color: var(--accent-lo);
  border: 1px solid var(--accent-glow);
}

.form-message.error {
  background: rgba(175, 50, 50, 0.08);
  color: #8a2e2e;
  border: 1px solid rgba(175, 50, 50, 0.22);
}

/* ============ Footer ============ */
.site-footer {
  padding: 42px 0 22px;
  margin-top: 40px;
  background: transparent;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(2px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-logo,
.footer-brand-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.footer-brand-text {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.footer-brand-logo:hover,
.footer-brand-logo:focus-visible,
.footer-brand-text:hover,
.footer-brand-text:focus-visible {
  opacity: 0.82;
  outline: none;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--border);
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
}

.footer-brand span { color: var(--muted); font-size: 0.86rem; }

.footer-meta {
  display: inline-flex; gap: 18px; align-items: center;
  color: var(--dim); font-size: 0.88rem;
}

.footer-meta a { color: var(--muted); transition: color 0.2s ease; }
.footer-meta a:hover, .footer-meta a:focus-visible { color: var(--accent); }

.legal-note {
  color: var(--dim);
  font-size: 0.78rem;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============ Mobile CTA ============ */
.mobile-cta {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 99;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(15, 81, 66, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-cta.is-visible { opacity: 1; pointer-events: auto; }

.mobile-cta-arrow {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
}

/* ============ Reveal ============ */
.reveal {
  opacity: 1;
  transform: translateY(22px);
  transition: transform 0.8s cubic-bezier(0.22, 0.65, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}

.reveal.is-visible { transform: none; will-change: auto; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --section-space: 78px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 50px; }

  /* Mobile perf: drahé scroll-driven fixed vrstvy s mix-blend-mode = re-rasterize každý frame */
  .bg-scroll-glow,
  .bg-scroll-ray { display: none; }
  .container { width: min(var(--container), calc(100% - 28px)); }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px; right: 20px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--sh-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { width: 100%; }
  .mobile-cta { display: inline-flex; }
}

@media (max-width: 720px) {
  .cards-3, .steps-grid, .contact-form-grid, .mock-metrics, .hero-points {
    grid-template-columns: 1fr;
  }
  .mock-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 40px 0 40px; }
  .hero-card, .card, .step-card, .showcase-card,
  .contact-panel, .contact-form, .cta-banner {
    padding: 28px 24px;
  }
  .cta-banner { padding: 48px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .fly-in, .fly-in-left, .fly-in-right { opacity: 1; transform: none; }
  .bg-scroll-glow, .bg-scroll-ray { transform: none; }
}

/* ============================================================
   Cookie consent banner — shared component across all KG sites
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(440px, calc(100% - 40px));
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--bg-card, #ffffff);
  color: var(--ink, #1a1612);
  border: 1px solid var(--border-strong, rgba(0, 0, 0, 0.12));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.65, 0.2, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner-icon { font-size: 1.55rem; line-height: 1; margin-top: 2px; }
.cookie-banner-body { grid-column: 2; display: grid; gap: 6px; }
.cookie-banner-body strong {
  font-size: 0.96rem; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cookie-banner-body p {
  font-size: 0.85rem; line-height: 1.55; margin: 0;
  color: var(--muted);
}
.cookie-banner-body em {
  font-style: normal; font-weight: 600;
  color: var(--accent);
}
.cookie-banner-btn {
  grid-column: 2; margin-top: 6px; justify-self: start;
  padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-contrast, #ffffff);
  font-family: inherit; font-weight: 700; font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-hi);
  outline: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Lightweight mode for live previews embedded in another page. */
html.is-preview-frame .bg-ambient,
html.is-preview-frame .bg-grain,
html.is-preview-frame .bg-grid,
html.is-preview-frame .bg-scroll-glow,
html.is-preview-frame .bg-scroll-ray,
html.is-preview-frame body::after,
html.is-preview-frame .mobile-cta,
html.is-preview-frame .cookie-banner,
html.is-preview-frame .turnstile-wrap {
  display: none !important;
}

html.is-preview-frame *,
html.is-preview-frame *::before,
html.is-preview-frame *::after {
  animation: none !important;
  transition: none !important;
}

html.is-preview-frame .site-header {
  position: static !important;
}

html.is-preview-frame .reveal,
html.is-preview-frame .fly-in,
html.is-preview-frame .fly-in-left,
html.is-preview-frame .fly-in-right {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 540px) {
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    padding: 18px 20px;
  }
}
