/* =================================================================
   mc.zone — global styles
   ================================================================= */

/* ---------- CHEST REWARD MODAL ---------- */
.chest-modal {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 460px; width: 100%;
  position: relative;
  text-align: center;
  animation: slideUp .25s ease;
  overflow: hidden;
}
.chest-modal::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(245,158,11,0.08), transparent 60%);
  pointer-events: none;
}
.chest-modal.stage-revealed::before {
  background: radial-gradient(circle at 50% 40%, rgba(34,197,94,0.18), transparent 60%);
}

.chest-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(245,158,11,0.12);
  color: var(--warn);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.chest-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.chest-sub { color: var(--text-mid); margin: 0 0 24px; font-size: 14px; }

.chest-stage {
  position: relative;
  display: grid; place-items: center;
  height: 220px;
  margin: 0 auto 20px;
}
.chest-svg { position: relative; z-index: 2; }
.chest-stage-closed .chest-svg { animation: chest-bob 2s ease-in-out infinite; }
@keyframes chest-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chest-stage-opening .chest-svg { animation: chest-shake .15s ease-in-out infinite; }
@keyframes chest-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.chest-lid {
  transition: transform 1.2s cubic-bezier(.5,.1,.3,1.4);
}
.chest-stage-opening .chest-lid,
.chest-stage-revealed .chest-lid {
  transform: rotateX(110deg) translateY(-6px);
}

/* Beams */
.chest-beams {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 1; opacity: 0;
  transition: opacity .4s ease;
}
.chest-stage-opening .chest-beams,
.chest-stage-revealed .chest-beams { opacity: 0.9; }
.beam {
  position: absolute;
  width: 8px; height: 250px;
  transform-origin: center bottom;
  filter: blur(4px);
  animation: beam-rotate 6s linear infinite;
}
.chest-stage-revealed .beam { animation: beam-rotate 4s linear infinite; }
@keyframes beam-rotate {
  to { transform: rotate(calc(var(--start, 0deg) + 360deg)); }
}

/* Particles */
.particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: 50%; left: 50%;
  z-index: 3;
  animation: particle-burst .9s ease-out var(--delay) both;
}
@keyframes particle-burst {
  0% { transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-110px) scale(0); opacity: 0; }
}

/* Reveal */
.chest-reveal { animation: reveal-in .5s ease; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(8px); }
}
.reveal-rarity {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.reveal-amount { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.reveal-amount-num {
  font-family: var(--font-display); font-size: 56px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(245,158,11,0.4);
}
.reveal-amount-label { color: var(--text-mid); font-size: 14px; }
.reveal-desc { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }

.btn-chest-open {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 16px 24px; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(245,158,11,0.5);
}
.btn-chest-open:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* ---------- UPGRADE HINT (progress bar to next rank) ---------- */
.upgrade-hint {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  text-align: left; cursor: pointer;
  transition: all .2s ease;
}
.upgrade-hint:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.08));
  border-color: var(--accent);
  transform: translateY(-1px);
}
.upgrade-hint-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.upgrade-hint-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim);
}
.upgrade-hint-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.upgrade-hint-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.upgrade-hint-text { font-size: 13px; color: var(--text-mid); }
.upgrade-hint-text strong { font-weight: 700; }
.upgrade-hint-arrow { transition: transform .2s ease; }
.upgrade-hint:hover .upgrade-hint-arrow { transform: translateX(3px); }

/* ---------- PROMO TIMER BAR ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--accent) 0%, #16a34a 100%);
  color: #062013;
  font-size: 13px;
  overflow: hidden;
  position: relative;
}
.promo-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.08) 12px 13px);
  pointer-events: none;
}
.promo-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-weight: 500;
  position: relative;
}
.promo-bar-flame { display: inline-flex; }
.promo-bar-text strong { font-weight: 800; }
.promo-bar-text code {
  background: rgba(0,0,0,0.18);
  padding: 2px 7px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.04em;
}
.promo-bar-divider {
  flex: 1; height: 1px; background: rgba(0,0,0,0.18);
}
.promo-bar-timer {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-weight: 700;
}
.promo-bar-label {
  font-family: var(--font-body); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; margin-right: 6px; opacity: 0.85;
}
.timer-cell {
  background: rgba(0,0,0,0.18);
  padding: 4px 8px; border-radius: 5px;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.timer-cell small { font-size: 10px; font-weight: 500; opacity: 0.7; }
.timer-sep { opacity: 0.5; font-weight: 400; }

@media (max-width: 720px) {
  .promo-bar-divider { display: none; }
  .promo-bar-inner { padding: 8px 16px; gap: 10px; }
  .promo-bar-label { display: none; }
}

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --card: #15151a;
  --card-2: #1c1c22;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #f5f5f7;
  --text-mid: #a1a1aa;
  --text-dim: #71717a;
  --accent: #22c55e;          /* emerald */
  --accent-2: #4ade80;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --warn: #f59e0b;
  --danger: #ef4444;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
code { font-family: var(--font-mono); }

::selection { background: var(--accent); color: #0a0a0b; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #062013;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 12px 32px -8px var(--accent-glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--line-2); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.accent { color: var(--accent); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,10,11,0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  background: rgba(10,10,11,0.85);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 70% 30%, var(--accent-glow), transparent 60%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 500;
  width: fit-content;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 28px 0 20px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-ip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ip-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ip-card:hover { border-color: var(--accent); }
.ip-label { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.ip-value { font-family: var(--font-mono); font-size: 16px; color: var(--text); font-weight: 600; }
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
}
.ip-card:hover .ip-copy { background: var(--accent); color: #062013; }
.ip-meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
}
.ip-meta > div { display: flex; flex-direction: column; gap: 2px; }
.meta-label { color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.meta-value { color: var(--text); font-weight: 500; }

.hero-ctas { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.trust-item span { font-size: 12px; color: var(--text-dim); }
.trust-divider { width: 1px; height: 28px; background: var(--line); }

/* HERO right — logo */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 420px;
}
.hero-logo-glow {
  position: absolute;
  inset: 50px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.hero-logo-wrap > svg {
  position: relative;
  z-index: 1;
  color: var(--text);
  filter: drop-shadow(0 20px 40px rgba(34,197,94,0.2));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-logo-floor {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; }

/* PROMO STRIP */
.promo-strip {
  margin-top: 0;
  background: var(--accent);
  color: #062013;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.promo-strip-inner {
  display: flex;
  gap: 48px;
  padding: 12px 0;
  white-space: nowrap;
  animation: slide 40s linear infinite;
  width: max-content;
}
.promo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.promo-item code {
  background: rgba(0,0,0,0.18);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.promo-dot { opacity: 0.4; margin-left: 24px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- FEATURES ---------- */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  margin-bottom: 48px;
}
.section-head.align-center { text-align: center; }
.section-head.align-center .section-eyebrow,
.section-head.align-center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.align-left { text-align: left; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-eyebrow span {
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 12px;
  text-wrap: balance;
}
.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}
