/* ============================================================
   Tender Radar — landing (index.html)
   Světlý layout se signaturovými tmavými Deep Navy pásy.
   ============================================================ */

/* ===== Navigace ===== */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--mist) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.site-nav.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--mist) 92%, transparent); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--slate); font-weight: 500; font-size: .96rem; transition: color .18s; }
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .28s var(--e-out), opacity .2s; }

/* ===== HERO (Deep Navy pás) ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 82% 8%, var(--navy-2) 0%, var(--navy) 42%, var(--navy-ink) 100%);
  color: var(--d-ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-a { width: 520px; height: 520px; right: -6%; top: -14%; background: radial-gradient(circle, #18B6F6, transparent 66%); }
.blob-b { width: 460px; height: 460px; right: 18%; top: 30%; background: radial-gradient(circle, #6A3FF5, transparent 66%); opacity: .42; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(52px, 8vh, 96px) 24px clamp(56px, 8vh, 92px);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--d-ink-2);
  margin-bottom: 22px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 4px rgba(24,182,246,.18); flex: none; }
.hero-title { color: #fff; margin-bottom: 22px; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hero-title .line { display: block; }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--d-ink-2); max-width: 40ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; }

.hero-visual { display: flex; justify-content: center; }
.mascot-orb { position: relative; width: min(440px, 92%); display: grid; place-items: center; }
.mascot-orb::before {
  content: ""; position: absolute; inset: 4% 6%; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: .55; z-index: -1;
}
.mascot-orb img { width: 100%; height: auto; filter: drop-shadow(0 26px 60px rgba(106,63,245,.42)); }

/* ===== Metriky ===== */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: clamp(28px, 4vh, 44px); }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 2px solid var(--line-2); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: .9rem; color: var(--slate); line-height: 1.35; }

/* ===== Sekce ===== */
.section { padding: clamp(64px, 10vh, 116px) 0; }
.section-soft { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: clamp(38px, 5vh, 60px); }
.section-head h2 { margin-bottom: 14px; }
.eyebrow { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--blue-ink); margin-bottom: 14px; }
.section-lead { font-size: 1.12rem; color: var(--slate); max-width: 60ch; }

/* ===== Pipeline flow ===== */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.flow-step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .26s var(--e-out), border-color .26s, box-shadow .26s;
}
.flow-step:hover { transform: translateY(-4px); border-color: rgba(61,123,255,.34); box-shadow: var(--shadow-md); }
/* konektor mezi kroky */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -8px; width: 16px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent); z-index: 3;
}
.flow-num { font-family: var(--font-mono); font-size: .8rem; color: var(--slate-soft); font-weight: 500; }
.flow-ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 12px 0 14px;
  border-radius: var(--r-md); background: var(--grad-soft); color: var(--blue-ink); border: 1px solid var(--line);
}
.flow-ico svg { width: 22px; height: 22px; }
.flow-step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.flow-step p { font-size: .92rem; color: var(--slate); }

/* ===== Bento ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-rows: 1fr; }
.b-cell {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .26s var(--e-out), border-color .26s, box-shadow .26s;
}
.b-cell:hover { transform: translateY(-4px); border-color: rgba(61,123,255,.30); box-shadow: var(--shadow-md); }
.b-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--blue-ink); background: var(--rel-mid-bg); padding: 4px 10px; border-radius: var(--pill); margin-bottom: 14px;
}
.b-cell h3 { margin-bottom: 10px; }
.b-cell p { color: var(--slate); font-size: .96rem; }
.b-feature { grid-column: span 2; grid-row: span 2; }
.b-feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.b-feature p { font-size: 1.05rem; max-width: 48ch; }
.b-tinted { background: linear-gradient(165deg, rgba(24,182,246,.08), rgba(106,63,245,.05)); border-color: rgba(61,123,255,.2); }
.b-accent {
  color: #fff; border: 0;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(106,63,245,.5), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(24,182,246,.5), transparent 58%),
    var(--navy);
}
.b-accent .b-tag { color: #fff; background: rgba(255,255,255,.16); }
.b-accent h3 { color: #fff; }
.b-accent p { color: rgba(255,255,255,.86); }
/* mini skóre vizual v feature buňce */
.b-scoremini { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; max-width: 320px; }
.sm-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; }
.sm-row b { font-family: var(--font-mono); font-size: .9rem; color: #fff; text-align: right; }
.sm-row i { height: 8px; border-radius: var(--pill); background: rgba(255,255,255,.16); position: relative; overflow: hidden; }
.sm-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--azure), var(--violet)); }

/* ===== Živý náhled ===== */
.preview-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.preview-head h2 { margin-bottom: 10px; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pv-card {
  display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .24s var(--e-out), border-color .24s, box-shadow .24s;
}
.pv-card:hover { transform: translateY(-4px); border-color: rgba(24,182,246,.4); box-shadow: var(--shadow-md); }
.pv-score {
  width: 58px; height: 58px; border-radius: var(--r-md); display: grid; place-items: center;
  font-weight: 700; border: 1px solid var(--line);
}
.pv-score .mono { font-size: 1.32rem; }
.pv-score[data-band="high"] { background: var(--rel-high-bg); color: var(--rel-high-ink); border-color: rgba(24,182,246,.3); }
.pv-score[data-band="mid"]  { background: var(--rel-mid-bg);  color: var(--rel-mid-ink);  border-color: rgba(61,123,255,.3); }
.pv-score[data-band="low"]  { background: var(--rel-low-bg);  color: var(--rel-low-ink);  border-color: rgba(124,136,180,.3); }
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; }
.pv-deadline { font-size: .74rem; font-weight: 600; color: var(--slate); }
.pv-deadline.warn { color: var(--warn-ink); }
.pv-body h3 { font-size: 1.02rem; line-height: 1.25; margin-bottom: 8px; }
.pv-buyer { font-size: .86rem; color: var(--slate); margin-bottom: 8px; }
.pv-reason { font-size: .88rem; color: var(--slate); line-height: 1.5; }

/* ===== Coverage ===== */
.coverage { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.coverage-intro h2 { margin-bottom: 18px; }
.coverage-intro p { color: var(--slate); font-size: 1.08rem; margin-bottom: 14px; max-width: 46ch; }
.coverage-note { color: var(--navy); font-weight: 500; }
.source-list { list-style: none; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-sm); }
.source-list li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--r-sm); transition: background-color .18s; }
.source-list li:hover { background: var(--mist); }
.source-list .flag { font-size: .82rem; }
.source-list b { font-family: var(--font-display); font-weight: 600; color: var(--navy); display: block; font-size: 1rem; }
.source-list span:last-child { font-size: .88rem; color: var(--slate); }

/* ===== CTA band ===== */
.cta-band { background: var(--grad); }
.cta-inner { text-align: center; padding: clamp(60px, 9vh, 104px) 24px; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.92); max-width: 52ch; margin: 0 auto 30px; font-size: 1.14rem; }

/* ===== Patička ===== */
.site-footer { background: var(--navy-ink); color: var(--d-ink-2); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding: clamp(48px, 7vh, 72px) 24px 40px; }
.footer-brand p { margin-top: 14px; color: var(--d-ink-3); font-size: .92rem; max-width: 40ch; }
.footer-nav { display: grid; gap: 11px; align-content: start; }
.footer-nav a { color: var(--d-ink-2); font-size: .95rem; }
.footer-nav a:hover { color: var(--azure); }
.footer-legal p { color: var(--d-ink-3); font-size: .88rem; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--d-line); padding: 20px 0; }
.footer-bottom p { color: var(--d-ink-3); font-size: .82rem; }

/* ===== Motion: hero entrance (jen .anim) ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes lineUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

  html.anim .hero-title .line { display: block; opacity: 0; animation: lineUp .9s var(--e-out) forwards; }
  html.anim .hero-title .line:nth-child(1) { animation-delay: .08s; }
  html.anim .hero-title .line:nth-child(2) { animation-delay: .18s; }
  html.anim .kicker, html.anim .hero-sub, html.anim .hero-cta, html.anim .hero-visual { opacity: 0; animation: fadeUp .85s var(--e-out) forwards; }
  html.anim .kicker { animation-delay: 0s; }
  html.anim .hero-sub { animation-delay: .28s; }
  html.anim .hero-cta { animation-delay: .36s; }
  html.anim .hero-visual { animation-delay: .2s; }
  html.anim .mascot-orb { animation: floaty 7s ease-in-out infinite; }
}

/* ===== Responsivita ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .mascot-orb { width: min(320px, 74%); }
  .hero-sub { max-width: 52ch; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step:last-child { grid-column: span 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-feature { grid-column: span 2; grid-row: span 1; }
  .preview-cards { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links ul {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s var(--e-out), visibility .3s; box-shadow: var(--shadow-md);
  }
  .nav-links ul.open { max-height: 340px; visibility: visible; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links li a:not(.btn) { display: block; padding: 15px 24px; }
  .nav-links .btn { margin: 14px 24px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step:last-child { grid-column: span 1; }
  .bento { grid-template-columns: 1fr; }
  .b-feature { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .preview-head { flex-direction: column; align-items: flex-start; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html.anim .mascot-orb { animation: none; }
}
