/* Coin Quant — CMC-inspired rewards landing page */

:root {
  --bg: #0d1421;
  --bg-elevated: #171e2b;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2a3d;
  --border: rgba(56, 97, 251, 0.15);
  --border-strong: rgba(56, 97, 251, 0.35);
  --text: #eaeef5;
  --text-muted: #848e9c;
  --text-dim: #5e6673;
  --accent: #3861fb;
  --accent-light: #5b7fff;
  --cyan: #00d4ff;
  --green: #16c784;
  --orange: #f7931a;
  --red: #ea3943;
  --gradient: linear-gradient(135deg, #3861fb 0%, #00d4ff 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Orbitron", var(--font);
  --header-h: 64px;
  --ticker-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* ── Top nav (CMC-style) ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 20, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d1b69, #7b3fe4);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 97, 251, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(56, 97, 251, 0.5);
}

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--outline:hover { background: rgba(56, 97, 251, 0.08); }

.btn--lg { padding: 14px 28px; font-size: 15px; }

.btn--block { width: 100%; }

/* ── Market ticker (CMC footer bar style, moved to top area) ── */
.market-ticker {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.market-ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
  animation: ticker 40s linear infinite;
  width: max-content;
}

.market-ticker__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.market-ticker__item strong { color: var(--text); font-weight: 600; }
.market-ticker__item .up { color: var(--green); }
.market-ticker__item .down { color: var(--red); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Page hero ── */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero__breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.page-hero__breadcrumb span { color: var(--accent-light); }

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 28px;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(56,97,251,0.12) 0%, rgba(0,212,255,0.08) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.promo-banner__text {
  font-size: 15px;
  font-weight: 500;
}

.promo-banner__text em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 700;
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 20px;
}

.toolbar h2 {
  font-size: 20px;
  font-weight: 700;
}

.toolbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.2s, color 0.2s;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--accent);
  color: var(--accent-light);
}

.sort-select {
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23848e9c'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ── Rewards grid (CMC card style) ── */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.reward-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.reward-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #0a0e17;
}

.reward-card__image-wrap::after {
  content: "Click to contact on Telegram";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 20, 33, 0.75);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}

.reward-card__image-wrap:hover::after { opacity: 1; }

.reward-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.reward-card__image-wrap:hover img { transform: scale(1.04); }

.reward-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: rgba(56, 97, 251, 0.9);
  color: #fff;
  z-index: 1;
}

.reward-card__badge--hot { background: rgba(247, 147, 26, 0.9); }
.reward-card__badge--new { background: rgba(22, 199, 132, 0.9); }

.reward-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reward-card__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.reward-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.reward-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.reward-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reward-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

.reward-card__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.reward-card__cta {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(56, 97, 251, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(56, 97, 251, 0.3);
  transition: background 0.2s;
}

.reward-card__cta:hover { background: rgba(56, 97, 251, 0.28); }

/* ── Stats section ── */
.stats-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-box {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-box__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-box__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Features strip ── */
.features-strip {
  padding: 48px 0;
}

.features-strip h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 32px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 97, 251, 0.12);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Contact CTA ── */
.contact-cta {
  padding: 48px 0 64px;
}

.contact-cta__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(56,97,251,0.1) 0%, rgba(0,212,255,0.06) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.contact-cta__card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-cta__card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.contact-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}

.contact-cta__link:hover { text-decoration: underline; }

/* ── Footer (CMC-style) ── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.5;
}

/* ── Floating TG button ── */
.fab-tg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #229ED9;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 158, 217, 0.55);
}

/* ── Modal (TG contact image) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal__header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.modal__body { padding: 20px; }

.modal__contact-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
}

.modal__hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal__actions .btn { flex: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-cta__card { grid-template-columns: 1fr; text-align: center; }
  .contact-cta__links { justify-content: center; }
  .promo-banner { flex-direction: column; text-align: center; }
  .fab-tg span { display: none; }
  .fab-tg { padding: 14px; border-radius: 50%; }
}
