:root {
  --text: #f5f7fb;
  --muted: #aab3c5;
  --line: rgba(255,255,255,.12);
  --accent: #67e8f9;
  --panel: rgba(255,255,255,.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(103,232,249,.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,.18), transparent 24%),
    linear-gradient(180deg, #0b0b12 0%, #09090d 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.wrap {
  width: min(100%, 980px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 36px 12px;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.65s; }
.fade-in:nth-child(5) { animation-delay: 0.75s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Логотип ── */
.logo-wrap {
  position: relative;
  width: 720px;
  height: 250px;
}

.logo-under {
  position: absolute;
  left: 310px;
  top: 150px;
  width: 160px;
  z-index: 10;
}

.logo-main {
  position: absolute;
  left: 170px;
  top: 10px;
  width: 350px;
  z-index: 2;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%   { filter: drop-shadow(0 8px 26px rgba(255, 40, 40, .18)); }
  50%  { filter: drop-shadow(0 0 40px rgba(255, 40, 40, .7)) drop-shadow(0 0 80px rgba(255, 40, 40, .35)); }
  100% { filter: drop-shadow(0 8px 26px rgba(255, 40, 40, .18)); }
}

.logo-text {
  position: absolute;
  left: 440px;
  top: 18px;
  width: 280px;
  z-index: 5;
}

/* ── Яйця ── */
.eggs-rig {
  position: absolute;
  left: 199px;
  top: 128px;
  width: 104px;
  transform-origin: 18px 0;
  z-index: 10;
  animation: rigSwing 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.eggs-rig img:first-child {
  width: 100%;
  display: block;
}

.eggs-reflection {
  width: 100%;
  display: block;
  transform: scaleY(-1);
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.lead {
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-icon {
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
  margin-top: -2px;
}

.btn-icon--mystery {
  margin-right: 6px;
  opacity: 0.4;
}

.footer-gif {
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.6;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #071018;
  background: linear-gradient(135deg, var(--accent), #c4b5fd);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(103,232,249,.35);
}

.btn-secondary {
  color: white;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(255,255,255,.06);
}

.btn-mystery {
  position: relative;
  color: rgba(255,255,255,.35);
  background: transparent;
  border: 1px dashed rgba(255,255,255,.15);
  opacity: 0.6;
  user-select: none;
  letter-spacing: 0.15em;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, letter-spacing 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.btn-mystery:hover {
  cursor: not-allowed;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,100,100,.4);
  opacity: 1;
  box-shadow: 0 0 16px rgba(255,40,40,.15);
  letter-spacing: 0.35em;
}

.btn-mystery:hover::after {
  content: "хтозна...";
  font-size: 10px;
  opacity: 0.5;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.ukraine {
  font-weight: 500;
  color: #FFD500;
  text-shadow: 0 0 18px rgba(0, 91, 187, 0.8), 0 0 40px rgba(0, 91, 187, 0.4);
}

.footer {
  text-align: center;
  padding: 12px 24px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── Фізика маятника ── */
@keyframes rigSwing {
  0%   { transform: rotate(-6deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .logo-main,
  .eggs-rig {
    animation: none;
  }
  .logo-main {
    filter: drop-shadow(0 8px 26px rgba(255, 40, 40, .4));
  }
}

@media (max-width: 760px) {
  .hero {
    gap: 20px;
    padding: 32px 16px 12px;
  }

  .logo-wrap {
    width: 100%;
    max-width: 420px;
    height: 180px;
  }

  .logo-main {
    left: 50%;
    transform: translateX(-54%);
    width: 210px;
    top: 8px;
  }

  .logo-text {
    left: 56%;
    top: 12px;
    width: 160px;
  }

  .logo-under {
    left: 55%;
    top: 100px;
    width: 100px;
  }

  .eggs-rig {
    left: calc(50% - 103px);
    top: 78px;
    width: 72px;
  }

  .lead {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }
}

@media (max-width: 420px) {
  .logo-wrap {
    max-width: 320px;
    height: 140px;
  }

  .logo-main {
    width: 170px;
  }

  .logo-text {
    width: 130px;
    left: 54%;
  }

  .logo-under {
    width: 80px;
    top: 80px;
  }

  .eggs-rig {
    left: calc(50% - 87px);
    width: 58px;
    top: 62px;
  }
}
