@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: rgba(255, 255, 255, 0.85);
  --subtle: rgba(255, 255, 255, 0.45);
  --dim: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.18);
  --orange: #F97316;
  --blue: #3B82F6;
  --green: #22C55E;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Mono', monospace;
  background-color: var(--black);
  color: var(--off-white);
  margin: 0;
}

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO BACKGROUND ───────────────────────────────── */
.hero-bg { position: relative; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('bg-topo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.hero-bg > * { position: relative; z-index: 1; }

/* ── SUBTLE SECTION BG ─────────────────────────────── */
.section-topo { position: relative; }
.section-topo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('bg-topo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.section-topo > * { position: relative; z-index: 1; }

/* ── CARDS ─────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background-color: transparent; color: var(--white); }

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--white); background-color: rgba(255,255,255,0.06); }

/* ── TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.label-text {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  display: block;
}

/* ── INLINE STYLE REPLACEMENTS (moved from HTML) ───── */
.tag-line       { color: rgba(255,255,255,0.35); }
.dist-legend    { color: rgba(255,255,255,0.55); letter-spacing: 0.03em; }
.text-muted-45  { color: rgba(255,255,255,0.45); }
.text-muted-65  { color: rgba(255,255,255,0.65); }
.text-orange    { color: var(--orange); }
.text-subtle    { color: var(--subtle); }
.typing-color   { color: rgba(255,255,255,0.5); min-height: 3em; }

.game-screenshots-wrap { max-width: 900px; margin-left: auto; margin-right: auto; }
.game-img-desktop      { max-width: 380px; }
.game-img-height       { height: 200px; }
.game-img-height-mob   { height: 180px; }
.portal-desktop-wrap   { width: 80px; height: 200px; }
.portal-mobile-wrap    { height: 64px; }
.team-card             { max-width: 320px; width: 100%; }
.supply-detail         { color: var(--orange); }

/* ── DISTRIBUTION BAR ──────────────────────────────── */
.dist-bar { border-radius: 0; overflow: hidden; }
.dist-bar-public   { background-color: var(--white); }
.dist-bar-burned   { background-color: var(--orange); }
.dist-bar-treasury { background-color: var(--green); }
.dist-bar-lp       { background-color: var(--blue); }

/* ── SUPPLY CHART ──────────────────────────────────── */
.supply-bar { border-radius: 0; overflow: hidden; }
.supply-bar-active { background-color: var(--white); }
.supply-bar-burned { background-color: var(--orange); }

/* ── PIE LEGEND DOTS ───────────────────────────────── */
.dot-white    { background: var(--white); display: inline-block; }
.dot-orange   { background: var(--orange); display: inline-block; }
.dot-green    { background: var(--green); display: inline-block; }
.dot-blue     { background: var(--blue); display: inline-block; }

/* ── CONTRACT INPUT ────────────────────────────────── */
.contract-box {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}
.contract-box input {
  background: transparent;
  color: var(--off-white);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  width: 100%;
  border: none;
  outline: none;
  cursor: default;
  user-select: all;
}

/* ── NFT SCROLLER ──────────────────────────────────── */
.scrolling-wrapper { overflow: hidden; width: 100%; position: relative; }
.scrolling-content { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.scrolling-content:hover { animation-play-state: paused; }
.nft-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 8px;
  border-radius: 0;
  border: 1px solid var(--border);
  filter: none;
  transition: opacity 0.3s ease;
}
.nft-image:hover { opacity: 0.85; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── LOGO ──────────────────────────────────────────── */
.logo { width: 48px; height: 48px; border-radius: 0; filter: none; }

/* ── SOCIAL ICONS ──────────────────────────────────── */
.social-icon i { font-size: 22px; color: var(--subtle); transition: color 0.2s ease; }
.social-icon:hover i { color: var(--white); }

/* ── TEAM PFP ──────────────────────────────────────── */
.team-pfp {
  width: 200px;
  height: 200px;
  border-radius: 0;
  border: 1px solid var(--border);
  object-fit: cover;
  margin: auto;
  display: block;
  filter: none;
}

/* ── DIVIDERS ──────────────────────────────────────── */
.stat-divider { border-color: var(--border); }

/* ── FOOTER / HEADER ───────────────────────────────── */
footer { border-top: 1px solid var(--border); background-color: var(--black); }
header { border-bottom: 1px solid var(--border); }

/* ── COPY MESSAGE ──────────────────────────────────── */
#copy-message { color: var(--subtle); font-size: 0.7rem; letter-spacing: 0.06em; }

/* ── PORTAL ANIMATIONS ─────────────────────────────── */
#portal-spin-outer, #portal-spin-outer-m {
  transform-origin: 40px 40px;
  animation: spin-cw 6s linear infinite;
}
#portal-spin-mid, #portal-spin-mid-m {
  transform-origin: 40px 40px;
  animation: spin-ccw 4s linear infinite;
}
#portal-spin-inner, #portal-spin-inner-m {
  transform-origin: 40px 40px;
  animation: spin-cw 2.5s linear infinite;
}
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* ── TYPING ANIMATION ──────────────────────────────── */
.typing-text {
  overflow: hidden;
  white-space: pre-wrap;
  border-right: 2px solid rgba(255,255,255,0.6);
  animation: blink-cursor 0.75s step-end infinite;
}
.typing-text.done {
  border-right-color: transparent;
  animation: none;
}
@keyframes blink-cursor {
  0%, 100% { border-right-color: rgba(255,255,255,0.6); }
  50%       { border-right-color: transparent; }
}

/* ── REDUCE MOTION SUPPORT ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrolling-content { animation: none; }
  .typing-text { animation: none; border-right-color: transparent; }
  #portal-spin-outer, #portal-spin-outer-m,
  #portal-spin-mid, #portal-spin-mid-m,
  #portal-spin-inner, #portal-spin-inner-m { animation: none; }
}