/* Emzak · web vo výstavbe. Farby a písmo podľa prezentácie Emzaka. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/assets/fonts/jetbrains-mono-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #0b121a; --navy-900: #0f1a24; --navy-800: #14202c; --navy-700: #1c2c3b;
  --text: #eef4f8; --muted: #9fb1bd; --line: rgba(255, 255, 255, .1);
  --accent: #22b5ea; --accent-soft: #5fd0f7; --on-accent: #06212d; --sky: #dcf3fb; --helmet: #ffd85e;
  --radius: 18px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font: 17px/1.6 var(--font); color: var(--text); overflow-x: hidden;
       background: radial-gradient(1100px 700px at 80% -10%, #0e3a4e 0%, rgba(14, 58, 78, 0) 60%),
                   radial-gradient(900px 600px at -10% 110%, #102a3a 0%, rgba(16, 42, 58, 0) 60%), var(--navy-950); }
a { color: var(--accent-soft); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.label { font: 500 .8rem/1 var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px;
        border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* hlavička */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
         font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.badge-build { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
               border: 1px solid rgba(255, 216, 94, .35); background: rgba(255, 216, 94, .08); color: var(--helmet);
               font: 500 .8rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-build .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--helmet); box-shadow: 0 0 12px var(--helmet);
                    animation: pulse 1.6s ease-in-out infinite; }

/* jedna obrazovka: služba sa pripravuje */
body.one-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
@media (min-height: 620px) and (min-width: 700px) { body.one-screen { height: 100dvh; overflow: hidden; } }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
        padding-top: 24px; padding-bottom: 8px; }
.soon h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); margin: .25em 0 .3em; }
.soon .label { margin: 6px 0 0; }
.grad { background: linear-gradient(100deg, #5fd0f7 0%, #22b5ea 45%, #a8ecff 100%); -webkit-background-clip: text;
        background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s ease-in-out infinite; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: #c6d4dd; max-width: 640px; margin: 0 auto 30px; }
.lead strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions.centered { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 54px; padding: .8em 1.6em; border-radius: 999px;
       font: 700 1.05rem/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 34px rgba(34, 181, 234, .45); }
.btn-primary:hover { box-shadow: 0 14px 44px rgba(34, 181, 234, .65); }

/* Emzak */
.stage { position: relative; display: grid; place-items: center; height: clamp(200px, 42vh, 430px); aspect-ratio: 1; }
.glow { position: absolute; inset: 4%; border-radius: 50%; filter: blur(34px);
        background: radial-gradient(circle, rgba(34, 181, 234, .38), rgba(34, 181, 234, 0) 66%); animation: breathe 5s ease-in-out infinite; }
.mascot { position: relative; width: 100%; height: 100%; overflow: visible; }
.mascot .float { animation: float 4.5s ease-in-out infinite; transform-origin: 100px 110px; }
.mascot .tilt { transform-origin: 100px 120px; transition: transform .25s ease-out; }
.mascot .shadow { fill: rgba(0, 0, 0, .45); animation: shadow 4.5s ease-in-out infinite; transform-origin: 100px 190px; }
.mascot .antenna { fill: var(--accent-soft); filter: drop-shadow(0 0 8px #5fd0f7); animation: antenna 1.8s ease-in-out infinite; }
.mascot .eye { animation: blink 5.5s infinite; transform-box: fill-box; transform-origin: center; }
.mascot .pupil { transition: transform .12s ease-out; }

/* klik na Emzaka: 5 reakcií */
.mascot-btn { all: unset; position: relative; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent;
              border-radius: 50%; }
.mascot-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.mascot-btn:hover .mascot { filter: drop-shadow(0 0 22px rgba(95, 208, 247, .35)); }
.mascot.jump .float { animation: jump .9s cubic-bezier(.3, .7, .3, 1); }
.mascot.flip .float { animation: flip 1.1s cubic-bezier(.6, .1, .3, 1); }
.mascot.teleport .float { animation: teleport 1.4s ease-in-out; }
.mascot.warp .float { animation: shake .9s linear; }
.mascot.wink .eye-left { animation: wink .9s ease-in-out; }
.bubble { position: absolute; top: 2%; left: 64%; z-index: 3; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
          background: #fff; color: var(--navy-950); font-weight: 700; font-size: clamp(.85rem, 1.4vw, 1rem); white-space: nowrap;
          box-shadow: 0 12px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none;
          transition: opacity .25s, transform .25s; }
.bubble.on { opacity: 1; transform: translateY(0) scale(1); }
.spark { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 2;
         animation: spark 1.1s ease-out forwards; }
.spark svg { width: 100%; height: 100%; }
.spark.heart { animation: heart 1.6s ease-out forwards; }
.beam { position: absolute; left: 50%; top: -20%; width: 34%; height: 140%; margin-left: -17%; pointer-events: none; z-index: 2;
        background: linear-gradient(180deg, rgba(95, 208, 247, 0), rgba(95, 208, 247, .55) 50%, rgba(95, 208, 247, 0));
        filter: blur(6px); border-radius: 50%; animation: beam 1.4s ease-in-out forwards; }
@keyframes jump { 0% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(6px) scale(1.12, .86); }
  45% { transform: translateY(-70px) scale(.92, 1.1); } 75% { transform: translateY(0) scale(1.1, .9); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes flip { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-60px) rotate(-180deg); }
  60% { transform: translateY(-40px) rotate(-360deg); } 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes teleport { 0% { opacity: 1; transform: scale(1); filter: blur(0); } 35% { opacity: 0; transform: scale(.2, 1.6); filter: blur(6px); }
  60% { opacity: 0; transform: scale(.2, 1.6); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 10%, 50%, 90% { transform: translate(-5px, 2px) rotate(-3deg); }
  30%, 70% { transform: translate(5px, -2px) rotate(3deg); } }
@keyframes wink { 0%, 100% { transform: scaleY(1); } 30%, 70% { transform: scaleY(.08); } }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); } }
@keyframes heart { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -170px) scale(1.2); } }
@keyframes beam { 0% { opacity: 0; transform: scaleY(.2); } 40% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 22px;
        color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 18px; }

/* jednoduché stránky (ochrana údajov, 404) */
.page { max-width: 780px; padding-top: 30px; padding-bottom: 80px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page p, .page li { color: #c6d4dd; }
.center { text-align: center; padding-top: 6vh; }
.actions.centered { justify-content: center; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .55; } 50% { transform: scaleX(.82); opacity: .35; } }
@keyframes antenna { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { min-height: 64px; }
  .stage { height: clamp(170px, 32vh, 280px); }
  .badge-build { font-size: .7rem; padding: 6px 10px; }
  .foot { justify-content: center; }
  .bubble { left: 50%; top: -4%; transform: translate(-50%, 8px) scale(.9); }
  .bubble.on { transform: translate(-50%, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
