/* Paleta idêntica à do próprio app (FlowMiner/App/AppTheme.swift) —
   fundo quase-preto, acento verde (ativo) e laranja (doação/atenção). */
:root {
  --bg: #0d0d0f;
  --surface: #1c1c21;
  --surface-2: #232329;
  --border: #2c2c33;
  --accent: #4dd973;
  --accent-dark: #2fa855;
  --donate: #f29933;
  --error: #e64d4d;
  --text: #ffffff;
  --text-secondary: #a6a6a6;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--text-secondary);
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav__cta {
  background: var(--accent);
  color: #05130a !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav__cta:hover {
  background: var(--accent-dark);
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(77, 217, 115, 0.12), transparent),
    var(--bg);
}
.hero__logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 24px;
  box-shadow: 0 0 60px rgba(77, 217, 115, 0.35);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero__note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent);
  color: #05130a;
}
.btn--primary:hover {
  background: var(--accent-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--surface);
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin: 0 0 12px;
}
.section__lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
}
.section__note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 640px;
  margin: 32px auto 0;
}

/* Grids / cards */
.grid {
  display: grid;
  gap: 20px;
}
.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--pools {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.card__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pool-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.pool-card__coin {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--donate);
  background: rgba(242, 153, 51, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.pool-card h3 {
  margin: 0 0 6px;
}
.pool-card p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.pool-card__detail {
  margin-top: 10px !important;
}

/* Grupos de instalação por plataforma (iOS / Android) */
.install-group {
  margin-bottom: 56px;
}
.install-group:last-child {
  margin-bottom: 0;
}
.install-group__heading {
  text-align: center;
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.install-group__lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
}

/* Install method cards */
.grid--install {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 900px;
  margin: 0 auto 32px;
}
.grid--install-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.install-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(77, 217, 115, 0.12);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.install-card__badge--alt {
  color: var(--donate);
  background: rgba(242, 153, 51, 0.12);
}
.install-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.install-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.install-card__disclaimer {
  margin: 16px 0 0 !important;
  font-size: 0.82rem !important;
  font-style: italic;
}
.install-card .faq__item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 0 0;
}
.install-card .faq__item summary {
  color: var(--accent);
  font-size: 0.9rem;
}

.tip {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.tip strong {
  color: var(--text);
}
.steps--compact {
  margin-top: 16px !important;
}
.steps--compact li {
  padding-bottom: 18px;
}

/* Steps */
.steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 52px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #05130a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}
.steps strong {
  display: block;
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Download */
.download {
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(77, 217, 115, 0.10), transparent);
}
.download__inner p {
  color: var(--text-secondary);
}
.download__hint {
  margin-top: 20px;
  font-size: 0.9rem;
}
.download__version {
  margin-top: 4px;
  font-size: 0.9rem;
}
.download__version strong {
  color: var(--accent);
}

/* Cartões de download por plataforma (iOS / Android) */
.grid--platforms {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 640px;
  margin: 40px auto 0;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
}
.platform-card__icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.platform-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.platform-card__req {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 20px;
}
.platform-card .btn {
  width: 100%;
}
.platform-card__hint {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
}
.faq__item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}
.footer__links a {
  color: var(--text-secondary);
}
.footer__legal {
  color: var(--text-secondary);
  font-size: 0.8rem;
  max-width: 520px;
  margin: 0;
}

@media (max-width: 720px) {
  .nav {
    gap: 14px;
    font-size: 0.85rem;
  }
  .nav a:not(.nav__cta) {
    display: none;
  }
}

/* Terms of Use — texto corrido */
.terms {
  max-width: 720px;
}
.terms h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 20px;
}
.terms__intro {
  color: var(--text-secondary);
  border-left: 3px solid var(--donate);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 40px;
}
.terms h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}
.terms p {
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.terms__footer-note {
  margin-top: 40px !important;
  font-size: 0.85rem;
  font-style: italic;
}
