:root {
  --bg: #0f1115;
  --bg-dark: #0b0d11;
  --card: #181b22;
  --text: #ffffff;
  --muted: #aeb4c2;
  --accent: #2eff4d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* HERO */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 520px;
  max-width: 170vw;
  height: auto;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 62px;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 20px;
}

/* BADGES */
.badges span {
  background: var(--card);
  padding: 8px 14px;
  border-radius: 999px;
  margin: 6px;
  display: inline-block;
  font-size: 14px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section.dark {
  background: var(--bg-dark);
}

h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 32px;
}

/* GRIDS */
.grid-4,
.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CARD */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  text-align: center;
}

.card small {
  display: block;
  color: var(--muted);
  margin: 4px 0;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
  text-align: center;
}

.kpi strong {
  font-size: 36px;
}

.green {
  color: var(--accent);
}

.center {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

/* CHART FIX */
canvas {
  min-height: 260px;
  display: block;
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }

}
/* ===== TOOLTIP ===== */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: help;
}

.tooltip-text {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  width: 220px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
}

/* ===== KPI SECTION ===== */
.kpi-section h2 {
  margin-bottom: 8px;
}

.kpi-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.kpi-card {
  background: var(--card);
  padding: 32px 24px;
  border-radius: 18px;
  text-align: center;
}

.kpi-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 40px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.kpi-note {
  font-size: 13px;
  color: var(--muted);
}

.kpi-card.highlight {
  border: 1px solid rgba(46,255,77,0.35);
  box-shadow: 0 0 0 1px rgba(46,255,77,0.15);
}

.kpi-extra {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--muted);
}
/* ===== PROSTORY & FUNKCE ===== */
.spaces {
  margin-top: 40px;
}

.space-card h3 {
  margin-bottom: 6px;
}

.space-card small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.space-card p {
  font-size: 16px;
}
/* ===== MICRO INTERACTIONS ===== */

/* Karty – jemný lift */
.card {
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Zvýraznění hlavních karet */
.kpi-card.highlight {
  box-shadow: 0 0 0 rgba(46,255,77,0.0);
}

.kpi-card.highlight:hover {
  box-shadow: 0 0 0 2px rgba(46,255,77,0.35),
              0 20px 40px rgba(0,0,0,0.5);
}

/* Badge hover */
.badges span {
  transition: background 0.3s ease, transform 0.3s ease;
}

.badges span:hover {
  background: rgba(46,255,77,0.15);
  transform: translateY(-2px);
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.card h3 {
  transition: transform 0.3s ease;
}

.card:hover h3 {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }

