/* BetChat APK download — premium forest / neon chip aesthetic */

:root {
  --bg-deep: #061410;
  --bg-mid: #0a1c17;
  --forest: #075e54;
  --teal: #128c7e;
  --accent: #25d366;
  --accent-soft: #3ae07a;
  --lime: #b6ff3d;
  --text: #e8f5ef;
  --text-muted: #8fa89c;
  --line: rgba(37, 211, 102, 0.18);
  --cta-ink: #04140e;
  --radius: 12px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 40rem;
}

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

/*
 * Author `display` on .btn (inline-flex) overrides the UA [hidden] rule.
 * Without !important, Cancelar/Instalar ignore the hidden attribute.
 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-soft);
}

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

/* —— Atmosphere (full-bleed plane) —— */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #0f3a30 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(7, 94, 84, 0.45) 0%, transparent 50%),
    radial-gradient(80% 60% at 0% 80%, rgba(18, 140, 126, 0.28) 0%, transparent 45%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 48%, #030a08 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.atmosphere__glow--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 6%;
  left: calc(50% - min(27.5vw, 210px));
  background: rgba(37, 211, 102, 0.16);
}

.atmosphere__glow--b {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  bottom: -12%;
  right: -8%;
  background: rgba(7, 94, 84, 0.5);
  animation-duration: 24s;
  animation-delay: -6s;
}

.atmosphere__mesh {
  position: absolute;
  inset: -10%;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(182, 255, 61, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 61, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: mesh-drift 28s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(-4%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes mesh-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-24px, -24px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__glow,
  .atmosphere__mesh,
  .hero__logo,
  .hero__brand,
  .hero__headline,
  .hero__support,
  .cta-stack {
    animation: none !important;
  }
}

/* —— Layout —— */

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(2rem, 6vw, 3.5rem) 1.35rem 2.5rem;
  text-align: center;
}

.hero__visual {
  margin-bottom: clamp(1.25rem, 3.5vw, 1.85rem);
}

.hero__logo {
  width: clamp(148px, 34vw, 220px);
  height: auto;
  border-radius: 50%;
  animation: enter-logo 1s var(--ease-out) both;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 0 40px rgba(37, 211, 102, 0.28);
  animation: enter-up 0.9s var(--ease-out) 0.12s both;
}

.hero__headline {
  margin: 0 auto 0.85rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(232, 245, 239, 0.92);
  animation: enter-up 0.9s var(--ease-out) 0.22s both;
}

.hero__support {
  margin: 0 auto 0.85rem;
  max-width: 34ch;
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  font-weight: 400;
  color: var(--text-muted);
  animation: enter-up 0.9s var(--ease-out) 0.32s both;
}

.hero__version {
  margin: 0 auto 1.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(143, 168, 156, 0.95);
  animation: enter-up 0.9s var(--ease-out) 0.36s both;
}

.cta-stack {
  width: min(100%, 24rem);
  animation: enter-up 0.9s var(--ease-out) 0.42s both;
}

.hero__micro {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(143, 168, 156, 0.85);
  text-align: center;
}

/* —— Download card —— */

.installer {
  width: 100%;
}

.installer__card {
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(37, 211, 102, 0.07) 0%, rgba(7, 94, 84, 0.16) 100%);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.08);
}

.installer__card-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

.installer__card-head--solo {
  grid-template-columns: 1fr;
}

.installer__title {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.installer__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.installer__hint strong {
  color: rgba(232, 245, 239, 0.92);
  font-weight: 600;
}

.installer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.install-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.install-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

@keyframes enter-logo {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* —— Buttons (no pills) —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--cta-ink);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
}

.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.22);
}

.btn--primary:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  font-weight: 600;
}

.btn--ghost:hover {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.06);
  transform: translateY(-1px);
}

.btn--ghost:active {
  transform: translateY(1px);
}

/* —— Footer —— */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.35rem 2rem;
  border-top: 1px solid rgba(37, 211, 102, 0.1);
}

.site-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent-soft);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(143, 168, 156, 0.7);
}

@media (min-width: 720px) {
  .installer .btn {
    width: 100%;
  }
}
