:root {
  --bg: #0f1115;
  --card: #151925;
  --ink: #f4f4f5;
  --muted: #9aa0aa;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #4f7cff;
  --accent2: #00d1b2;
  --success: #3ddc84;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --ink: #0f0f10;
    --muted: #636b78;
    --line: rgba(0, 0, 0, 0.08);
    --accent: #2f63ff;
    --accent2: #00b894;
    --success: #2cbb6f;
  }
}

/* Reset básico */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  -webkit-tap-highlight-color: transparent;
  padding: max(env(safe-area-inset-top, 16px), 16px) 16px;
}

/* Particles layer */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  #particles-js {
    display: none;
  }
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  width: min(480px, 96vw);
  text-align: center;
}

.brand {
  width: 160px;
  height: auto;
  margin: 0 auto 18px auto;
  display: block;
}

.head h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

.btns {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
  opacity: 0.92;
}
.btn.primary {
  box-shadow: 0 8px 22px rgba(79, 124, 255, 0.35);
  transform: translateY(-1px);
}

.btn-android {
  background: linear-gradient(135deg, var(--success), #2e8f5d);
}
.btn-ios {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.version {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.version .sep {
  margin: 0 6px;
  opacity: 0.6;
}

.release {
  margin-top: 10px;
  text-align: left;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.release summary {
  cursor: pointer;
  font-weight: 600;
}
.release ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.release li {
  margin: 4px 0;
}

.help {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  border: 1px solid var(--line);
}
.help code {
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
}

.foot {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}
.link:hover {
  opacity: 0.9;
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .card {
    padding: 36px 28px;
  }
  .head h1 {
    font-size: 24px;
  }
  .btn {
    font-size: 17px;
    padding: 16px;
  }
}

/* Reduce motion */
body.reduce-motion * {
  transition: none !important;
}
