@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #010101;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg, #010101);
  color: var(--text, #fff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg, #010101);
}

/* ── Hero dissolvendo na borda de baixo ── */
.hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 62vh, 540px);
  flex-shrink: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.85) 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.85) 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 1, 1, 0) 0%,
    rgba(1, 1, 1, 0) 45%,
    rgba(1, 1, 1, 0.35) 72%,
    rgba(1, 1, 1, 0.88) 90%,
    #010101 100%
  );
  pointer-events: none;
}

/* ── Conteúdo + botões ── */
.content {
  flex: 1;
  margin-top: -72px;
  position: relative;
  z-index: 1;
  padding: 0 16px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.title {
  font-size: clamp(1.125rem, 4.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
  padding: 0 4px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
  animation: fadeUp 0.5s ease both;
  animation-delay: calc(var(--delay, 0) * 0.1s + 0.08s);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.link-btn:active {
  transform: scale(0.985);
}

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.link-text {
  line-height: 1.2;
  text-align: center;
}

/* Tenho Telegram — azul oficial */
.link-btn--primary {
  background: #229ed9;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.38);
}

.link-btn--primary:hover {
  background: #1b8ec6;
  filter: brightness(1.03);
}

/* Não tenho Telegram — cinza */
.link-btn--secondary {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.link-btn--secondary:hover {
  background: #353535;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .hero {
    height: clamp(320px, 56vh, 460px);
  }

  .content {
    margin-top: -64px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .title {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .link-btn {
    min-height: 52px;
    font-size: 15px;
    border-radius: 12px;
  }

  .link-icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 481px) {
  .page {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-btn {
    animation: none;
  }
}
