/* ================================================================ hareket */
/* Sayfa JS olmadan da tam görünür: gizleme yalnızca .js sınıfı varken uygulanır */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float-a {
  0%,
  100% {
    transform: translate(var(--px, 0px), var(--py, 0px)) rotate(3deg) translateY(0);
  }
  50% {
    transform: translate(var(--px, 0px), var(--py, 0px)) rotate(4deg) translateY(-12px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translate(calc(var(--px, 0px) * -1), calc(var(--py, 0px) * -1)) rotate(-4deg) translateY(0);
  }
  50% {
    transform: translate(calc(var(--px, 0px) * -1), calc(var(--py, 0px) * -1)) rotate(-5.5deg) translateY(10px);
  }
}
@keyframes drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 40px 40px, 40px 40px;
  }
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(5deg);
  }
  90% {
    transform: rotate(-3deg);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: drift 18s linear infinite;
  }
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .btns {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1 {
    animation-delay: 0.08s;
  }
  .hero .lead {
    animation-delay: 0.18s;
  }
  .hero .btns {
    animation-delay: 0.28s;
  }
  .stack-card.app {
    animation: rise 0.8s 0.3s both, float-a 6s 1.1s ease-in-out infinite;
  }
  .stack-card.game {
    animation: rise 0.8s 0.45s both, float-b 7s 1.2s ease-in-out infinite;
  }
  .stack-card.app img {
    transform-origin: 50% 90%;
    animation: wave 5s 1.5s ease-in-out infinite;
  }
  .product-hero .wrap > div {
    animation: rise 0.7s both;
  }
  .product-hero .mascot {
    transform-origin: 50% 90%;
    animation: rise 0.8s 0.2s both, wave 5s 1.4s ease-in-out infinite;
  }
  .pill.status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
    animation: pulse-dot 2s ease-in-out infinite;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js a.card.reveal.in:hover {
    transform: translateY(-4px);
    transition-delay: 0s;
  }

  .card-icon {
    transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  a.card:hover .card-icon {
    transform: rotate(-8deg) scale(1.08);
  }
  a.card strong {
    transition: color 0.2s ease;
  }
  a.card:hover strong {
    color: var(--accent);
  }
  .card.soon .glyph {
    display: inline-block;
    transition: transform 0.4s ease;
  }
  .card.soon:hover .glyph {
    transform: rotate(90deg);
  }
  .principle .mark,
  .feature .dot,
  .brand svg {
    transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  .principle:hover .mark {
    transform: translateY(-4px) rotate(-6deg);
  }
  .feature:hover .dot {
    transform: scale(1.15) rotate(-8deg);
  }
  .brand:hover svg {
    transform: rotate(-12deg);
  }
  .contact a.mail {
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
    text-decoration: none;
    transition: background-size 0.35s ease;
    padding-bottom: 6px;
  }
  .contact a.mail:hover {
    background-size: 100% 3px;
  }
}

/* ------------------------------------------------------------ e-posta kutusu */
.mailbox {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 10px;
  color: var(--ink);
  width: 100%;
  max-width: 460px;
}
.mailbox[hidden] {
  display: none;
}
.btns .mailbox {
  flex-basis: 100%;
  margin-top: 2px;
}
.mailbox .addr {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.mailbox .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mailbox button,
.mailbox a {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
}
.mailbox a {
  background: transparent;
  color: var(--ink);
}
.mailbox .ok {
  font-size: 14px;
  font-weight: 700;
  color: #0f9d6b;
}
.mailbox small {
  color: var(--muted);
  font-size: 14px;
}
