/* Roanja City 3D — coming soon */
:root {
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --bg-card: rgba(18, 24, 32, 0.85);
  --neon: #39ff14;
  --neon-dim: #1adf00;
  --neon-glow: rgba(57, 255, 20, 0.35);
  --text: #e6edf3;
  --muted: #7d8590;
  --border: rgba(57, 255, 20, 0.28);
  --accent-pink: #ff2ea6;
  --accent-cyan: #16f4d0;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-w: 1100px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(57, 255, 20, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(22, 244, 208, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 46, 166, 0.05), transparent);
}

a {
  color: var(--neon);
  text-decoration: none;
  transition: color 0.15s, text-shadow 0.15s;
}

a:hover {
  color: #b8ff6a;
  text-shadow: 0 0 12px var(--neon-glow);
}

.mono {
  font-family: var(--font-mono);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 15, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-glow);
}

.logo span {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--neon);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-x-icon {
  font-weight: 700;
  margin-right: 2px;
}

.btn-x {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-primary {
  color: var(--bg);
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow);
}

.btn-primary:hover {
  color: var(--bg);
  background: #b8ff6a;
  box-shadow: 0 0 28px var(--neon-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--neon);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(57, 255, 20, 0.08);
}

/* Layout */
.wrap {
  width: min(var(--max-w), 100% - 40px);
  margin: 0 auto;
}

section {
  padding: 56px 0;
}

section h2 {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-shadow: 0 0 12px var(--neon-glow);
}

section .lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 32px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(22, 244, 208, 0.4);
  border-radius: 999px;
  background: rgba(22, 244, 208, 0.08);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 24px var(--neon-glow);
}

.hero .tagline {
  margin: 0 auto 28px;
  max-width: 540px;
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Media placeholders */
.media-block {
  margin-top: 8px;
}

.media-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(57, 255, 20, 0.03);
}

.media-hero video,
.media-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-hero .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(57, 255, 20, 0.03) 12px,
    rgba(57, 255, 20, 0.03) 24px
  );
}

.media-hero .placeholder.hidden {
  display: none;
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--muted);
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.placeholder-hint {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.8;
  max-width: 320px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  /* Match typical game captures (16:9); contain shows the full frame without cropping */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #060a0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-item .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(11, 15, 20, 0.6);
}

.gallery-item .placeholder.hidden {
  display: none;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.08);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon);
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Tech stack */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tech-pill {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Roadmap */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  padding-left: 0;
}

.phase {
  position: relative;
  padding: 0 0 28px 28px;
}

.phase::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--neon);
  box-shadow: 0 0 10px var(--neon-glow);
}

.phase.current::before {
  background: var(--neon);
}

.phase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.phase-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.phase-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phase-status.planned {
  color: var(--muted);
  background: rgba(125, 133, 144, 0.15);
}

.phase-status.active {
  color: var(--bg);
  background: var(--neon);
}

.phase-status.done {
  color: var(--neon);
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid var(--border);
}

.phase p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.phase ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

.phase ul li {
  margin-bottom: 4px;
}

.phase .exit {
  margin-top: 10px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-dim);
  background: rgba(57, 255, 20, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(57, 255, 20, 0.15);
}

/* Zones */
.zone-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.zone-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.zone-card.town {
  border-color: rgba(22, 244, 208, 0.35);
  background: rgba(22, 244, 208, 0.06);
}

.zone-card.industrial {
  border-color: rgba(255, 166, 87, 0.35);
  background: rgba(255, 166, 87, 0.06);
}

.zone-card.arcade {
  border-color: rgba(255, 46, 166, 0.35);
  background: rgba(255, 46, 166, 0.06);
}

.zone-card.suburbs {
  border-color: rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.04);
}

.zone-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 4px;
}

.zone-card span {
  font-size: 12px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.08), rgba(22, 244, 208, 0.05));
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .mono {
  color: var(--neon-dim);
  font-size: 12px;
}

.footer-links {
  margin: 8px 0;
  font-size: 14px;
}

.link-btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: #b8ff6a;
}

/* Contact modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.12), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.modal-close:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.modal-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--neon);
  letter-spacing: 0.04em;
}

.modal-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form .field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px var(--neon-glow);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.form-status.ok {
  color: var(--neon);
}

.form-status.err {
  color: #ff6b6b;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.modal-actions .btn-primary {
  flex: 1 1 auto;
  min-width: 140px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
  }

  section {
    padding: 40px 0;
  }
}
