/* The front page (landing.html). Same tokens as the game (core.css, docs/lowcap-city/UI.md),
   repeated here because the page loads only this file: dark cards, black outlines, hard
   offset shadows, mint for the action, sun for "now". The 3D town is the background. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
}
/* The brand face, the closest match to the X banner's lettering. It has a single weight, so
   every rule that uses it sets font-weight 400: anything higher makes the browser fake a bold. */
@font-face {
  font-family: 'Paytone One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/paytone-one-latin-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --outline: #07060b;
  --ink: #14121b;
  --text: #f2eefb;
  --muted: #bcb4d4;
  --paper: #201b30;
  --paper-2: #2a2440;
  --mint: #14f195;
  --sol: #7c3aed;
  --sol-text: #b69cff;
  --sun: #ffd23f;
  --live: #e0413a;
  --bd: 2.5px solid var(--outline);
  --brand: 'Paytone One', 'Nunito', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #120f1c;
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  overflow: hidden;
}

/* --- The town behind everything ------------------------------------------------------ */
.bg,
.bg iframe,
.bg-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bg iframe {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg iframe.on {
  opacity: 1;
}
/* Darker at the top and bottom so the logo and the chips read; the middle stays the game. */
.bg-shade {
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(10, 8, 18, 0.55) 100%),
    linear-gradient(to bottom, rgba(10, 8, 18, 0.7), transparent 22%, transparent 70%, rgba(10, 8, 18, 0.85));
}

/* --- Top bar ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  z-index: 3;
}
.nav-brand {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--outline);
  background: radial-gradient(circle at 35% 30%, #fff6b8, var(--sun) 55%, #e0a400);
  color: var(--ink) !important;
  text-shadow: none !important;
  /* The coin keeps its own face: .nav a below would give it the brand font. */
  font-family: 'Nunito', system-ui, sans-serif !important;
  font-weight: 1000 !important;
  font-size: 20px;
  box-shadow: 2px 2px 0 var(--outline);
}
.nav-links {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav a,
.nav-soon {
  color: var(--sun);
  font-family: var(--brand);
  font-weight: 400;
  text-decoration: none;
  font-size: 16px;
  text-shadow: 2px 2px 0 var(--outline);
}
.nav-links a:hover {
  color: #fff;
}
.nav-soon {
  opacity: 0.5;
  cursor: default;
}
.nav-app {
  background: var(--mint);
  color: var(--ink) !important;
  text-shadow: none !important;
  border: var(--bd);
  border-radius: 12px;
  padding: 6px 18px;
  box-shadow: 3px 3px 0 var(--outline);
}

/* --- Hero ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 80px 16px 150px;
  text-align: center;
  pointer-events: none;
}
.hero a,
.hero figure {
  pointer-events: auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bob 4s ease-in-out infinite;
}
.logo-coin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: -14px;
  border-radius: 50%;
  border: 4px solid var(--outline);
  background: radial-gradient(circle at 35% 30%, #fff6b8, var(--sun) 55%, #e0a400);
  color: var(--ink);
  font-weight: 1000;
  font-size: 38px;
  box-shadow: 4px 4px 0 var(--outline);
  z-index: 1;
  animation: spin 6s ease-in-out infinite;
}
.logo-word {
  margin: 0;
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(46px, 10.5vw, 128px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #8affd0 0%, var(--mint) 45%, #0fb874 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The outline grows with the word: a fixed 7px eats the letters on a phone. */
  -webkit-text-stroke: clamp(3px, 0.55vw, 7px) var(--outline);
  paint-order: stroke fill;
  filter: drop-shadow(clamp(3px, 0.45vw, 6px) clamp(4px, 0.5vw, 7px) 0 var(--outline));
}
.logo-word span {
  background: linear-gradient(180deg, #d9c8ff 0%, #a77bff 45%, var(--sol) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.logo-tag {
  margin: 8px 0 0;
  padding: 4px 14px;
  background: var(--sun);
  color: var(--ink);
  border: var(--bd);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--outline);
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(14px, 2.2vw, 20px);
  transform: rotate(-2deg);
}

.cta {
  margin-top: 6px;
  background: var(--mint);
  color: var(--ink);
  border: 3px solid var(--outline);
  border-radius: 16px;
  padding: 14px 34px;
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(18px, 2.6vw, 26px);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--outline);
  animation: pulse 2.2s ease-in-out infinite;
}
.cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 var(--outline);
}
.cta:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--outline);
}

.pitch {
  margin: 0;
  max-width: 600px;
  font-weight: 800;
  font-size: clamp(15px, 2vw, 19px);
  background: rgba(20, 18, 27, 0.82);
  border-radius: 12px;
  padding: 6px 14px;
}
.pitch b {
  color: var(--sun);
}

/* One line of what the degens say in the background game, changing every few seconds. */
.say {
  margin: 6px 0 0;
  max-width: min(620px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  text-align: left;
  background: rgba(32, 27, 48, 0.94);
  border: var(--bd);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--outline);
  padding: 10px 14px;
}
/* Only the words fade: with the 3D town on the same thread a timer can run late, and the box
   must never stay hidden in between. */
.say-text,
.say-who {
  transition: opacity 0.35s ease;
}
.say.fade .say-text,
.say.fade .say-who {
  opacity: 0;
}
.say-live {
  grid-row: span 2;
  align-self: start;
  background: var(--live);
  color: #fff;
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 12px;
  font-family: var(--brand);
  font-weight: 400;
  animation: blink 1.6s steps(2) infinite;
}
.say-text {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
}
.say-who {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.say-who b {
  color: var(--sol-text);
}

/* --- Round chips --------------------------------------------------------------------- */
.chips {
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
}
.chip {
  background: rgba(32, 27, 48, 0.94);
  border: var(--bd);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--outline);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chip b {
  color: var(--mint);
  font-family: var(--brand);
  font-weight: 400;
  font-size: 18px;
}
.chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* --- Footer -------------------------------------------------------------------------- */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  z-index: 2;
  font-size: 11px;
  color: var(--muted);
}
.foot p {
  margin: 0;
}
.foot-parody {
  max-width: 640px;
}
.foot-tech {
  color: var(--mint);
  font-weight: 800;
  white-space: nowrap;
}

/* --- Motion -------------------------------------------------------------------------- */
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  0%,
  60%,
  100% {
    transform: rotateY(0);
  }
  80% {
    transform: rotateY(360deg);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 6px 6px 0 var(--outline), 0 0 0 8px rgba(20, 241, 149, 0.18);
  }
}
@keyframes blink {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo-coin,
  .cta,
  .say-live {
    animation: none;
  }
}

/* --- Phone --------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .nav {
    padding: 10px 16px;
    gap: 12px;
  }
  .nav-links a[href='#degens'],
  .nav-soon {
    display: none;
  }
  .nav-links {
    gap: 14px;
  }
  .hero {
    padding-bottom: 210px;
  }
  .chips {
    flex-wrap: wrap;
    justify-content: center;
    bottom: 64px;
  }
  .chip {
    flex: 1 1 40%;
    padding: 6px 10px;
  }
  .chip b {
    font-size: 15px;
  }
  .foot-tech {
    display: none;
  }
  .foot {
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
  }
}
