/* ============================================================
   GAIN COIN — Page-specific CSS
   Font: Outfit (loaded via Google Fonts in HTML)
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg: #0B0E14;
  --surface: #111827;
  --gold: #FFD700;
  --gold-dark: #C8A800;
  --text: #FFFFFF;
  --muted: #8E9BAE;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
}

/* ── Global Reset / Base ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  height: 68px;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover {
  color: var(--text);
  background: var(--border);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-download:hover {
  background: #ffe84d;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.35);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 215, 0, 0.10) 0%, transparent 70%), var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 600px at 50% -100px, rgba(255, 215, 0, 0.06), transparent 70%);
  pointer-events: none;
}

.logo-wrapper {
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.logo-image {
  width: 130px;
  height: 130px;
  border-radius: 30px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 215, 0, 0.12);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #FFD700 0%, #C8A800 100%);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
  filter: brightness(1.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255, 215, 0, 0.5);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  transform: translateY(-1px);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat:last-child {
  border-right: none;
}

.stat:hover {
  background: rgba(255, 215, 0, 0.04);
}

.stat-value {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   SECTIONS — SHARED LAYOUT
   ============================================================ */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-sub {
  font-size: clamp(14px, 2vw, 16.5px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.step-card:hover {
  border-color: rgba(255, 215, 0, 0.30);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.step-card:hover::before {
  opacity: 1;
}

.step-num {
  font-size: 42px;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.15);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   EARN METHODS
   ============================================================ */
.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.earn-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.earn-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.earn-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.earn-card:hover::after {
  transform: scaleX(1);
}

.earn-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.earn-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.earn-rate {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.earn-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.f-icon {
  font-size: 34px;
  line-height: 1;
  display: block;
}

.f-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.f-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   PAYOUT METHODS
   ============================================================ */
.payout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.payout-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: default;
}

.payout-card:hover {
  background: rgba(255, 215, 0, 0.04);
  border-color: rgba(255, 215, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.payout-icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
  display: block;
}

.payout-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.payout-detail {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.testi-card:hover {
  border-color: rgba(255, 215, 0, 0.20);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
}

.testi-loc {
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: rgba(255, 215, 0, 0.35);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.faq-q:hover {
  background: rgba(255, 215, 0, 0.04);
  color: var(--gold);
}

.faq-item.open .faq-q {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--gold);
}

/* Accordion content — hidden by default, revealed on `.open` */
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 22px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 4px 22px 22px;
}

/* ============================================================
   DOWNLOAD CTA BOX
   ============================================================ */
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.20);
  border-radius: 28px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin: 14px 0 12px;
  letter-spacing: -0.8px;
}

.cta-box p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-left {
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links li a {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--text);
  background: var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    gap: 12px;
  }

  .nav-links {
    display: none; /* hide on mobile; add hamburger menu via JS if needed */
  }

  .hero {
    padding: 72px 20px 60px;
  }

  .logo-image {
    width: 100px;
    height: 100px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-gold,
  .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  .stats-strip {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  section {
    padding: 60px 16px;
  }

  .cta-box {
    padding: 44px 24px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -0.8px;
  }

  .steps-grid,
  .earn-grid,
  .features-grid,
  .payout-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* Redeem & Tools Styles */
.container { max-width: 600px; margin: 60px auto; padding: 20px; text-align: center; }
.logo-wrapper { margin-bottom: 30px; }
.logo-image { border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.panel { background: #131720; padding: 40px; border-radius: 24px; border: 1px solid rgba(255,215,0,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.4); margin-top: 30px; text-align: left; }
.input-group { margin-bottom: 20px; }
.input-group input { width: 100%; padding: 16px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1rem; font-family: inherit; }
.input-group input:focus { outline: none; border-color: #FFD700; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #000; width: 100%; padding: 14px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; }
.user-info { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 12px; }
.user-avatar { width: 48px; height: 48px; border-radius: 50%; }
.user-details strong { display: block; color: #fff; font-size: 1.1rem; }
.user-details span { color: #8E9BAE; font-size: 0.9rem; }
.alert { padding: 15px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.loader { width: 40px; height: 40px; border: 4px solid rgba(255,215,0,0.3); border-top-color: #FFD700; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Device Reset Styles */
.info-box { background: rgba(91,155,196,0.1); border-left: 4px solid #5B9BC4; padding: 20px; border-radius: 0 12px 12px 0; margin-bottom: 30px; text-align: left; }
.steps { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; text-align: left; }
.step { display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; }
.step-num { width: 32px; height: 32px; background: #FFD700; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.device-field { margin-top: 20px; }
.field { width: 100%; padding: 16px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px dashed rgba(255,255,255,0.2); color: #fff; text-align: center; font-family: monospace; font-size: 1.1rem; letter-spacing: 2px; }

/* Misc */
.logo-img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.check { color: #4ADE80; font-weight: bold; }
