:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --bubble: rgba(125, 211, 252, 0.35);
}

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

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1e3a5f 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

.narrow {
  max-width: 680px;
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hero-actions,
.link-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.link-row {
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f172a;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.text-link {
  align-self: center;
  font-weight: 700;
  color: var(--muted);
}

.text-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* Studio hero art */
.hero-art-studio {
  position: relative;
  min-height: 280px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.orbit-1 {
  inset: 8%;
  border-style: dashed;
  animation: spin 24s linear infinite;
}

.orbit-2 {
  inset: 28%;
  animation: spin 18s linear infinite reverse;
}

.pixel {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: float 5s ease-in-out infinite;
}

.pixel-1 { top: 22%; left: 46%; }
.pixel-2 { top: 52%; left: 28%; animation-delay: -1.5s; }
.pixel-3 { top: 38%; right: 22%; animation-delay: -3s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Game hero art */
.hero-art {
  position: relative;
  min-height: 280px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--bubble));
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: float 6s ease-in-out infinite;
}

.bubble-1 { width: 90px; height: 90px; top: 20%; left: 18%; }
.bubble-2 { width: 56px; height: 56px; top: 55%; left: 8%; animation-delay: -1s; }
.bubble-3 { width: 72px; height: 72px; top: 10%; right: 20%; animation-delay: -2s; }
.bubble-4 { width: 44px; height: 44px; bottom: 12%; right: 8%; animation-delay: -3s; }

.shepherd-ring {
  position: absolute;
  inset: 12% 10%;
  border: 2px dashed rgba(167, 139, 250, 0.55);
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section {
  padding: 3rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.03);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--muted);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.game-grid {
  display: grid;
  gap: 1.25rem;
}

.game-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
}

.game-card-soon {
  opacity: 0.85;
}

.game-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bubble-icon {
  position: relative;
}

.bubble-icon span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--bubble));
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bubble-icon span:nth-child(1) { width: 28px; height: 28px; top: 14px; left: 10px; }
.bubble-icon span:nth-child(2) { width: 18px; height: 18px; bottom: 12px; left: 18px; }
.bubble-icon span:nth-child(3) { width: 22px; height: 22px; top: 18px; right: 10px; }

.soon-icon {
  font-size: 2rem;
  font-weight: 800;
  color: var(--muted);
}

.game-status {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.game-card-body p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.game-card-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
}

.store-badge-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge-title {
  font-weight: 700;
}

.prose h2 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

  .hero-art,
  .hero-art-studio {
    min-height: 200px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }
}
