/* jodynek.cz – noční nebe, červená z čertíka, tyrkysová a oranžová z kódu. */
:root {
  --bg: #07080d;
  --bg-2: #0d1018;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf2;
  --muted: #9aa3b2;
  --faint: #6b7385;
  --red: #ff4b3e;
  --red-soft: rgba(255, 75, 62, 0.14);
  --teal: #3fd0c9;
  --teal-soft: rgba(63, 208, 201, 0.12);
  --orange: #f5a04a;
  --orange-soft: rgba(245, 160, 74, 0.13);
  --radius: 16px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(63, 208, 201, 0.10), transparent 70%),
    radial-gradient(760px 480px at 8% 18%, rgba(255, 75, 62, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- hlavička */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 8, 13, 0.6);
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 75, 62, 0.35));
}

.brand .tld {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

/* ---------------------------------------------------------------- úvod */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  padding: 88px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 32px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(255, 75, 62, 0.6);
}

.btn-primary:hover {
  background: #ff5f53;
  box-shadow: 0 10px 34px -8px rgba(255, 75, 62, 0.75);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(63, 208, 201, 0.22), rgba(255, 75, 62, 0.10) 60%, transparent);
  filter: blur(20px);
  z-index: -1;
}

.hero-art picture,
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.hero-art img {
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(1.2deg);
}

.code-chip {
  position: absolute;
  left: -22px;
  bottom: 28px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(13, 16, 24, 0.88);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 18px 40px -18px #000;
}

.code-chip .k { color: var(--red); }
.code-chip .s { color: var(--orange); }
.code-chip .f { color: var(--teal); }

/* ---------------------------------------------------------------- programy */

.section {
  padding: 24px 0 88px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;              /* karta jen tak vysoka, jak potrebuje obsah */
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 22px -10px var(--c1);
}

.app-icon.has-img {
  background: none;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.9);
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.chip-version { background: var(--teal-soft); color: var(--teal); font-family: var(--mono); }
.chip-platform { background: var(--surface-hover); color: var(--muted); }
.chip-lock { background: var(--orange-soft); color: var(--orange); }

.card p.desc {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .date {
  color: var(--faint);
  font-size: 0.8rem;
}

.card .btn {
  width: 100%;
}

.skeleton {
  min-height: 210px;
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-hover) 50%, var(--surface) 60%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ---------------------------------------------------------------- patička */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.88rem;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.footer .last-change {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ---------------------------------------------------------------- menší šířky */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 40px;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-art {
    width: min(100%, 360px);
  }

  .code-chip {
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
  }
}

@media (max-width: 520px) {
  .nav a {
    padding: 8px 10px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .wrap {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
