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

:root {
  --bg: #ffffff;
  --fg: #000000;
  --btn-radius: 9999px;
  --page-padding: clamp(1.25rem, 5vw, 2.5rem);
  --actions-gap: clamp(0.375rem, 1vw, 0.5rem);
  --logo-width: clamp(90px, 26vw, 140px);
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--page-padding);
  padding-bottom: calc(var(--page-padding) + 6.5rem);
  position: relative;
}

.logo-wrap {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding-top: clamp(1rem, 5vh, 3.5rem);
}

.logo {
  width: var(--logo-width);
  height: auto;
  display: block;
  user-select: none;
}

.animation-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

.animation {
  width: clamp(360px, 94vw, 988px);
  aspect-ratio: 1920 / 1080;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.contact {
  position: fixed;
  left: 50%;
  bottom: var(--page-padding);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.625rem, 2vw, 0.875rem);
  width: min(100% - var(--page-padding) * 2, 420px);
  max-width: calc(100vw - var(--page-padding) * 2);
}

.social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}

.social-link {
  max-width: 100%;
  color: var(--fg);
  font-size: clamp(0.75rem, 2.4vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.6;
}

.social-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--actions-gap);
  width: 100%;
}

.btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--btn-radius);
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: clamp(0.8125rem, 2.8vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s ease,
    color 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.2s;
}

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

.btn-copy {
  position: relative;
  background: #ebebeb;
  color: #6e6e6e;
}

.btn-copy:hover {
  background: #e2e2e2;
}

.btn-copy::before {
  background: radial-gradient(
    circle at 50% 120%,
    rgba(0, 0, 0, 0.04) 0%,
    transparent 55%
  );
}

.btn-copy:focus-visible {
  outline-color: #6e6e6e;
}

.btn-label {
  display: block;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-label-copied {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.btn-copy.is-copied .btn-label-default {
  opacity: 0;
  transform: translateY(-8px);
}

.btn-copy.is-copied .btn-label-copied {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 320px) {
  .contact {
    width: min(100% - var(--page-padding) * 2, 280px);
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .page {
    padding-bottom: calc(var(--page-padding) + 5.5rem);
  }

  .contact {
    width: min(420px, 100% - var(--page-padding) * 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .btn-label,
  .btn-label-copied {
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
