:root {
  --bg: #0b0f19;
  --panel: #11182a;
  --panel2: #0f1424;
  --text: #e8edf7;
  --muted: #aab4c5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #6ae4ff;
  --accent2: #7c5cff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 0%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(106, 228, 255, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 25, 0.55);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(106, 228, 255, 0.18), rgba(124, 92, 255, 0.18));
  border: 1px solid var(--line);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 800;
}
.brand-tagline {
  color: var(--muted);
  font-size: 13px;
  margin-top: -2px;
}

/* Nav */
.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav a:hover {
  border-color: var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

/* Hero */
.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 70ch;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  transition: transform 0.08s ease, background 0.12s ease;
  font-weight: 650;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(106, 228, 255, 0.16), rgba(124, 92, 255, 0.18));
  border-color: rgba(106, 228, 255, 0.28);
}

.btn.small {
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 650;
}

.hero-bullets {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 18px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card-title {
  font-weight: 850;
  font-size: 22px;
  margin-top: 10px;
}
.hero-card-subtitle {
  color: var(--muted);
  margin-top: 2px;
}

.hero-card-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0 6px;
}

.metric {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.metric-value {
  font-weight: 700;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
}

.muted {
  color: var(--muted);
}


/* Cards */

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch; /* důležité: karty se natáhnou na stejnou výšku */
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;

  display: flex;            /* NOVĚ */
  flex-direction: column;   /* NOVĚ */
  height: 100%;             /* NOVĚ */
}

.card-footer {
  margin-top: auto;         /* NOVĚ: pošle footer dolů */
  padding-top: 14px;        /* NOVĚ: odstup od obsahu */
  border-top: 1px solid var(--line); /* NOVĚ: vizuální oddělení */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/*
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
*/
/*
.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}
*/
.card h3 {
  margin: 2px 0 8px;
}
/*
.card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
*/

.price {
  color: var(--text);
  font-weight: 800;
}

.card.featured {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(106, 228, 255, 0.08));
  border-color: rgba(124, 92, 255, 0.25);
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  margin-bottom: 8px;
}

/* Typography lists */
.list {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.check {
  padding-left: 18px;
  margin: 10px 0 0;
}

.check li {
  margin: 6px 0;
}
.check li::marker {
  content: "✓  ";
  color: var(--accent);
}

/* Two column (used in Kontakt) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch; /* Sjednocení výšky v kontaktu */
}

.box {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.box .btn{ align-self: flex-start; }

.box h3 {
  margin-top: 0;
}
.box h4 {
  margin: 14px 0 6px;
  font-size: 16px;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted);
  font-size: 13px;
}

.sep {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.note {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.10);
}

/* Timeline */
/* Timeline – vyladěná verze (milníky uvnitř karet + story jako karta) */

.timeline{
  display: grid;
  gap: 14px;
}

/* ===== STORY (PŘÍBĚH) ===== */
.story-card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.story-marker{
  width: 42px;
  height: 4px;
  margin: 2px 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.85;
}

.story-card h3{
  margin: 10px 0 10px;
}

.story-card p{
  margin: 0 0 12px;
}

.story-card p:last-child{
  margin-bottom: 0;
}

/* ===== MILESTONES (OSOVÁ KARTA) ===== */
.tl-item--milestone{
  display: block;
  position: relative;
}

.tl-content--milestone{
  position: relative;
  padding: 16px 16px 16px 54px; /* místo pro tečku + linku */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.tl-item--milestone:not(:last-child) .tl-content--milestone::after{
  content:"";
  position: absolute;
  left: 26px;
  top: 38px;
  bottom: -14px; /* optické napojení na další kartu */
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.tl-content--milestone .tl-dot{
  position: absolute;
  left: 20px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent2));
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.14),
    0 8px 18px rgba(0,0,0,0.35);
}

.tl-body .tl-date{
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 4px;
}

.tl-body h3{
  margin: 6px 0 6px;
}

.tl-body p{
  margin: 0;
}



/* Contact */
.contact-line {
  margin: 8px 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.18);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--text);
}

/* Anchor offset due to sticky header */
section {
  scroll-margin-top: 90px;
}

/* --- Accessibility helper --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(232, 237, 247, 0.85);
  border-radius: 99px;
}

/* --------------------------------------------------
   Produkt: SLOUČENÍ VÝŠEK BOXŮ (Upraveno)
-------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch; /* Důležité: natáhne boxy na stejnou výšku */
}

.feature-grid .box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Zarovnáme nadpisy h3 v gridu, aby začínaly stejně vysoko i při různém počtu řádků */
.feature-grid .box h3 {
    margin-bottom: 12px;
}

.feature-grid .box p, 
.feature-grid .box ul {
  margin-top: 0;
}

.feature-row {
  position: relative;
  padding-bottom: 24px;
}

.feature-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}


/* desktop: ponechat, aby držel layout */
.box--empty{ visibility: hidden; }

.story-marker {
  width: 42px;
  height: 4px;
  margin: 14px 0 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent2)
  );
  opacity: 0.85;
}
/* =========================
   HISTORIE – PŘÍBĚH (karta, ne timeline bod)
========================= */

/* Příběh nebude mít levý timeline sloupec */
.tl-item--story{
  grid-template-columns: 1fr;
  gap: 0;
}

/* Příběhová karta – víc prostoru + jemně „premium“ pozadí */
.story-card{
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

/* Marker uvnitř karty – hezčí rozestupy */
.tl-item--story .story-marker{
  margin: 2px 0 14px;
}

/* Typografie příběhu – ať to není „zeď textu“ */
.story-card h3{
  margin: 0 0 10px;
}

.story-card p{
  margin: 0 0 12px;
  max-width: none;   /* zruší omezení šířky textu */
}

}

.story-card p:last-child{
  margin-bottom: 0;
}




/* Responsivita */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .story-card{
    padding: 16px 16px;
  }
  
  .box--empty{ display:none; }
   
  .grid.cards {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    min-width: unset;
  }

  .header-row {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 6px;
  }
  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
  }

  .hero {
    padding: 40px 0 18px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card,
  .box,
  .hero-card,
  .tl-content {
    padding: 14px;
  }
}

/* Extra small phones */
@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
  .btn {
    width: 100%;
  }
}