/**
* @license
*
* Font Family: Satoshi
* Designed by: Deni Anggara
* URL: https://www.fontshare.com/fonts/satoshi
* © 2026 Indian Type Foundry
*
* This is a variable font.
*/

@font-face {
  font-family: "Satoshi-Variable";
  src:
    url("Satoshi-Variable.woff2") format("woff2"),
    url("Satoshi-Variable.woff") format("woff"),
    url("Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

/* Base styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-family: "Satoshi-Variable", sans-serif;
}

.content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin-top: 4rem;
  font-size: 2rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

a {
  color: #fff;
}

/* Logo */

.logo {
  text-align: center;
}

.word {
  display: flex;
  justify-content: center;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.word span {
  display: inline-block;
  opacity: 0;
  animation: appear 1s ease forwards;
}

.word span:nth-child(1) {
  animation-delay: 0s;
}

.word span:nth-child(2) {
  animation-delay: 0.5s;
}

.word span:nth-child(3) {
  animation-delay: 1s;
}

.word span:nth-child(4) {
  animation-delay: 1.5s;
}

.word span:nth-child(5) {
  animation-delay: 2s;
}

.word span:nth-child(6) {
  animation-delay: 2.5s;
}

.word span:nth-child(7) {
  animation-delay: 4s;
}

.word span:nth-child(8) {
  animation-delay: 3s;
}

/* The i appears, then jumps up and down twice */
.word span.jump-i {
  animation:
    appear 1s ease 3s forwards,
    jump-twice 1.2s ease-in-out 1s 3 both;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  letter-spacing: 0.12em;
  opacity: 0;
  animation: appear 10s ease 1.8s forwards;
}

/* Buttons */

.button-row {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.contact-button,
.legal-button {
  position: fixed;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  pointer-events: auto;
  opacity: 0.5;
}

.contact-button {
  right: 1.5rem;
  width: 3.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  animation: blink 2s ease-in-out 29s 99 both;
}

.legal-button {
  left: 50%;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transform: translateX(-50%);
  animation: blink 3s ease-in-out 7s 99 both;
  font-weight: 400;
  font-size: 1em;
}

.contact-button:hover {
  transform: scale(1.05);
  background: #ddd;
  opacity: 1;
}

.legal-button:hover {
  transform: translateX(-50%) scale(1.05);
  background: #ddd;
  opacity: 1;
}

.contact-button:focus-visible,
.legal-button:focus-visible {
  outline: 3px solid #8ab4ff;
  outline-offset: 4px;
}

/* Animations */

@keyframes appear {
  to {
    opacity: 1;
  }
}

@keyframes jump-twice {
  0%,
  20%,
  40%,
  100% {
    transform: translateY(0);
  }

  10%,
  30% {
    transform: translateY(-0.45em);
  }
}

@keyframes blink {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    opacity: 0.5;
  }

  10%,
  30% {
    opacity: 1;
  }
}

/* Mobile styles */

@media (max-width: 480px) {
  .contact-button {
    right: 1rem;
    bottom: 1rem;
  }

  .legal-button {
    bottom: 1rem;
    font-size: 0.85rem;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .word span,
  .word span.jump-i,
  .subtitle,
  .contact-button {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .contact-button,
  .legal-button {
    transition: none;
  }
}
