/* mitchi s.r.o. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #17152b;
  --ink-soft: #5c5a72;
  --accent: #ff5b3a;
  --accent-ink: #d9401f;
  --accent-soft: #ffe7df;
  --violet: #6a48ff;
  --violet-soft: #ece7ff;
  --line: #ece6dc;
  --radius: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent-ink); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top nav { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.04em; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; color: var(--ink-soft); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; }
.hero-in { position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.b1 { width: 420px; height: 420px; background: #ffc7b5; right: -80px; top: -40px; }
.b2 { width: 320px; height: 320px; background: #d9d0ff; right: 220px; top: 160px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; font-weight: 800;
  letter-spacing: -0.035em; max-width: 15ch;
}
.intro { margin-top: 1.5rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 600;
  padding: 0.85rem 1.5rem; border-radius: 999px; transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Blocks */
.block { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 2rem; }
.block .sub { margin: -1.25rem 0 2rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 40rem; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc {
  background: var(--surface); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(23, 21, 43, 0.04), 0 8px 24px rgba(23, 21, 43, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(23, 21, 43, 0.05), 0 16px 36px rgba(23, 21, 43, 0.09); }
.svc-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1.1rem;
}
.svc:nth-child(even) .svc-icon { background: var(--violet-soft); color: var(--violet); }
.svc h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.svc p { color: var(--ink-soft); font-size: 0.95rem; }
.more-link {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent) 0%, #ff8a5c 100%); border-radius: var(--radius); padding: 1.5rem 1.75rem;
  color: #fff; box-shadow: 0 12px 30px rgba(255, 91, 58, 0.25); transition: transform 0.2s, box-shadow 0.2s;
}
.more-link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 91, 58, 0.32); }
.more-txt { flex: 1 1 320px; font-size: 1rem; color: rgba(255, 255, 255, 0.92); }
.more-txt strong { display: block; color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.more-cta {
  flex: none; font-weight: 700; color: var(--ink); background: #fff;
  padding: 0.75rem 1.3rem; border-radius: 999px; font-size: 0.95rem; transition: background 0.2s, color 0.2s;
}
.more-link:hover .more-cta { background: var(--ink); color: #fff; }

/* odkaz na mican.cz – hero + menu */
.hero-web {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.95rem; color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(23, 21, 43, 0.06); transition: border-color 0.2s;
}
.hero-web strong { color: var(--accent-ink); }
.hero-web:hover { border-color: var(--accent); color: var(--ink); }
.hero-web .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.nav-links .nav-web { color: var(--accent-ink); font-weight: 700; }
.nav-links .nav-web:hover { color: var(--accent); }

/* AI */
.ai {
  background: linear-gradient(135deg, #f1edff 0%, #fff1ec 100%);
  border-radius: 28px; padding: 3rem;
}
.ai .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--violet); background: #fff; padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; }
.ai-item { display: flex; gap: 1rem; align-items: flex-start; }
.ai-item .svc-icon { flex: none; margin: 0; background: #fff; color: var(--violet); }
.ai-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.ai-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* Contact */
.contact {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 3rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end;
  position: relative; overflow: hidden;
}
.contact::after {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent); filter: blur(90px); opacity: 0.35; right: -100px; top: -120px;
}
.contact > * { position: relative; z-index: 1; }
.contact h2 { margin-bottom: 0.5rem; }
.contact p { color: rgba(255, 255, 255, 0.7); }
.mail {
  display: inline-block; margin-top: 1.5rem; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700;
  color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.mail:hover { color: #ffb4a3; }
.contact dl { font-size: 0.95rem; }
.contact dt { color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact dd { margin-bottom: 1rem; }
.contact dd:last-child { margin-bottom: 0; }

/* Footer */
.foot { padding-top: 2rem; padding-bottom: 3rem; text-align: center; font-size: 0.85rem; color: var(--ink-soft); }
.foot p + p { margin-top: 0.25rem; }
.foot .osvc { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8rem; }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 2.25rem; }
  .ai { padding: 2.25rem; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links .hide-sm { display: none; }
  .b1 { width: 260px; height: 260px; right: -120px; }
  .b2 { display: none; }
  .contact, .ai { padding: 1.75rem; border-radius: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 0.6s ease-out both; }
  .hero-in > :nth-child(2) { animation-delay: 0.06s; }
  .hero-in > :nth-child(3) { animation-delay: 0.12s; }
  .hero-in > :nth-child(4) { animation-delay: 0.18s; }
  .hero-in > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 404 */
.nf { position: relative; min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 3rem; padding-bottom: 4rem; }
.nf > *:not(.blob) { position: relative; }
.nf .b1 { right: 10%; top: 5%; }
.nf .b2 { left: 5%; right: auto; top: 45%; }
.nf h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 2.25rem; }
.nf p { color: var(--ink-soft); margin-top: 0.75rem; font-size: 1.05rem; }
.nf .actions { justify-content: center; }
.player { width: min(420px, 100%); background: var(--ink); border-radius: 22px; padding: 14px; box-shadow: 0 24px 60px rgba(23, 21, 43, 0.25); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: radial-gradient(circle at 70% 20%, rgba(255, 91, 58, 0.35), transparent 55%), radial-gradient(circle at 20% 90%, rgba(106, 72, 255, 0.35), transparent 50%), #221f3d; display: grid; place-items: center; overflow: hidden; }
.code { font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; color: #fff; opacity: 0.95; }
.spinner { position: absolute; width: 34px; height: 34px; right: 16px; bottom: 16px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.9s linear infinite; }
.bar { position: relative; height: 5px; margin: 14px 4px 2px; background: rgba(255, 255, 255, 0.15); border-radius: 999px; overflow: hidden; }
.bar .buffer { position: absolute; inset: 0 auto 0 0; width: 62%; background: rgba(255, 255, 255, 0.25); border-radius: 999px; }
.bar .played { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--accent); border-radius: 999px; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
