/* Veredar web — noc, atrament, pečať. Jedna téma (tmavá), zámerne. */
:root {
  /* Noc, atrament, zlato: pečať kuriéra na tmavomodrom vosku (Tomáš: modrá + zlatá + čierna) */
  --bg: #070C18; --bg2: #0C1424; --panel: #111B2E; --ink: #EEF2FA; --muted: #93A0B8; --line: #1E2A44;
  --accent: #C9A24E; --accent-2: #A8842F; --cyan: #7FB4FF; --stamp: #7FB4FF; --gold: #F3DE9A;
  --display: "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif; --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; padding-inline: 20px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stamp); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 22px; font-weight: 700; margin: 10px 0 8px; }
h4 { font-family: var(--display); font-size: 17px; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }
.lead { font-size: 20px; color: var(--muted); max-width: 58ch; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--cyan); margin-bottom: 18px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #0A0F1D; padding: 10px 18px; border-radius: 10px; font-weight: 700; border: 1px solid var(--accent); }
.btn:hover { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--stamp); }
.btn.big { padding: 14px 24px; font-size: 17px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }

.top { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.top nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); font-weight: 600; }
.top nav a.btn { color: #0A0F1D; padding: 8px 14px; }

.hero { max-width: 1120px; margin: 30px auto 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-art > img { border-radius: 28px; box-shadow: 0 40px 100px -40px rgba(88,214,224,.35), 0 20px 60px -30px rgba(0,0,0,.8); border: 1px solid var(--line); }
.proof { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; color: var(--muted); }
.proof li::before { content: "▸ "; color: var(--accent); }

section { max-width: 1120px; margin: 96px auto 0; }
.pillars h2 { max-width: 30ch; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grid3 article { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 16px; }
.grid3 .n { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 800; }
.grid3 p { color: var(--muted); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.grid4 > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.grid4 p { color: var(--muted); font-size: 15px; margin: 0; }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.platforms img { border-radius: 24px; border: 1px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--ink); }

.modulo { background: linear-gradient(135deg, rgba(127,180,255,.08), rgba(201,162,78,.10)); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.modulo p { font-size: 18px; color: var(--muted); max-width: 70ch; margin: 0; }

.download { text-align: center; padding: 40px 0 10px; }
.download .lead { margin: 0 auto; }
.download .cta { justify-content: center; }

footer { max-width: 1120px; margin: 80px auto 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }

@media (max-width: 900px) {
  .hero, .platforms { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  section { margin-top: 64px; }
}
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 10px 9px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.on span:nth-child(1) { transform: translateY(9px) rotate(45deg); } .burger.on span:nth-child(2) { opacity: 0; } .burger.on span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 640px) {
  .grid4 { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .top nav a { padding: 10px 6px; font-size: 17px; }
  .top nav a.btn { justify-content: center; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Pečať v hero: zloží sa (zuby → telo → prstenec), potom nabehne kôň a nápis. Bez JS. */
.hero-seal { display: grid; justify-items: center; gap: 14px; }
.seal-stage { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.seal-anim { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)) drop-shadow(0 0 50px rgba(201,162,78,.18)); }
#horse-canvas { position: absolute; inset: -39.06%; width: 178.12%; height: 178.12%; pointer-events: none; transition: opacity 1.2s ease; }
.hero-seal { overflow: visible; }
#horse-canvas.done { opacity: .55; }
.seal-anim .tooth { transform-box: fill-box; transform-origin: center; animation: seal-pop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 45ms); }
.seal-anim #body, .seal-anim #edge > circle:first-child { transform-box: fill-box; transform-origin: center; animation: seal-pop .8s cubic-bezier(.2,1.2,.3,1) both; }
.seal-anim #body { animation-delay: .35s; }
.seal-anim #ring { stroke-dasharray: 100; stroke-dashoffset: 100; animation: seal-draw 1.2s ease-in-out 1s forwards; }
.seal-anim #horse { animation: seal-fade 1.4s ease 3.3s both; }
.seal-anim #ring2 { stroke-dasharray: 100; stroke-dashoffset: 100; animation: seal-draw 1.2s ease-in-out 1.2s forwards; }
.seal-anim #band { animation: seal-fade .8s ease .9s both; }
.seal-anim .seal-txt { animation: seal-fade .9s ease 2.2s both; }
.seal-caption { text-align: center; margin: 0; animation: seal-fade .9s ease 4s both; }
@keyframes seal-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
@keyframes seal-stamp { from { transform: scale(1.6); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes seal-fade { from { opacity: 0; } to { opacity: 1; } }
.seal-anim .seal-txt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .seal-anim *, .seal-caption { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; } }

.install { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px auto 0; max-width: 1120px; text-align: left; }
.install > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.install p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.install pre { margin: 6px 0; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; color: var(--ink); }
.install code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
@media (max-width: 900px) { .install { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .install { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 17px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
