/* VibeRealm landing — pixel-art identity, dark arcade theme */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/press-start-2p.woff2) format('woff2');
}

:root {
  --bg: #0F1014;
  --bg-panel: #1A1B1E;
  --bg-card: #212228;
  --ink: #E4E4E7;
  --ink-dim: #A1A1AA;
  --gold: #F5C542;
  --grass: #4A9B42;
  --outline: #09090B;
  --accent-orange: #F97316;
  --accent-violet: #8B5CF6;
  --danger: #EF4444;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  /* subtle scanline texture */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

.pixel { font-family: 'Press Start 2P', monospace; }

img { image-rendering: pixelated; }

/* ---------- nav ---------- */

.nav {
  border-bottom: 3px solid var(--outline);
  background: var(--bg-panel);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-sprite { width: 28px; height: 28px; }
.brand-name { font-size: 13px; color: var(--gold); letter-spacing: 1px; }

.beta-badge {
  font-size: 8px;
  color: var(--bg);
  background: var(--accent-orange);
  padding: 6px 10px;
  box-shadow: 3px 3px 0 var(--outline);
}

/* ---------- hero ---------- */

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  text-align: center;
}

.hero-title {
  font-size: clamp(20px, 4.6vw, 40px);
  line-height: 1.5;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--outline);
  margin-bottom: 28px;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ink-dim);
  font-size: 18px;
}

/* ---------- signup card ---------- */

.signup-card {
  max-width: 620px;
  margin: 0 auto 56px;
  background: var(--bg-card);
  border: 3px solid var(--outline);
  box-shadow: 6px 6px 0 var(--outline), inset 0 0 0 2px rgba(255,255,255,0.04);
  padding: 28px 24px 22px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.secondary-row { margin-top: 12px; }

.text-input {
  flex: 1;
  background: var(--bg);
  border: 3px solid var(--outline);
  color: var(--ink);
  font-size: 16px;
  padding: 14px 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.text-input:focus { border-color: var(--gold); }
.text-input::placeholder { color: #52525B; }

.select-input {
  flex: 0 1 auto;
  color: var(--ink-dim);
  font-size: 14px;
  padding: 10px;
  appearance: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--grass);
  color: #fff;
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  font-size: 11px;
  line-height: 1.5;
  padding: 10px 18px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--outline);
}
.btn-primary:disabled { opacity: 0.55; cursor: wait; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}

.form-note.error { color: var(--danger); }

.success-panel { text-align: center; padding: 8px 0 4px; }
.success-title { color: var(--grass); font-size: 16px; margin-bottom: 14px; }
.success-text { color: var(--ink-dim); margin-bottom: 8px; }
.success-text strong { color: var(--gold); }
.hidden { display: none; }

/* ---------- hero scene ---------- */

.scene-frame {
  max-width: 1000px;
  margin: 0 auto;
}

.scene-img {
  width: 100%;
  display: block;
  border: 3px solid var(--outline);
  box-shadow: 8px 8px 0 var(--outline);
}

.scene-caption {
  font-size: 8px;
  color: var(--ink-dim);
  margin-top: 14px;
  letter-spacing: 1px;
}

/* ---------- sections ---------- */

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 72px 20px 24px;
  text-align: center;
}

.section-title {
  font-size: clamp(14px, 2.6vw, 22px);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--outline);
  margin-bottom: 44px;
}

.section-sub {
  color: var(--ink-dim);
  max-width: 640px;
  margin: -24px auto 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.step {
  background: var(--bg-card);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
  padding: 22px 20px;
}

.step-num {
  font-size: 22px;
  color: var(--accent-orange);
  margin-bottom: 14px;
}

.step-title { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 15px; }
.step code {
  background: var(--bg);
  border: 1px solid var(--outline);
  padding: 1px 5px;
  font-size: 13px;
  color: var(--gold);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.feature {
  background: var(--bg-card);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
  padding: 20px;
}

.feature h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--ink-dim); font-size: 14.5px; }

.classes-img {
  width: min(680px, 92%);
  background: var(--bg-panel);
  border: 3px solid var(--outline);
  box-shadow: 5px 5px 0 var(--outline);
  padding: 18px 10px 8px;
}

.class-names {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 4vw, 44px);
  flex-wrap: wrap;
  font-size: 8px;
  color: var(--ink-dim);
  margin-top: 18px;
}

.section-final { padding-bottom: 80px; }

.final-title {
  font-size: clamp(15px, 3vw, 24px);
  text-shadow: 3px 3px 0 var(--outline);
  margin-bottom: 18px;
}

.inline-link { color: var(--gold); }

.footer {
  border-top: 3px solid var(--outline);
  background: var(--bg-panel);
  text-align: center;
  padding: 26px 20px;
  color: #71717A;
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 44px; }
  .form-row { flex-direction: column; }
  .btn-primary { padding: 14px; }
}

/* ---------- github connect ---------- */

.btn-gh {
  display: inline-block;
  margin-top: 16px;
  background: #24292F;
  color: #fff;
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  font-size: 9px;
  line-height: 1.6;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-gh:hover { filter: brightness(1.25); }
.btn-gh:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--outline); }

.gh-note { font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; }
.gh-done { color: var(--grass); font-size: 10px; margin-top: 16px; line-height: 1.8; }
.gh-err { color: var(--danger); font-size: 13.5px; margin-top: 14px; }
