:root {
  --slate: #2a3238;
  --slate-deep: #14191d;
  --lime: #b8e06a;
  --lime-glow: rgba(184, 224, 106, 0.28);
  --ink: #e8efe0;
  --muted: #9aa8a0;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--slate-deep);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 60% 0%, var(--lime-glow), transparent 55%),
    linear-gradient(165deg, #0f1316, var(--slate-deep) 50%, #12171b);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  width: min(520px, 92vw);
  padding: 2rem 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 6px;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  animation: fade-up 0.7s var(--ease-out) both;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.tagline .line {
  display: block;
  animation: fade-up 0.65s var(--ease-out) both;
}

.tagline .line:nth-child(1) { animation-delay: 0.1s; }
.tagline .line:nth-child(2) { animation-delay: 0.2s; }
.tagline .line:nth-child(3) { animation-delay: 0.3s; }

.line--accent {
  color: var(--lime);
}

.lede {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  animation: fade-up 0.65s 0.4s var(--ease-out) both;
}

.lede em {
  font-style: normal;
  color: var(--lime);
  font-weight: 600;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  min-height: 180px;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s 0.5s var(--ease-out) both;
}

.atm {
  width: 120px;
  background: linear-gradient(160deg, #3a444c, var(--slate));
  border-radius: 12px 12px 6px 6px;
  padding: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.atm__screen {
  background: #0a0e10;
  border-radius: 6px;
  padding: 0.7rem 0.5rem;
  min-height: 72px;
  border: 1.5px solid rgba(184, 224, 106, 0.25);
  position: relative;
  overflow: hidden;
}

.atm__hello {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--muted);
}

.atm__punch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--lime);
}

.atm__cash {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atm__cash span {
  display: block;
  width: 36px;
  height: 5px;
  background: linear-gradient(90deg, #6a9a3a, var(--lime));
  border-radius: 1px;
  opacity: 0;
  animation: cash-out 3.2s ease-in-out infinite;
}

.atm__cash span:nth-child(2) { animation-delay: 0.15s; width: 32px; }
.atm__cash span:nth-child(3) { animation-delay: 0.3s; width: 28px; }

@keyframes cash-out {
  0%, 40% { opacity: 0; transform: translateY(6px); }
  55%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

.atm__slot {
  height: 4px;
  background: #0a0e10;
  margin: 8px 4px 0;
  border-radius: 2px;
}

.phone {
  width: 90px;
  height: 160px;
  background: linear-gradient(180deg, #2e363c, #1a2024);
  border-radius: 16px;
  border: 2px solid #4a545c;
  padding: 8px 7px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  animation: wiggle 5s var(--ease-bounce) infinite;
  margin-bottom: 8px;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-6px); }
}

.phone__notch {
  width: 28px;
  height: 4px;
  background: #0a0e10;
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone__ui {
  background: var(--slate-deep);
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  border: 1px solid rgba(184, 224, 106, 0.18);
  height: calc(100% - 14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.phone__label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.phone__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.phone__hint {
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.footer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
