:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --surface: #243041;
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --gold: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --page-x: max(1rem, env(safe-area-inset-left, 0px));
  --page-x-right: max(1rem, env(safe-area-inset-right, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(251, 191, 36, 0.06), transparent);
}

.container {
  width: min(100% - var(--page-x) - var(--page-x-right), var(--max));
  margin-inline: auto;
  padding-inline: 0;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 20, 25, 0.85);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.highlight {
  color: var(--gold);
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.lead strong {
  color: var(--text);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats li {
  flex: 1 1 5.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #052e16;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 260px;
}

.card-float {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.earnings-card {
  top: 0;
  left: 0;
  right: 10%;
  animation: float-a 5s ease-in-out infinite;
}

.task-card {
  bottom: 0;
  right: 0;
  left: 15%;
  font-size: 0.9rem;
  animation: float-b 6s ease-in-out infinite;
}

.task-card p {
  margin: 0.35rem 0;
}

.card-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-amount {
  margin: 0.25rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.card-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.section {
  padding: 3rem 0;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.benefit-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.95rem;
}

.step-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download {
  padding-bottom: 3.5rem;
}

.download-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(160deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.download-lead {
  max-width: 36em;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 480px) {
  .store-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  min-width: 200px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}

.store-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
  text-align: left;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  text-align: left;
}

.download-alt {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.faq-inner {
  max-width: 640px;
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  padding: 0.25rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 40em;
  margin: 0.75rem auto 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

.site-footer code {
  font-size: 0.85em;
  color: var(--accent);
}

/* —— Mobile-first enhancements —— */
@media (max-width: 899px) {
  .hero-grid {
    gap: 1.75rem;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-stats li {
    padding: 0.65rem 0.5rem;
    text-align: center;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hero-note {
    text-align: center;
  }

  .hero-visual {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .card-float {
    position: static;
    animation: none;
    width: 100%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }

  .card-amount {
    font-size: 1.65rem;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.55rem;
  }

  .logo {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 1.5rem 0 2.25rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section h2 {
    margin-bottom: 1.5rem;
    padding-inline: 0.25rem;
  }

  .benefit-card {
    padding: 1.15rem;
  }

  .step-list li {
    padding: 1rem;
    gap: 0.75rem;
  }

  .download-box {
    padding: 1.75rem 1rem;
    border-radius: var(--radius);
  }

  .download-lead {
    font-size: 0.95rem;
    text-align: left;
  }

  .download-box h2 {
    font-size: 1.35rem;
    text-align: left;
  }

  .store-buttons {
    width: 100%;
  }

  .store-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .store-btn small,
  .store-btn strong {
    text-align: center;
  }

  .faq summary {
    font-size: 0.95rem;
    padding: 0.85rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-footer {
    padding: 1.5rem 0 calc(1.5rem + var(--safe-bottom));
    padding-inline: 0.5rem;
  }
}

@media (min-width: 768px) {
  .btn-lg {
    max-width: 320px;
  }

  .hero-copy .btn-lg {
    display: flex;
  }
}

@media (min-width: 900px) {
  .hero-copy {
    text-align: left;
  }

  .hero-note {
    text-align: left;
  }

  .download-box h2,
  .download-lead {
    text-align: center;
  }

  .store-btn small,
  .store-btn strong {
    text-align: left;
  }
}

/* Sticky download bar — Facebook in-app browser friendly */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.65rem var(--page-x) calc(0.65rem + var(--safe-bottom)) var(--page-x-right);
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  body {
    padding-bottom: calc(4.5rem + var(--safe-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card-float {
    animation: none !important;
  }

  .btn,
  .store-btn {
    transition: none;
  }
}
