/* =========================================================
   Coin MX Lite — main.css
   ========================================================= */

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

:root {
  --bg:         #080d0a;
  --bg-card:    #0f1610;
  --border:     #1c2b1e;
  --green:      #00d97e;
  --green-glow: rgba(0, 217, 126, 0.15);
  --text:       #b8cdbf;
  --muted:      #4d6655;
  --white:      #edf7f0;
}

html { scroll-behavior: smooth; }

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

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}

/* White background so the dark template icon is visible */
.nav-logo .icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo .icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Language toggle pill */
.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn.active {
  background: var(--green);
  color: #000;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--green-glow);
  border: 1px solid rgba(0,217,126,0.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

/* Hero icon: white card so it stands out against dark bg */
.hero-icon-wrap {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 48px rgba(0,217,126,0.22),
    0 12px 40px rgba(0,0,0,0.45);
}

.hero-icon-wrap img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,217,126,0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
  background: #00f590;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,217,126,0.38);
}

.download-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Screenshots ── */
.screenshots {
  padding: 0 24px 88px;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shot-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shot-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,217,126,0.18);
}

.shot-wrap img { width: 100%; display: block; }

/* ── Features ── */
.features {
  padding: 88px 24px;
  max-width: 880px;
  margin: 0 auto;
}

.section-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-heading {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 52px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,217,126,0.35);
  transform: translateY(-2px);
}

.feat-icon {
  width: 40px;
  height: 40px;
  background: var(--green-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Coins ── */
.coins-section {
  padding: 0 24px 88px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.coins-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.coin-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, color 0.15s;
}

.coin-chip:hover { border-color: var(--green); color: var(--green); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--green); }

/* ── Scroll-reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a reveal parent */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay: 0.36s; }
.reveal-stagger.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(11) { opacity:1; transform:none; transition-delay: 0.44s; }
.reveal-stagger.visible > *:nth-child(12) { opacity:1; transform:none; transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(13) { opacity:1; transform:none; transition-delay: 0.52s; }

/* Hero entrance — runs immediately on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: fadeUp 0.5s ease 0.1s both; }
.hero-icon-wrap { animation: fadeUp 0.5s ease 0.2s both; }
.hero h1       { animation: fadeUp 0.5s ease 0.3s both; }
.hero p        { animation: fadeUp 0.5s ease 0.4s both; }
.download-btn  { animation: fadeUp 0.5s ease 0.5s both; }

/* ── Responsive ── */
@media (max-width: 660px) {
  nav { padding: 14px 20px; }
  .hero { padding: 64px 20px 48px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
