/* Stránka údržby – stejný vzhled jako hlavní web (soubory/style.css) */
:root {
  --bubble: #1B2038;
  --text: #EDEFF8;
  --muted: #8E96B8;
  --amber: #5AB0F0;
  --radius-l: 22px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
html { background: #000; }
body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Pozadí: tečky + záře pod kurzorem */
.bg, .glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg {
  background-color: #000;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 20%, transparent 100%);
}
.glow {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--amber) 20%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.glow.on { opacity: 1; }
.topbar, .stage { position: relative; z-index: 1; }

/* Horní lišta */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}
.mono {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s;
}
.top-link:hover { background: rgba(255, 255, 255, .06); }
.top-link svg { width: 17px; height: 17px; }

/* Obsah */
.stage {
  width: calc(100% - 48px);
  max-width: 980px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.text > :nth-child(2) { animation-delay: .08s; }
.text > :nth-child(3) { animation-delay: .16s; }
.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.2rem, min(4.4vw, 9vh), 4.2rem);
  line-height: .95;
  letter-spacing: -0.045em;
}
.text h2 {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(1.35rem, min(2.4vw, 5vh), 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lead { margin: 24px 0 0; max-width: 32ch; color: #C3C8DE; font-size: 1.2rem; line-height: 1.5; }

/* Skleněné okno se zprávami */
.window {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.row { display: flex; gap: 10px; align-items: flex-end; animation: pop .4s ease-out both; }
.row:nth-child(2) { animation-delay: .5s; }
.row:nth-child(3) { animation-delay: 1s; }
.av {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bubble);
  box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--amber);
  font-weight: 700;
  font-size: .75rem;
}
.msg, .typing {
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 6px;
}
.msg {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -25px rgba(0, 0, 0, .6);
  padding: 14px 18px;
}
.msg p { margin: 0; }
.msg a { color: var(--amber); text-underline-offset: 3px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  font-size: .78rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 10px;
}
.typing { display: flex; gap: 5px; padding: 16px 18px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* Mobil */
@media (max-width: 860px) {
  .topbar { padding: 14px 16px; }
  .stage {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .text { padding: 0 6px; }
  .title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .text h2 { margin-top: 12px; font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .lead { margin-top: 14px; font-size: 1.05rem; }
  .window { padding: 16px 12px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
