/* JustWow Studio — vizitka
   Barvy a typografie vycházejí z Figma návrhu (Desktop - 3). */

:root {
  --midnight: #001738;
  --midnight-deep: #000d22;
  --cyan: #00D3F2;
  --fuchsia: #F4A8FF;
  --purple: #DAB2FF;
  --white: #FBFBFB;

  --line: rgba(251, 251, 251, .16);
  --glass: rgba(255, 255, 255, .045);

  --font: 'Baloo Thambi 2', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gap: clamp(1.75rem, 4.4vw, 3.25rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow-x: hidden;

  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  background:
    radial-gradient(140% 100% at 50% 0%, #0a2a5c 0%, var(--midnight) 52%, var(--midnight-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

/* ---------- atmosféra ---------- */

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aura__blob {
  position: absolute;
  display: block;
  width: clamp(24rem, 58vw, 48rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}

.aura__blob--cyan {
  top: -16%;
  left: -14%;
  opacity: .22;
  background: radial-gradient(circle at 40% 40%, var(--cyan), transparent 68%);
  animation: drift-a 22s ease-in-out infinite;
}

.aura__blob--fuchsia {
  right: -16%;
  bottom: -14%;
  opacity: .34;
  background: radial-gradient(circle at 60% 60%, var(--fuchsia) 0%, var(--purple) 42%, transparent 70%);
  animation: drift-b 26s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6%, 8%, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-7%, -6%, 0) scale(1); }
}

/* ---------- obsah ---------- */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  text-align: center;
}

.logo {
  width: clamp(9.5rem, 22vw, 12.5rem);
  height: auto;
}

.claim {
  margin: 0;
  font-size: clamp(1.55rem, 3.7vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* Nad 640 px je claim vždy přesně na dva řádky — každý řádek je vlastní blok,
   který se nesmí zalomit. Velikost písma řídí clamp(), takže se vejde. */
.claim__line {
  display: block;
  white-space: nowrap;
}

.claim .c { color: var(--cyan); }
.claim .f { color: var(--fuchsia); }

/* ---------- pilulky ---------- */

.pills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.pills li {
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: clamp(.85rem, 2.2vw, .95rem);
  line-height: 1.4;
  color: rgba(251, 251, 251, .88);
  white-space: nowrap;
}

/* ---------- kontakt ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn--solid {
  background: var(--cyan);
  color: var(--midnight);
  box-shadow: 0 0 0 rgba(0, 211, 242, 0);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 211, 242, .75);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
  font-weight: 400;
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 168, 255, .55);
  background: rgba(255, 255, 255, .04);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.note {
  font-size: .875rem;
  color: rgba(251, 251, 251, .62);
}

/* ---------- nástup ---------- */

.reveal {
  animation: rise .7s cubic-bezier(.22, 1, .36, 1) backwards;
}

.logo.reveal    { animation-delay: .05s; }
.claim.reveal   { animation-delay: .13s; }
.pills.reveal   { animation-delay: .21s; }
.contact.reveal { animation-delay: .29s; }
.note.reveal    { animation-delay: .37s; }

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

/* ---------- mobil ---------- */

@media (max-width: 640px) {
  .claim {
    font-size: clamp(1.5rem, 7vw, 2rem);
    text-wrap: balance;
  }

  .claim__line {
    display: inline;
    white-space: normal;
  }

  .contact {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    padding-inline: 1rem;
  }
}

/* ---------- omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  .aura__blob { animation: none; }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn { transition: none; }
  .btn:hover { transform: none; }
}
