/* ==========================================================================
   kamerio.cz — chytré kamerové systémy s AI detekcí
   Paleta: noční modročerná + cyan "AI sken" + amber "alert"
   Display: Space Grotesk · Body: Inter · Mono: Space Mono (detekční data)
   ========================================================================== */

:root {
  --night:    #0B1220;   /* hluboká noc — hero, footer */
  --night-2:  #111B2E;   /* karty na tmavém */
  --ink:      #0E1626;   /* text na světlém */
  --paper:    #F6F8FB;   /* světlé sekce */
  --paper-2:  #FFFFFF;
  --line:     #E2E8F2;   /* hairline na světlém */
  --line-d:   #23304A;   /* hairline na tmavém */
  --muted:    #5C6B86;   /* sekundární text světlý */
  --muted-d:  #8FA3C4;   /* sekundární text tmavý */
  --scan:     #22D3EE;   /* cyan — AI sken / detekce */
  --scan-d:   #0E7490;   /* tmavší cyan */
  --alert:    #F59E0B;   /* amber — alert / důležité */

  --r:    14px;
  --r-sm: 9px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --d-display: "Space Grotesk", system-ui, sans-serif;
  --d-body:    "Inter", system-ui, -apple-system, sans-serif;
  --d-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--d-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--d-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--d-mono); }
.eyebrow {
  font-family: var(--d-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--scan-d);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--scan-d); display: inline-block; }
.on-dark .eyebrow { color: var(--scan); }
.on-dark .eyebrow::before { background: var(--scan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--d-display); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
  min-height: 48px;
}
.btn-primary { background: var(--scan); color: var(--night); box-shadow: 0 6px 22px -8px rgba(34,211,238,.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(34,211,238,.7); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-d); }
.btn-ghost:hover { border-color: var(--scan); color: var(--scan); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--d-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--scan); box-shadow: 0 0 0 4px rgba(34,211,238,.22); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 4px rgba(34,211,238,.22);} 50%{ box-shadow:0 0 0 7px rgba(34,211,238,.05);} }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted-d); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav .lang { font-family: var(--d-mono); font-size: 13px; color: var(--scan); }
.nav-cta { color: var(--night) !important; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 2px; background: #fff; transition: .25s; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 100% at 80% -10%, #16243d 0%, var(--night) 55%); color: #fff; overflow: hidden; position: relative; }
.hero::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 52px 52px; opacity:.16; mask-image: radial-gradient(70% 70% at 70% 20%, #000 0%, transparent 75%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 74px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 20px 0 0; }
.hero h1 .hl { color: var(--scan); }
.hero .lead { color: var(--muted-d); font-size: 19px; margin: 22px 0 32px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-meta div { font-family: var(--d-mono); font-size: 13px; color: var(--muted-d); }
.hero-meta b { display: block; font-family: var(--d-display); font-size: 26px; color: #fff; letter-spacing: -.02em; }

/* ---------- Detection viewport (signature) ---------- */
.viewport { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-d); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); aspect-ratio: 4/3.2; background: #0a0f1a; }
.viewport img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.viewport .hud { position: absolute; inset: 0; }
.scanline { position: absolute; left:0; right:0; height: 2px; background: linear-gradient(90deg, transparent, var(--scan), transparent); box-shadow: 0 0 14px var(--scan); animation: scan 4.2s var(--ease) infinite; opacity:.9; }
@keyframes scan { 0%{ top: 4%; } 50%{ top: 94%; } 100%{ top: 4%; } }
.bbox { position: absolute; border: 1.5px solid var(--scan); border-radius: 3px; opacity: 0; animation: appear .5s var(--ease) forwards; }
.bbox.amber { border-color: var(--alert); }
.bbox .tag { position: absolute; top: -22px; left: -1.5px; font-family: var(--d-mono); font-size: 11px; font-weight: 700; padding: 2px 7px; background: var(--scan); color: var(--night); border-radius: 3px 3px 3px 0; white-space: nowrap; }
.bbox.amber .tag { background: var(--alert); }
.bbox.b1 { left: 43%; top: 13%; width: 16%; height: 84%; animation-delay: .5s; }   /* osoba uprostřed */
.bbox.b2 { left: 1%;  top: 46%; width: 31%; height: 44%; animation-delay: 1.1s; }  /* auto vlevo */
.bbox.b3 { left: 32%; top: 70%; width: 14%; height: 10%; animation-delay: 1.7s; }  /* SPZ přední maska */
@keyframes appear { from{ opacity:0; transform: scale(.96);} to{ opacity:1; transform: scale(1);} }
.viewport .corner { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; font-family:var(--d-mono); font-size:11px; color:var(--scan); letter-spacing:.05em; }
.viewport .rec { display:flex; align-items:center; gap:6px; color:var(--alert); }
.viewport .rec::before{ content:""; width:8px;height:8px;border-radius:50%;background:var(--alert); animation:pulse 1.4s infinite; }

/* ---------- Trustbar ---------- */
.trustbar { background: var(--night-2); border-bottom: 1px solid var(--line-d); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; padding: 18px 24px; }
.trustbar span { font-family: var(--d-mono); font-size: 13px; color: var(--muted-d); display: inline-flex; align-items: center; gap: 9px; }
.trustbar span::before { content: "✓"; color: var(--scan); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 14px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.on-dark { background: var(--night); color: #fff; }
.on-dark .sec-head p { color: var(--muted-d); }

/* ---------- Detekce grid ---------- */
.detgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.detcard:hover { transform: translateY(-4px); border-color: var(--scan); box-shadow: 0 18px 40px -22px rgba(14,116,144,.45); }
.detcard .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #ECFEFF, #CFFAFE); color: var(--scan-d); margin-bottom: 18px; }
.detcard h3 { font-size: 20px; margin-bottom: 8px; }
.detcard p { color: var(--muted); font-size: 15.5px; }
.detcard .label { font-family: var(--d-mono); font-size: 11.5px; color: var(--scan-d); margin-top: 14px; display: block; letter-spacing: .04em; }
.detcard .more { display: inline-block; margin-top: 14px; font-family: var(--d-display); font-weight: 600; font-size: 14px; color: var(--scan-d); transition: gap .15s; }
.detcard .more:hover { color: var(--ink); }

/* ---------- Jak to funguje ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 28px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--d-mono); font-size: 13px; color: var(--scan); border-top: 2px solid var(--scan); padding-top: 12px; display: inline-block; }
.step h3 { font-size: 21px; margin: 14px 0 9px; }
.step p { color: var(--muted-d); font-size: 15.5px; }

/* ---------- Pro koho ---------- */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.uc { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line); }
.uc img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.uc:hover img { transform: scale(1.06); }
.uc .cap { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgba(11,18,32,.92)); color: #fff; }
.uc .cap b { font-family: var(--d-display); font-size: 18px; display: block; }
.uc .cap span { font-family: var(--d-mono); font-size: 12px; color: var(--scan); }

/* ---------- Proč my ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.whycard { display: flex; gap: 18px; padding: 26px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.whycard .n { font-family: var(--d-mono); font-size: 14px; color: var(--scan-d); flex-shrink: 0; }
.whycard h3 { font-size: 19px; margin-bottom: 7px; }
.whycard p { color: var(--muted); font-size: 15.5px; }

/* ---------- Kontakt / formulář ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact .info h2 { font-size: clamp(28px,3.4vw,40px); margin: 14px 0; }
.contact .info p { color: var(--muted-d); margin-bottom: 26px; }
.contact .info .line { display: flex; align-items: center; gap: 12px; font-family: var(--d-mono); font-size: 15px; color: #fff; margin-bottom: 12px; }
.contact .info .line span { color: var(--scan); }
form { background: var(--paper-2); border-radius: var(--r); padding: 30px; border: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--d-body); font-size: 16px; color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--scan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-msg { display: none; padding: 14px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 16px; }
.form-msg.ok { display: block; background: #ECFEFF; color: var(--scan-d); border: 1px solid #A5F3FC; }
.form-msg.err { display: block; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--muted-d); border-top: 1px solid var(--line-d); padding: 56px 0 30px; }
.site-foot .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-foot .brand { margin-bottom: 14px; }
.site-foot p { font-size: 14.5px; max-width: 30em; }
.site-foot h4 { font-family: var(--d-display); color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { font-size: 14.5px; transition: color .15s; }
.site-foot a:hover { color: var(--scan); }
.foot-btm { border-top: 1px solid var(--line-d); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--d-mono); font-size: 12.5px; }

/* ---------- Ceník ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; display: flex; flex-direction: column; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(14,116,144,.35); }
.plan.featured { border-color: var(--scan); box-shadow: 0 0 0 1px var(--scan); }
.plan .tier { font-family: var(--d-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--scan-d); }
.plan h3 { font-size: 23px; margin: 10px 0 4px; }
.plan .price { font-family: var(--d-display); font-size: 19px; color: var(--ink); margin: 14px 0; }
.plan .price b { font-size: 34px; }
.plan .price span { color: var(--muted); font-size: 14px; font-weight: 400; }
.plan ul { list-style: none; margin: 8px 0 22px; flex: 1; }
.plan li { font-size: 15px; color: var(--muted); padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--scan-d); font-weight: 700; }
.plan .badge { display: inline-block; font-family: var(--d-mono); font-size: 11px; background: var(--scan); color: var(--night); padding: 3px 9px; border-radius: 20px; margin-bottom: 6px; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- Podstránky (article) ---------- */
.subhero { background: radial-gradient(120% 100% at 80% -20%, #16243d 0%, var(--night) 60%); color: #fff; padding: 56px 0 60px; border-bottom: 1px solid var(--line-d); }
.crumb { font-family: var(--d-mono); font-size: 13px; color: var(--muted-d); margin-bottom: 18px; }
.crumb a { color: var(--scan); }
.subhero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 16em; }
.subhero p { color: var(--muted-d); font-size: 19px; margin-top: 18px; max-width: 38em; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 16px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { color: #34415C; margin-bottom: 16px; font-size: 17px; }
.prose ul.bullets { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose ul.bullets li { position: relative; padding: 8px 0 8px 30px; color: #34415C; border-bottom: 1px solid var(--line); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 9px; height: 9px; background: var(--scan); border-radius: 2px; }
.faq { border-top: 1px solid var(--line); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { font-family: var(--d-display); font-weight: 600; font-size: 18px; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--d-mono); color: var(--scan-d); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 16px; }
.cta-band { background: var(--night-2); border: 1px solid var(--line-d); border-radius: var(--r); padding: 36px; margin-top: 46px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--d-display); color: #fff; font-size: 24px; }
.cta-band p { color: var(--muted-d); font-size: 15px; margin-top: 6px; }
.related { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.related a { font-family: var(--d-mono); font-size: 13px; color: var(--scan-d); border: 1px solid var(--line); padding: 8px 14px; border-radius: 20px; transition: border-color .15s, color .15s; }
.related a:hover { border-color: var(--scan); color: var(--scan-d); }

/* ---------- Reveal (JS-gated: bez JS je obsah plně viditelný) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 60px; }
  .viewport { aspect-ratio: 4/3; }
  .detgrid, .steps { grid-template-columns: 1fr 1fr; }
  .usecases { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .why, .contact { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--night); padding: 20px 24px; border-bottom: 1px solid var(--line-d); gap: 18px; align-items: flex-start; }
  .nav.open { display: flex; }
  .burger { display: flex; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .detgrid, .steps, .usecases { grid-template-columns: 1fr; }
  .field.two { grid-template-columns: 1fr; }
  .site-foot .grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
}
