/* ============================================================
   clouduj.cz — web v2.1 (2026)
   Moderní, nadčasová identita: tmavý aurora hero, Space Grotesk,
   příběhy lidí v karuselu, reálná loga produktů.
   ============================================================ */

:root {
  --primary: #0284c7;
  --primary-dark: #075985;
  --accent: #38bdf8;
  --indigo: #6366f1;
  --grad: linear-gradient(110deg, #38bdf8, #2563eb);
  --grad-text: linear-gradient(100deg, #7dd3fc, #818cf8);
  --warm: #fbbf24;
  --navy: #081c30;
  --navy-2: #0b2740;
  --ink: #0f2a3d;
  --ink-soft: #46627a;
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --border: #dcebf5;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(7, 89, 133, 0.08);
  --shadow-lift: 0 18px 40px rgba(7, 89, 133, 0.16);
  --maxw: 1320px;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin-bottom: 1rem; }
a { color: var(--primary); }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 48em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.4rem; text-decoration: none;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.logo-icon { display: block; transition: transform 0.3s ease; }
.logo:hover .logo-icon { transform: translateY(-2px) rotate(-4deg); }
.logo span.tld { color: var(--accent); }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta)[aria-current="page"]::after { width: 100%; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav a.nav-cta {
  background: var(--grad); color: #fff; padding: 9px 18px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--primary); cursor: pointer; }

/* ---------- Hero (tmavý, aurora) ---------- */
.hero {
  background: var(--navy);
  color: #d9ecf8;
  padding: 96px 0 84px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(56, 189, 248, 0.28), transparent 62%),
    radial-gradient(520px 380px at 12% 88%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(360px 280px at 55% 110%, rgba(14, 165, 233, 0.16), transparent 60%);
  animation: aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.12) rotate(2.5deg); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(125, 211, 252, 0.22) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 52%, #000 94%);
  mask-image: linear-gradient(100deg, transparent 52%, #000 94%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 17em; margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { color: #9fc3dd; margin-bottom: 2.2rem; }
.hero .claim { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.02em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* logo aplikace v hero produktové stránky */
.hero-applogo {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 16px; padding: 12px 22px;
  margin-bottom: 1.4rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.hero-applogo img { height: 48px; width: auto; display: block; }

/* skleněné mráčky */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hcloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  width: 150px; height: 46px; border-radius: 999px;
  animation: float 9s ease-in-out infinite alternate;
}
.hcloud::before {
  content: ""; position: absolute; left: 28px; top: -26px;
  width: 56px; height: 56px; border-radius: 50%; background: inherit;
}
.hcloud::after {
  content: ""; position: absolute; right: 26px; top: -16px;
  width: 40px; height: 40px; border-radius: 50%; background: inherit;
}
.hc1 { top: 24%; right: 7%; }
.hc2 { top: 62%; right: 20%; transform: scale(0.55); opacity: 0.7; animation-delay: -3.5s; animation-duration: 11s; }
.hc3 { top: 10%; right: 30%; transform: scale(0.38); opacity: 0.5; animation-delay: -6s; animation-duration: 13s; }

@keyframes float {
  from { translate: 0 0; }
  to   { translate: 0 -16px; }
}

/* ---------- Marquee pás ---------- */
.marquee {
  overflow: hidden; background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink-soft); white-space: nowrap; padding: 0 26px;
  display: flex; align-items: center; gap: 26px;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-family: var(--font-display);
  padding: 13px 28px; border-radius: 999px; font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.38); }
.btn-ghost { border: 2px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.hero .btn-ghost { border-color: rgba(125, 211, 252, 0.65); color: #bae6fd; }
.hero .btn-ghost:hover { background: rgba(125, 211, 252, 0.15); color: #fff; }

/* ---------- Sekce ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 48em; margin-bottom: 2.4rem; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.5rem; font-family: var(--font-display);
}
.section-head .kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #b9dff5; }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #c7d2fe);
  font-size: 1.6rem; margin-bottom: 14px;
}
.card .tool-logo {
  height: 48px; width: auto; max-width: 220px; object-fit: contain;
  align-self: flex-start; margin-bottom: 14px;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.card .card-link { font-weight: 700; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card .badge {
  align-self: flex-start; background: #e3f4e8; color: #19763a;
  font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Karusel příběhů ---------- */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 6px 20px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track .story { flex: 0 0 380px; scroll-snap-align: start; }
.car-btn {
  position: absolute; top: 40%; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  font-size: 1.5rem; line-height: 1; color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.car-btn:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.car-btn.prev { left: -16px; }
.car-btn.next { right: -16px; }

.story {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.story:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.story img { width: 100%; height: auto; display: block; }
.story-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.story .meta {
  font-family: var(--font-display);
  color: var(--primary); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem;
}
.story .quote {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; line-height: 1.45;
  margin-bottom: 0.9rem;
}
.story p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.story .card-link { font-weight: 700; text-decoration: none; }
.story .card-link:hover { text-decoration: underline; }

/* ---------- Split (daň z úspěchu) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow);
}
.split .visual svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 22px; margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.legend .l1 i { background: #cbd5e1; }
.legend .l2 i { background: var(--primary); }

/* ---------- Screenshot ---------- */
.shot {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}
.shot-frame {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 18px; box-shadow: var(--shadow);
}
.shot-frame figcaption { font-size: 0.85rem; color: var(--ink-soft); padding-top: 12px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 56em; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow-lift); }
.faq-item summary {
  cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700;
  font-family: var(--font-display); list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--primary);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Mýtus / skutečnost ---------- */
.myth {
  border-left: 4px solid var(--accent); padding: 18px 22px; margin-bottom: 22px;
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.myth:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.myth .m { color: #b3433e; font-weight: 700; }
.myth .f { color: #19763a; font-weight: 700; }
.myth p { margin-bottom: 0.4rem; }
.myth p:last-child { margin-bottom: 0; }

/* ---------- Checklist ---------- */
ul.checks { list-style: none; margin: 0 0 1rem; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
ul.checks li strong { color: var(--ink); }

/* ---------- Problém / řešení ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.panel.problem { border-top: 4px solid var(--warm); }
.panel.solution { border-top: 4px solid var(--accent); }
.panel h3 { margin-bottom: 0.8rem; }

/* ---------- CTA pás ---------- */
.cta-band {
  background: var(--navy);
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(500px 360px at 85% 30%, rgba(56, 189, 248, 0.25), transparent 62%),
    radial-gradient(420px 320px at 8% 90%, rgba(99, 102, 241, 0.22), transparent 62%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b7d8ec; max-width: 42em; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: #e3f4fd; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: #061523; color: #9db8ca; padding: 48px 0 32px; font-size: 0.9rem; }
.site-footer a { color: #cfe5f2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.7rem; font-family: var(--font-display); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-note { border-top: 1px solid #15314a; padding-top: 18px; font-size: 0.8rem; }

/* ---------- Scroll-reveal (assets/app.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hcloud, .logo-icon, .hero::before, .marquee-track { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivita ---------- */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .pair, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hc2, .hc3 { display: none; }
  .hc1 { top: 6%; right: -30px; transform: scale(0.6); opacity: 0.6; }
  .car-track .story { flex: 0 0 320px; }
  .car-btn.prev { left: -8px; }
  .car-btn.next { right: -8px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px; gap: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .car-track .story { flex: 0 0 86%; }
}
