/* ============================================================
   BLOCKBURG — landing page styles (NIGHT CITY brand)
   Palette: bg #0a111f · card #131d33 · text #eaf2ff
            accent cyan #38d6ff · amber #ffb454 · green #43d17c
   ============================================================ */

:root {
  --bg: #0a111f;
  --bg-alt: #0d1526;
  --card: #131d33;
  --card-edge: rgba(120, 170, 255, 0.14);
  --ink: #eaf2ff;
  --ink-soft: #9fb0c8;
  --ink-dim: #5c6c85;
  --cyan: #4ce087;
  --cyan-deep: #23a35d;
  --amber: #ffb454;
  --amber-deep: #d98a25;
  --green: #43d17c;
  --green-deep: #2ba75d;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.35);
}

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

[hidden] { display: none !important; }

/* modern display face, bundled locally (no CDN) */
@font-face {
  font-family: "Space Grotesk";
  src: url("../aset/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark, .btn, .nav-links a, .nav-ca,
.hero-badge, .hero-launch, .cd-cell b, .launch-label {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- wordmark ---------- */
.wordmark {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}
.wm-accent { color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #5ee89a 0%, #23a35d 100%);
  color: #04230f;
  box-shadow: 0 6px 0 #17804a, 0 10px 30px rgba(76, 224, 135, 0.28);
}
.btn-primary:active { box-shadow: 0 2px 0 #17804a; }

.btn-buy {
  background: linear-gradient(135deg, #ffc266 0%, #f09a2e 100%);
  color: #331d02;
  box-shadow: 0 6px 0 #b06f14, 0 10px 30px rgba(255, 180, 84, 0.25);
}
.btn-buy:active { box-shadow: 0 2px 0 #b06f14; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(120, 170, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
}
.nav-logo { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a:hover { color: var(--cyan); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-ca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76, 224, 135, 0.08);
  border: 1px solid rgba(76, 224, 135, 0.35);
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  max-width: 220px;
}
.nav-ca:hover { background: rgba(76, 224, 135, 0.16); }
.nav-ca .nav-ca-label { color: var(--ink-soft); }
#nav-ca-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}

/* ---------- hero (full-bleed Kenney night city; copy sits on a left scrim) ---------- */
.hero {
  position: relative;
  min-height: 720px;
  height: 90vh;
  max-height: 960px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(76, 224, 135, 0.16), transparent 62%),
    radial-gradient(900px 460px at 12% 0%, rgba(76, 224, 135, 0.10), transparent 60%),
    linear-gradient(180deg, #070d1a 0%, #0b1428 52%, #14213c 100%);
}
/* CSS starfield */
.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.7;
}
.stars-a {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #cfeaff 60%, transparent 100%),
    radial-gradient(1.1px 1.1px at 128px 90px, #ffffff 60%, transparent 100%),
    radial-gradient(1.6px 1.6px at 231px 51px, #9fd4ff 60%, transparent 100%),
    radial-gradient(1px 1px at 316px 140px, #ffffff 60%, transparent 100%),
    radial-gradient(1.3px 1.3px at 82px 191px, #cfeaff 60%, transparent 100%);
  background-size: 380px 240px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars-b {
  background-image:
    radial-gradient(1px 1px at 61px 121px, #ffffff 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 175px 22px, #ffd9a0 60%, transparent 100%),
    radial-gradient(1px 1px at 274px 187px, #cfeaff 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 351px 74px, #ffffff 60%, transparent 100%);
  background-size: 420px 260px;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.85; } }

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* readability panel: solid on the left where the copy lives,
   fading out so the Kenney city owns the right side */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7, 13, 26, 0.97) 0%,
      rgba(7, 13, 26, 0.88) 30%,
      rgba(7, 13, 26, 0.45) 52%,
      rgba(7, 13, 26, 0.05) 70%,
      transparent 82%),
    linear-gradient(0deg, rgba(10, 17, 31, 0.9) 0%, transparent 18%),
    linear-gradient(180deg, rgba(7, 13, 26, 0.5) 0%, transparent 14%);
}
.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.hero-copy { text-align: left; max-width: 560px; }

.hero-badge {
  display: inline-block;
  background: rgba(19, 29, 51, 0.85);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.0;
  color: #fff;
}
.hero-title .wm-accent { text-shadow: 0 0 40px rgba(76, 224, 135, 0.45); }
.hero-tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--cyan);
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
}
.hero-sub {
  margin: 16px 0 0;
  max-width: 520px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-launch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  background: rgba(19, 29, 51, 0.9);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.hero-launch b { color: var(--amber); font-weight: 700; }
.hero-launch-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  color: var(--amber);
  letter-spacing: 1.5px;
}
.hero-hint {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}


/* ---------- sections ---------- */
.section {
  padding: 84px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid rgba(120, 170, 255, 0.07);
  border-bottom: 1px solid rgba(120, 170, 255, 0.07);
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
  color: #fff;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(76, 224, 135, 0.4); }
.card-icon { font-size: 40px; margin-bottom: 12px; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.card p { color: var(--ink-soft); font-size: 15px; font-weight: 500; }

/* ---------- how to play ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #59e298 0%, #2ba75d 100%);
  color: #06210f;
  font-weight: 900;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 0 #1d7a42;
}
.step h3 { font-weight: 800; margin-bottom: 6px; color: #fff; }
.step p { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }

.howto-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.keycap img { width: 40px; height: 40px; filter: invert(0.92) hue-rotate(180deg); }
.keys-label {
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 18px 0 6px;
  font-size: 14px;
}

/* ---------- launch countdown ---------- */
.launch-box {
  max-width: 680px;
  margin: 0 auto 26px;
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.10) 0%, rgba(19, 29, 51, 0.6) 100%);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px 22px;
  text-align: center;
}
.launch-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.launch-label b { color: var(--amber); }
.launch-label.live { color: var(--green); }

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.cd-cell {
  background: rgba(10, 17, 31, 0.85);
  border: 1px solid rgba(255, 180, 84, 0.28);
  border-radius: 14px;
  min-width: 86px;
  padding: 12px 10px 10px;
}
.cd-cell b {
  display: block;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-shadow: 0 0 26px rgba(255, 180, 84, 0.35);
}
.cd-cell span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  margin-top: 4px;
}
.cd-sep {
  font-size: 34px;
  font-weight: 900;
  color: rgba(255, 180, 84, 0.5);
  padding-top: 10px;
}

/* ---------- token ---------- */
.token-box {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 30px;
  text-align: center;
}
.token-row { margin-bottom: 22px; }
.token-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.ca-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ca-wrap code {
  background: rgba(10, 17, 31, 0.85);
  border: 1px solid rgba(76, 224, 135, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
  max-width: 100%;
}
.token-actions { margin-top: 6px; }
.token-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 600;
}

/* ---------- socials ---------- */
.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  padding: 12px 26px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.social-link:hover { transform: translateY(-3px); color: var(--cyan); border-color: rgba(76, 224, 135, 0.45); }
.social-ico { width: 20px; height: 20px; display: block; }
.socials-empty {
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 46px 20px 40px;
  background: #060b16;
  color: var(--ink-soft);
  border-top: 1px solid rgba(120, 170, 255, 0.08);
}
.footer-brand { font-size: 26px; }
.footer-note { margin-top: 8px; font-size: 14px; font-weight: 600; }
.footer-credit { margin-top: 6px; font-size: 12.5px; opacity: 0.7; }
.footer-credit a { color: var(--cyan); }

/* ---------- toast (CA copy feedback) ---------- */
.site-toast {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(19, 29, 51, 0.96);
  border: 1px solid rgba(76, 224, 135, 0.4);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: var(--shadow);
  animation: site-toast-in 0.2s ease, site-toast-out 0.3s ease 2.2s forwards;
}
@keyframes site-toast-in { from { transform: translate(-50%, -8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes site-toast-out { to { transform: translate(-50%, -8px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-launch { justify-content: center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 13, 26, 0.92) 0%, rgba(7, 13, 26, 0.78) 55%, rgba(7, 13, 26, 0.35) 100%);
  }
}
@media (max-width: 720px) {
  .nav { padding: 10px 14px; }
  .nav-ca { max-width: 150px; }
  #nav-ca-text { max-width: 64px; }
  .hero { min-height: 640px; }
  .section { padding: 60px 18px; }
  .cd-cell { min-width: 68px; }
}
