:root {
  --bg: #0b0d10;
  --bg-accent: #14181d;
  --card: #161b21;
  --border: #232a31;
  --gold: #c9a24b;
  --gold-dim: #a8863a;
  --text: #f4f1ea;
  --muted: #9aa0a6;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--gold); }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

.nav-brand .byte { color: var(--gold); }

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 50% -10%, var(--bg-accent), var(--bg) 65%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.logo {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.logo .byte { color: var(--gold); }

.rule { width: 64px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1.5rem auto; }

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.cta-row { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--gold); color: #1a1407; }
.btn-primary:hover { background: var(--gold-dim); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Page content ---------- */
main { flex: 1; }

.page-head { padding: 3.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -0.02em; }
.page-head .lead { color: var(--muted); margin-top: 0.75rem; max-width: 44rem; font-size: 1.1rem; }

section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h2 { font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { color: var(--muted); max-width: 46rem; }
p + p { margin-top: 1rem; }

.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.card h3 .accent { color: var(--gold); }
.card p { font-size: 0.95rem; }

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.visit {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.visit:hover { border-bottom-color: var(--gold); }

/* ---------- Definition rows (facts) ---------- */
.facts { margin-top: 1.5rem; border-top: 1px solid var(--border); }

.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.fact-row dt { color: var(--muted); font-size: 0.95rem; }
.fact-row dd { color: var(--text); }
.fact-row dd a { word-break: break-word; }

@media (max-width: 560px) {
  .fact-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Screenshot gallery ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.shot {
  aspect-ratio: 9 / 19;
  background: var(--bg-accent);
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.5rem;
  overflow: hidden;
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Landscape media (banners / photos) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

figure.media { margin: 0; }

figure.media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
}

figure.media figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- App logo feature ---------- */
.logo-feature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.app-logo { width: 88px; height: 88px; flex-shrink: 0; }

.app-logo-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.app-logo-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

/* ---------- Contact form ---------- */
.signup { margin-top: 1.5rem; max-width: 26rem; }
.signup label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.35rem; }

.signup input,
.signup textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 1rem;
}

.signup input:focus,
.signup textarea:focus { border-color: var(--gold); }

.signup textarea { min-height: 120px; resize: vertical; }

.signup button {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1407;
  background: var(--gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signup button:hover { background: var(--gold-dim); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

footer p + p { margin-top: 0.35rem; }
footer a { color: var(--muted); }
.footer-links { margin-bottom: 0.75rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
