/* ── Nivolo site v2 — pure black, Phantom-inspired, playful ── */
:root {
  --bg: #000000;
  --panel: #0A0E1A;
  --card: #0E1424;
  --card-border: rgba(212, 232, 242, 0.10);
  --ice: #D4E8F2;
  --ice-blue: #64D2FF;
  --teal-deep: #0A3A4A;
  --gold: #FFD60A;
  --orange: #FF9F0A;
  --purple: #BF5AF2;
  --green: #30D158;
  --text: #F2F7FB;
  --text-dim: #93A5BA;
  --radius: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--ice-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Floating pill nav ── */
nav { position: sticky; top: 14px; z-index: 50; padding: 0 20px; }
.nav-pill {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 8px 10px 8px 18px;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 900; letter-spacing: -0.4px;
  color: var(--text);
}
.logo img { width: 30px; height: auto; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 800; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--ice); text-decoration: none; }
.nav-cta {
  background: var(--ice); color: var(--teal-deep) !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 900;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-cta:hover { transform: scale(1.05); text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: 84px 20px 20px;
  overflow: visible;
}
.kicker {
  display: inline-block;
  font-size: 15px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 7.2vw, 76px);
  font-weight: 1000;
  letter-spacing: -1.5px;
  line-height: 1.06;
  max-width: 820px;
  margin: 0 auto 20px;
}
.inline-nivo {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -0.16em;
  height: 1.02em; width: 1.3em;
  background: linear-gradient(135deg, var(--ice-blue), var(--purple));
  border-radius: 0.32em;
  margin: 0 0.04em;
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inline-nivo img { height: 88%; width: auto; display: block; }
.hero h1:hover .inline-nivo { transform: rotate(-8deg) scale(1.12); }
.hero-sub {
  font-size: 19px; font-weight: 700; color: var(--text-dim);
  max-width: 520px; margin: 0 auto 30px;
}

.btn-moonlit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ice); color: var(--teal-deep);
  font-family: inherit; font-weight: 900; font-size: 17px;
  padding: 16px 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 36px rgba(212, 232, 242, 0.35), 0 0 70px rgba(160, 200, 220, 0.16);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}
.btn-moonlit:hover {
  text-decoration: none; transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 46px rgba(212, 232, 242, 0.55), 0 0 90px rgba(160, 200, 220, 0.28);
}
.btn-moonlit:active { transform: scale(0.95); }
.btn-moonlit svg { width: 20px; height: 20px; }
.hero-note { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--text-dim); }

/* ── Interactive Nivo stage ── */
.stage {
  position: relative;
  max-width: 560px;
  margin: 26px auto 0;
  padding-bottom: 26px;
}
#nivo-hit {
  display: inline-block;
  border: none; background: none; padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#nivo-img {
  width: 250px; height: auto; display: block;
  filter: drop-shadow(0 20px 40px rgba(100, 210, 255, 0.22));
  transition: transform 150ms ease-out;
}
#nivo-hit:active #nivo-img { transform: scale(0.94, 0.9); }
.nivo-jump { animation: nivoJump 620ms cubic-bezier(0.34, 1.2, 0.5, 1); }
@keyframes nivoJump {
  0%   { transform: scale(1.08, 0.86) translateY(0); }
  38%  { transform: scale(0.94, 1.08) translateY(-46px); }
  62%  { transform: scale(1, 1) translateY(-46px); }
  88%  { transform: scale(1.06, 0.9) translateY(0); }
  100% { transform: scale(1, 1) translateY(0); }
}
.tap-hint {
  margin-top: 6px;
  font-size: 14px; font-weight: 800; color: var(--text-dim);
  animation: hintPulse 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.pecks-pill {
  position: absolute; top: 0; right: 8%;
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid rgba(255, 214, 10, 0.35);
  border-radius: 999px; padding: 8px 16px;
  font-size: 17px; font-weight: 1000; color: var(--gold);
  opacity: 0; transform: scale(0.6);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  pointer-events: none;
}
.pecks-pill.show { opacity: 1; transform: scale(1); }
.pecks-pill.bump { animation: statBump 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes statBump {
  0% { transform: scale(1); } 35% { transform: scale(1.22); }
  65% { transform: scale(0.94); } 100% { transform: scale(1); }
}

.coin {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #FFE97A, #FFD60A 55%, #E0A800 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.25), inset 0 2px 3px rgba(255,255,255,0.5), 0 0 10px rgba(255, 214, 10, 0.3);
}
.fly-coin { position: fixed; z-index: 90; pointer-events: none; transition: transform 600ms cubic-bezier(0.4, -0.1, 0.6, 1), opacity 0.6s ease; }

.spark {
  position: absolute; left: 50%; top: 55%;
  width: 5px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #FFFFFF, #9FDBFF);
  transform-origin: center -6px;
  pointer-events: none;
  animation: sparkBurst 620ms ease-out forwards;
}
@keyframes sparkBurst {
  0%   { opacity: 0; transform: rotate(var(--a)) translateY(0) scaleY(0.2); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-72px) scaleY(1); }
}

.stage-toast {
  position: absolute; left: 50%; top: -8px;
  transform: translateX(-50%) scale(0.7);
  background: var(--panel); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 9px 20px;
  font-size: 15px; font-weight: 800; color: var(--ice);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.stage-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* ── Floating decor (parallax) ── */
.decor { position: absolute; pointer-events: none; z-index: -1; }
.decor .coin { width: 30px; height: 30px; }
.decor-gem {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #E3B8FF, var(--purple) 70%);
  box-shadow: 0 0 18px rgba(191, 90, 242, 0.45);
  transform: rotate(45deg);
}
.decor-flake {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(200,225,255,0.5) 60%, transparent 100%);
}
.bob { animation: decorBob 5s ease-in-out infinite; }
.bob-slow { animation: decorBob 7s ease-in-out infinite; }
@keyframes decorBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Ambient snow */
.flake {
  position: fixed; top: -12px; z-index: -2; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(200,225,255,0.5) 60%, transparent 100%);
  pointer-events: none;
  animation: snowFall linear infinite;
}
@keyframes snowFall {
  0%   { transform: translate3d(0, -6vh, 0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translate3d(var(--drift, 30px), 105vh, 0); opacity: 0; }
}

/* ── Marquee ── */
.marquee {
  margin: 64px 0 0;
  padding: 13px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 214, 10, 0.22);
  border-bottom: 1px solid rgba(255, 214, 10, 0.22);
  background: rgba(255, 214, 10, 0.04);
  transform: rotate(-1.4deg) scale(1.02);
}
.marquee-track {
  display: inline-flex; white-space: nowrap;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track span {
  font-size: 16px; font-weight: 1000; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  padding-right: 18px;
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ── Features bento ── */
.features { padding: 90px 0 10px; }
.section-title {
  text-align: center; font-size: clamp(30px, 4.5vw, 44px); font-weight: 1000;
  letter-spacing: -1px; margin-bottom: 8px;
}
.section-sub { text-align: center; font-weight: 700; color: var(--text-dim); font-size: 17px; margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-5px) rotate(-0.5deg); }
.feature-card:nth-child(even):hover { transform: translateY(-5px) rotate(0.5deg); }
.fc-streak:hover { border-color: rgba(255, 159, 10, 0.45); }
.fc-pecks:hover  { border-color: rgba(255, 214, 10, 0.45); }
.fc-gems:hover   { border-color: rgba(191, 90, 242, 0.45); }
.fc-rest:hover   { border-color: rgba(100, 210, 255, 0.45); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon { transform: rotate(-10deg) scale(1.15); }
.icon-streak { background: rgba(255, 159, 10, 0.14); }
.icon-pecks  { background: rgba(255, 214, 10, 0.12); }
.icon-gems   { background: rgba(191, 90, 242, 0.14); }
.icon-rest   { background: rgba(100, 210, 255, 0.12); }
.feature-card h3 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.feature-card p { color: var(--text-dim); font-weight: 600; font-size: 15px; }

/* ── Bottom CTA (Discord-style sendoff) ── */
.bottom-cta {
  position: relative;
  margin-top: 90px;
  padding: 90px 20px 0;
  text-align: center;
  background: radial-gradient(ellipse 65% 85% at 50% 115%, rgba(100, 210, 255, 0.13), transparent 65%);
}
.bottom-cta h2 {
  font-size: clamp(28px, 4.5vw, 42px); font-weight: 1000; letter-spacing: -1px;
  max-width: 640px; margin: 0 auto 8px;
}
.bottom-cta .section-sub { margin-bottom: 30px; }
.lineup {
  display: flex; align-items: flex-end; justify-content: center; gap: 34px;
  margin-top: 56px;
}
.lineup img { height: 120px; width: auto; display: block; }
.lineup img:nth-child(1) { transform: rotate(-4deg); }
.lineup img:nth-child(3) { transform: rotate(5deg); height: 110px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--card-border); padding: 30px 0 40px; margin-top: 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  color: var(--text-dim); font-size: 14px; font-weight: 700;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--ice); }

/* ── Subpages (support / privacy) ── */
.page { max-width: 720px; margin: 0 auto; padding: 64px 20px 96px; }
.page h1 { font-size: 36px; font-weight: 1000; letter-spacing: -0.8px; margin-bottom: 6px; }
.page .updated { color: var(--text-dim); font-weight: 700; font-size: 14px; margin-bottom: 36px; }
.page h2 { font-size: 21px; font-weight: 900; margin: 34px 0 10px; }
.page p, .page li { color: var(--text-dim); font-weight: 600; font-size: 16px; }
.page ul { padding-left: 22px; margin: 10px 0; }
.page .card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px 26px; margin: 22px 0;
}

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .nav-links { gap: 14px; }
  .nav-links .nav-plain { display: none; }
  #nivo-img { width: 200px; }
  .pecks-pill { right: 0; }
  .lineup { gap: 20px; }
  .lineup img { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .flake, .bob, .bob-slow, .marquee-track, .tap-hint { animation: none; }
}
