:root {
  --radius: 0.75rem;

  --background: oklch(0.99 0.002 250);
  --foreground: oklch(0.16 0.02 265);

  --surface: oklch(0.97 0.004 250);
  --surface-elevated: oklch(1 0 0);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.16 0.02 265);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.16 0.02 265);

  --primary: oklch(0.16 0.02 265);
  --primary-foreground: oklch(0.99 0.002 250);

  --brand: oklch(0.55 0.21 274);
  --brand-foreground: oklch(0.99 0.002 250);
  --brand-glow: oklch(0.72 0.18 295);

  --secondary: oklch(0.96 0.005 250);
  --secondary-foreground: oklch(0.16 0.02 265);
  --muted: oklch(0.96 0.005 250);
  --muted-foreground: oklch(0.48 0.015 260);
  --accent: oklch(0.95 0.02 274);
  --accent-foreground: oklch(0.16 0.02 265);
  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.008 260);
  --input: oklch(0.92 0.008 260);
  --ring: oklch(0.55 0.21 274);

  --gradient-brand: linear-gradient(135deg, oklch(0.55 0.21 274), oklch(0.72 0.18 295));
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.55 0.21 274 / 0.18), transparent 70%);
  --shadow-soft: 0 1px 2px oklch(0.16 0.02 265 / 0.04), 0 8px 24px oklch(0.16 0.02 265 / 0.06);
  --shadow-elevated: 0 2px 4px oklch(0.16 0.02 265 / 0.05), 0 20px 50px oklch(0.16 0.02 265 / 0.10);
  --shadow-glow: 0 10px 40px oklch(0.55 0.21 274 / 0.35);
}

* { border-color: var(--border); box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

::selection {
  background: oklch(0.55 0.21 274 / 0.18);
  color: var(--foreground);
}

/* ── Skip to content ── */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-to-content:focus {
  top: 0;
}

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: oklch(0.99 0.002 250 / 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mobile-nav nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 150ms ease;
}
.mobile-nav nav a:hover {
  color: var(--brand);
}
.mobile-nav-cta {
  margin-top: 0.5rem;
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  font-size: 1rem !important;
}
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Color utilities ── */
.bg-background { background-color: var(--background) !important; }
.bg-background\/70 { background-color: oklch(0.99 0.002 250 / 0.7) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-surface-elevated { background-color: var(--surface-elevated) !important; }
.bg-surface-elevated\/80 { background-color: oklch(1 0 0 / 0.8) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-accent-foreground { color: var(--accent-foreground) !important; }
.bg-muted { background-color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-brand-foreground { color: var(--brand-foreground) !important; }
.border-border { border-color: var(--border) !important; }
.border-input { border-color: var(--input) !important; }
.border-border\/60 { border-color: oklch(0.92 0.008 260 / 0.6) !important; }

/* ── Brand gradient & effects ── */
.bg-gradient-brand { background-image: var(--gradient-brand); }
.text-gradient-brand {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.hero-glow {
  background-image: var(--gradient-hero);
}

.grid-bg {
  background-image:
    linear-gradient(to right, oklch(0.16 0.02 265 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.16 0.02 265 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
}

/* ── Scroll-triggered fade-in ── */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section label with line ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ── Hero badge pulsing dot ── */
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Hero entrance ── */
.hero-badge {
  animation: fadeUp 500ms ease both, badgeGlow 3s ease-in-out infinite;
  animation-delay: 100ms;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.55 0.21 274 / 0); }
  50% { box-shadow: 0 0 0 6px oklch(0.55 0.21 274 / 0.08); }
}
.hero-h1 {
  animation: fadeUp 600ms ease both;
  animation-delay: 200ms;
}
.hero-sub {
  animation: fadeUp 600ms ease both;
  animation-delay: 350ms;
}
.hero-cta {
  animation: fadeUp 500ms ease both;
  animation-delay: 500ms;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.logo-icon {
  border-radius: 0;
  filter: contrast(1.06);
  mix-blend-mode: multiply;
  transform: scale(1.18);
}

/* ── Header ── */
header {
  background: oklch(0.99 0.002 250 / 0.82) !important;
  box-shadow: 0 1px 0 oklch(0.16 0.02 265 / 0.035);
}

header nav a {
  color: var(--muted-foreground);
  font-size: 15px;
  transition: color 150ms ease;
  position: relative;
  padding-bottom: 2px;
}
header nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 200ms ease;
}
header nav a.active::after {
  transform: scaleX(1);
}
header nav a:hover,
header nav a.active {
  color: var(--foreground) !important;
}

header a[href="#contact"] {
  box-shadow:
    0 1px 2px oklch(0.16 0.02 265 / 0.16),
    0 8px 20px oklch(0.16 0.02 265 / 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
header a[href="#contact"]:hover {
  transform: translateY(-1px);
}

header a[href="#contact"] svg,
.bg-gradient-brand svg {
  transition: transform 180ms ease;
}
header a[href="#contact"]:hover svg,
.bg-gradient-brand:hover svg {
  transform: translateX(3px);
}

/* ── Secondary CTA hover ── */
.cta-secondary {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.cta-secondary:hover {
  transform: translateY(-2px);
  border-color: oklch(0.55 0.21 274 / 0.4) !important;
  box-shadow: 0 8px 30px oklch(0.55 0.21 274 / 0.15);
}

/* ── Primary CTA hover ── */
.cta-primary {
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 44px oklch(0.55 0.21 274 / 0.4);
}

/* ── Trust strip ── */
.trust-stat {
  position: relative;
}
.trust-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}
@media (max-width: 767px) {
  .trust-stat::after { display: none; }
}

/* ── Floating language toggle ── */
.floating-lang {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3px;
  box-shadow: 0 4px 20px oklch(0.16 0.02 265 / 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-toggle {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 200ms ease;
}
.lang-toggle.active {
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 1px 2px oklch(0.16 0.02 265 / 0.12);
}
.lang-toggle:not(.active):hover {
  color: var(--foreground);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px oklch(0.16 0.02 265 / 0.1);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 8px 30px oklch(0.55 0.21 274 / 0.35);
}

/* ── Interactive cards ── */
.interactive-card,
.report-row,
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.interactive-card,
.report-row {
  cursor: pointer;
  transform: translateY(0) scale(1);
  position: relative;
  overflow: hidden;
  transition:
    transform 350ms ease,
    box-shadow 350ms ease,
    border-color 350ms ease,
    background-color 350ms ease;
}
.interactive-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
  z-index: 2;
}
.interactive-card:hover::before,
.interactive-card.active::before {
  transform: scaleX(1);
}
.interactive-card:hover,
.interactive-card:focus-visible,
.interactive-card.active,
.report-row:hover,
.report-row:focus-visible,
.report-row.active {
  border-color: oklch(0.55 0.21 274 / 0.42) !important;
  box-shadow: 0 20px 60px oklch(0.16 0.02 265 / 0.12);
  transform: translateY(-5px);
}
.interactive-card:focus-visible,
.report-row:focus-visible,
.lang-toggle:focus-visible {
  outline: 2px solid oklch(0.55 0.21 274 / 0.52);
  outline-offset: 3px;
}
.interactive-card.active {
  background: linear-gradient(180deg, oklch(0.98 0.01 274 / 0.98), oklch(1 0 0 / 0.96));
}
.report-row.active {
  background: oklch(0.98 0.01 274 / 0.96) !important;
}

/* ── Agent card icon glow — subtle ── */
.agent-card .shadow-glow {
  box-shadow: 0 4px 16px oklch(0.55 0.21 274 / 0.18);
}

/* ── Process connector ── */
.process-grid {
  position: relative;
}
.process-grid .process-card {
  position: relative;
  z-index: 1;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(33.33% + 0.5rem);
  right: calc(33.33% + 0.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--brand), oklch(0.72 0.18 295));
  opacity: 0.25;
  z-index: 0;
}
@media (max-width: 767px) {
  .process-grid::before { display: none; }
}

/* ── Progress bars ── */
.progress-fill {
  transition: width 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-fill.animate {
  width: var(--target) !important;
}

/* ── Form ── */
form.submitted {
  border-color: oklch(0.55 0.21 274 / 0.45) !important;
  box-shadow:
    0 0 0 4px oklch(0.55 0.21 274 / 0.08),
    var(--shadow-elevated);
}
.form-feedback {
  min-height: 1.25rem;
}

/* ── Calculator ── */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    oklch(0.55 0.21 274) 0%,
    oklch(0.55 0.21 274) var(--fill, 30%),
    var(--muted) var(--fill, 30%),
    var(--muted) 100%
  );
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px oklch(0.55 0.21 274 / 0.35);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.calc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 14px oklch(0.55 0.21 274 / 0.5);
  transform: scale(1.12);
}
.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px oklch(0.55 0.21 274 / 0.35);
  cursor: pointer;
}
.calc-range::-moz-range-progress {
  background: oklch(0.55 0.21 274);
  border-radius: 999px;
  height: 6px;
}
.calc-slider-row {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.calc-slider-row:hover {
  border-color: oklch(0.55 0.21 274 / 0.3) !important;
}

/* ── Stagger delays (csino.sk pattern) ── */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ── Contact link hover ── */
footer nav a {
  transition: color 200ms ease, transform 200ms ease;
}
footer nav a:hover {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 420px) {
  header .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  header a[href="#contact"] {
    min-width: auto;
    height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .floating-lang {
    bottom: 16px;
    left: 16px;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}
