/* Rozcestník nástrojů – stejný vzhled jako hlavní web (soubory/style.css) */
:root {
  --text: #EDEFF8;
  --muted: #8E96B8;
  --amber: #F2B544;
  --sky: #5AB0F0;
  --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; text-decoration: none; }
: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;
  transition: background .15s;
}
.mono:hover { background: rgba(255, 255, 255, .06); }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  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: 24px 0 48px;
  align-self: center;
}
.text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.text > :nth-child(2) { animation-delay: .08s; }
.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.2rem, min(4.4vw, 9vh), 4.2rem);
  line-height: .95;
  letter-spacing: -0.045em;
}
.lead { margin: 20px 0 0; max-width: 40ch; color: #C3C8DE; font-size: 1.2rem; line-height: 1.5; }

/* Karty nástrojů */
.tools {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 16px;
  row-gap: 18px;
  padding: 22px;
  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);
  transition: border-color .2s, background .2s, transform .2s;
  animation: pop .5s ease-out both;
}
.tool:nth-child(1) { animation-delay: .2s; }
.tool:nth-child(2) { animation-delay: .3s; }
.tool:hover {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 7%, rgba(255, 255, 255, .03));
  transform: translateY(-2px);
}
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
}
.icon svg { width: 24px; height: 24px; }
.tool-body { display: grid; gap: 4px; align-content: center; }
.tool-body b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.desc { color: var(--muted); font-size: .95rem; }
.url {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--c);
  font-size: .85rem;
  font-weight: 500;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Mobil */
@media (max-width: 860px) {
  .topbar { padding: 14px 16px; }
  .stage { width: calc(100% - 20px); padding: 12px 6px 24px; align-self: start; }
  .lead { margin-top: 12px; font-size: 1rem; }
  .tools { margin-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tool { padding: 18px; border-radius: 22px; }
}

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