:root {
  color-scheme: dark;
  --ink: #f7f8f4;
  --surface: #182019;
  --surface-hover: #202b22;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #00a859;
  --brand-hover: #0fbd6b;
  --focus: #9ff1c5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #111712;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 168, 89, 0.1), transparent min(58vw, 34rem)),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #111712;
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.intro-loader {
  --intro-progress: 0%;
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 6vw, 72px);
  color: #f5f7f4;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 168, 89, 0.075), transparent 30rem),
    #030504;
}

.intro-loader::before {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  transform: rotate(7deg);
  pointer-events: none;
}

.show-intro {
  overflow: hidden;
}

.show-intro .intro-loader {
  display: grid;
  animation: intro-screen-in 420ms ease-out both;
}

.show-intro .page-shell {
  visibility: hidden;
}

.show-intro.intro-unlock .page-shell {
  visibility: visible;
  animation: page-reveal 700ms ease-out both;
}

.intro-loader.is-exiting {
  pointer-events: none;
  animation: intro-screen-out 700ms ease-in both;
}

.intro-loader__frame {
  position: absolute;
  inset: clamp(14px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.intro-loader__frame::before,
.intro-loader__frame::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--brand);
  opacity: 0.58;
}

.intro-loader__frame::before {
  top: -3px;
  left: -3px;
}

.intro-loader__frame::after {
  right: -3px;
  bottom: -3px;
}

.intro-loader__content {
  position: relative;
  width: min(100%, 720px);
  text-align: center;
}

.intro-loader__step {
  margin: 0 0 clamp(24px, 6vh, 48px);
  color: rgba(245, 247, 244, 0.38);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.intro-loader__step span {
  margin-left: 0.8em;
  color: var(--brand);
}

.intro-loader__copy {
  min-height: clamp(5.5rem, 16vw, 8rem);
  display: grid;
  place-items: center;
}

.intro-message {
  grid-area: 1 / 1;
  max-width: 650px;
  margin: 0;
  opacity: 0;
  color: rgba(245, 247, 244, 0.82);
  font-size: clamp(1.2rem, 4.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
  transform: translateY(14px);
  filter: blur(5px);
}

.intro-message strong {
  color: #f5f7f4;
  font-weight: 600;
}

.intro-message.is-active {
  animation: intro-copy-in 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-message.is-leaving {
  animation: intro-copy-out 360ms ease-in both;
}

.intro-loader__track {
  width: min(72vw, 280px);
  height: 1px;
  margin: clamp(28px, 7vh, 56px) auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.intro-loader__track span {
  display: block;
  width: var(--intro-progress);
  height: 100%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(0, 168, 89, 0.5);
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 56px) clamp(18px, 4vw, 40px);
}

.link-card {
  width: min(100%, 480px);
  margin: auto;
  text-align: center;
}

.brand-mark {
  width: min(47.6vw, 210px);
  margin: 0 auto clamp(20px, 4vh, 32px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 clamp(24px, 5vh, 36px);
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: var(--brand);
  isolation: isolate;
}

.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: -0.1em;
  left: -0.08em;
  height: 1px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: highlight-line 4s ease-in-out infinite;
}

.links {
  display: grid;
  gap: 13px;
}

.link-button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-button--primary {
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(0, 168, 89, 0.16);
}

.link-button--primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: inherit;
  box-shadow: 0 0 18px 4px rgba(0, 168, 89, 0.22);
  opacity: 0.28;
  transform: scale(0.99);
  pointer-events: none;
  animation: whatsapp-halo 3.4s ease-in-out infinite;
}

.button-icon {
  display: grid;
  place-items: center;
}

.button-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.button-arrow {
  font-size: 1.15rem;
  opacity: 0.62;
  transition: transform 180ms ease, opacity 180ms ease;
}

.link-button:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.22);
}

.link-button--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.link-button:hover .button-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.link-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.disclaimer {
  position: fixed;
  z-index: 2;
  right: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 14px;
  margin: 0;
  color: rgba(247, 248, 244, 0.32);
  font-size: clamp(0.52rem, 2.1vw, 0.63rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 0 0 rgba(0, 168, 89, 0);
  white-space: nowrap;
  animation: disclaimer-pulse 5.8s ease-in-out infinite;
}

@keyframes highlight-line {
  0%, 18% {
    opacity: 0;
    transform: scaleX(0);
  }
  42%, 72% {
    opacity: 0.72;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes whatsapp-halo {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.018);
  }
}

@keyframes disclaimer-pulse {
  0%, 100% {
    color: rgba(247, 248, 244, 0.28);
    text-shadow: 0 0 0 rgba(0, 168, 89, 0);
  }
  50% {
    color: rgba(92, 190, 139, 0.42);
    text-shadow: 0 0 4px rgba(0, 168, 89, 0.08);
  }
}

@keyframes intro-screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes intro-screen-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes intro-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes intro-copy-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-9px);
    filter: blur(3px);
  }
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 14px;
  }

  .link-button {
    min-height: 60px;
    padding-inline: 15px;
  }
}

@media (max-height: 560px) {
  .page-shell {
    padding-block: 14px;
  }

  .brand-mark {
    width: min(29.4vh, 133px);
    margin-bottom: 12px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(1.1rem, 4.5vh, 1.45rem);
  }

  .links {
    gap: 9px;
  }

  .link-button {
    min-height: 52px;
    padding-block: 9px;
  }

  .disclaimer {
    bottom: max(7px, env(safe-area-inset-bottom));
  }

  .intro-loader__step {
    margin-bottom: 18px;
  }

  .intro-loader__copy {
    min-height: 4.5rem;
  }

  .intro-loader__track {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .show-intro .intro-loader,
  .show-intro.intro-unlock .page-shell,
  .intro-loader.is-exiting,
  .intro-message.is-active,
  .intro-message.is-leaving,
  .disclaimer,
  .highlight::after,
  .link-button--primary::after,
  .link-button,
  .button-arrow {
    animation: none;
    transition: none;
  }

  .intro-message.is-active {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .intro-loader__track span {
    transition: none;
  }

  .highlight::after {
    opacity: 0.72;
    transform: scaleX(1);
  }

  .link-button--primary::after {
    opacity: 0.3;
    transform: none;
  }
}
