/* guard.blu one-pager — brand tokens from docs/specs/brand.md */

@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Codec Pro";
  src: url("../fonts/CodecPro-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-navy: #002C59;
  --brand-teal: #00A1AE;

  --bg-page: #00234A;
  --bg-panel: #002C59;
  --bg-raised: #0A3866;
  --bg-deep: #001B3A;
  --border: #14437A;
  --border-soft: rgba(20, 67, 122, 0.45);
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);

  --accent: #00A1AE;
  --accent-hover: #00B5C3;
  --accent-tint: rgba(0, 161, 174, 0.14);

  --ok: #3DBE8B;
  --danger: #F0655A;

  --font: "Codec Pro", system-ui, "Segoe UI", sans-serif;
  --radius: 14px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

/* ---------- typography ---------- */

h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
}

h3 { font-weight: 700; font-size: 1.15rem; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 161, 174, 0.35);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-raised);
  border-color: var(--accent);
  box-shadow: none;
}
.btn-small { padding: 10px 22px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 27, 58, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.header-logo { height: 34px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.header-nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 22px 0 34px;
  max-width: 34em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* decorative tonal circles */
.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-circles span {
  position: absolute;
  top: 50%;
  left: 78%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(20, 67, 122, 0.55);
  border-radius: 50%;
}
.hero-circles span:nth-child(1) { width: 480px; height: 480px; }
.hero-circles span:nth-child(2) { width: 720px; height: 720px; border-color: rgba(20, 67, 122, 0.4); }
.hero-circles span:nth-child(3) { width: 980px; height: 980px; border-color: rgba(20, 67, 122, 0.28); }
.hero-circles span:nth-child(4) { width: 1280px; height: 1280px; border-color: rgba(20, 67, 122, 0.18); }

/* ---------- hero visual: video / radar fallback ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
#hero-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.scanner {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(10, 56, 102, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #001B3A 0%, #00234A 60%, #001B3A 100%);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* glossy floor hint */
.scan-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 161, 174, 0.07) 100%);
  border-top: 1px solid rgba(20, 67, 122, 0.5);
}

/* guard.blu shield projecting the beam */
.scan-shield {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 12%;
  transform: translateX(-50%);
  z-index: 6;
  filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55));
  animation: shield-watch 15s linear infinite;
}
/* red glints are timed to the moments the junk cards hit the beam
   (card cycle 15s, reject flash at 42% of the card timeline, delays -3.5s / -10.5s) */
@keyframes shield-watch {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55)); }
  17% { filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55)); }
  19% { filter: drop-shadow(0 0 18px rgba(240, 101, 90, 0.95)); }
  22% { filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55)); }
  70% { filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55)); }
  72% { filter: drop-shadow(0 0 18px rgba(240, 101, 90, 0.95)); }
  75% { filter: drop-shadow(0 0 10px rgba(0, 161, 174, 0.55)); }
}

/* vertical scanning beam */
.scan-beam {
  position: absolute;
  top: 17%;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(0, 161, 174, 0.6) 45%,
    rgba(0, 161, 174, 0.14) 100%
  );
  box-shadow:
    0 0 14px rgba(0, 161, 174, 0.8),
    0 0 44px rgba(0, 161, 174, 0.45);
  animation: beam-pulse 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes beam-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* ---------- website cards ---------- */

.scard {
  position: absolute;
  top: var(--top);
  left: -24%;
  width: 26%;
  line-height: 0;
  animation: card-pass 15s linear infinite;
  animation-delay: var(--d);
}
.scard img {
  width: 100%;
  height: auto;
  display: block;
}
.lane-back { transform: scale(0.66); opacity: 0.55; z-index: 1; }
.lane-front { z-index: 4; }
.scard.junk { animation-name: card-reject; }

/* clean sites: enter left, flash teal at the beam, exit right */
@keyframes card-pass {
  0% { left: -24%; opacity: 0; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  4% { opacity: 1; }
  42% { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  48% { filter: drop-shadow(0 0 16px rgba(0, 161, 174, 0.95)); }
  56% { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  94% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

/* junk sites: reach the beam, get flagged red, bounce back and fall */
@keyframes card-reject {
  0% { left: -24%; top: var(--top); opacity: 0; transform: rotate(0deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  4% { opacity: 1; }
  38% { left: 24%; top: var(--top); transform: rotate(0deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  42% { left: 25%; filter: drop-shadow(0 0 20px rgba(240, 101, 90, 0.95)); }
  47% { left: 21.5%; top: var(--top); transform: rotate(-6deg); }
  62% { left: 23%; top: 118%; transform: rotate(26deg); opacity: 0.9; filter: drop-shadow(0 0 12px rgba(240, 101, 90, 0.5)); }
  63% { opacity: 0; }
  100% { left: 23%; top: 118%; opacity: 0; }
}

/* junk cards in the back lane keep their scale while falling */
.lane-back.junk { animation-name: card-reject-back; }
@keyframes card-reject-back {
  0% { left: -24%; top: var(--top); opacity: 0; transform: scale(0.66) rotate(0deg); }
  4% { opacity: 0.55; }
  38% { left: 24%; top: var(--top); transform: scale(0.66) rotate(0deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  42% { left: 25%; filter: drop-shadow(0 0 20px rgba(240, 101, 90, 0.9)); }
  47% { left: 21.5%; top: var(--top); transform: scale(0.66) rotate(-6deg); }
  62% { left: 23%; top: 118%; transform: scale(0.66) rotate(26deg); opacity: 0.5; }
  63% { opacity: 0; }
  100% { left: 23%; top: 118%; opacity: 0; }
}
/* clean cards in the back lane likewise */
.lane-back.good { animation-name: card-pass-back; }
@keyframes card-pass-back {
  0% { left: -24%; opacity: 0; transform: scale(0.66); }
  4% { opacity: 0.55; }
  42% { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  48% { filter: drop-shadow(0 0 14px rgba(0, 161, 174, 0.8)); }
  56% { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
  94% { opacity: 0.55; }
  100% { left: 104%; opacity: 0; transform: scale(0.66); }
}

@media (prefers-reduced-motion: reduce) {
  .scan-beam, .scan-shield { animation: none; }
  .scard { animation: none; opacity: 1; }
  .lane-back { opacity: 0.55; }
  /* static tableau: junk stopped at the beam, clean sites already through
     (cards are the 3rd–7th div children of .scanner, after beam and floor) */
  .scanner .scard:nth-of-type(3) { left: 66%; }
  .scanner .scard:nth-of-type(4) { left: 36%; transform: rotate(-6deg); }
  .scanner .scard:nth-of-type(5) { left: 74%; }
  .scanner .scard:nth-of-type(6) { left: 8%; }
  .scanner .scard:nth-of-type(7) { left: 14%; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-deep); }
.section-head { margin-bottom: 52px; max-width: 40em; }

/* ---------- problém ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.problem-copy p + p { margin-top: 18px; }
.problem-copy { color: var(--text-secondary); font-size: 1.06rem; }
.problem-copy strong { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
}
.stat-num {
  display: block;
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.stat-num.big { font-size: 3.6rem; }
.stat-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.stat-src {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- benefity ---------- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-wide { grid-column: span 2; }
.benefit-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.benefit-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- pipeline ---------- */

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.pipeline-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.pipeline-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pipeline-step p { color: var(--text-secondary); font-size: 0.93rem; }

.signals { margin-top: 56px; text-align: center; }
.signals h3 { margin-bottom: 22px; }
.signal-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.signal-chips li {
  background: var(--accent-tint);
  border: 1px solid rgba(0, 161, 174, 0.4);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.92rem;
}

/* ---------- výsledky ---------- */

.section-results {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.circles-soft span {
  left: 12% !important;
  top: 110% !important;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.result-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
}
.result-card p { color: var(--text-secondary); margin-top: 8px; }
.results-note {
  position: relative;
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 46em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p { color: var(--text-secondary); margin-top: 18px; font-size: 1.05rem; }
.contact-copy strong { color: var(--text); }
.contact-points {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.contact-points li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-row .optional { color: var(--text-muted); font-weight: 400; }
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-row textarea { resize: vertical; }
.form-row input.invalid { border-color: var(--danger); }

/* honeypot: visually removed, still in DOM for bots */
.form-row.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-bottom: 18px; }

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.form-consent {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 28px; width: auto; }
.footer-by {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-roiblu { height: 18px; width: auto; }
.footer-note {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 80px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step:not(:last-child)::after { display: none; }
  .results-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .header-nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-wide { grid-column: auto; }
  .pipeline { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .section { padding: 72px 0; }
}
