:root {
  --bg: #07070b;
  --bg-elevated: #101018;
  --ink: #f4f2fa;
  --muted: #a39eb8;
  --line: rgba(168, 140, 255, 0.18);
  --blue: #3d6bff;
  --violet: #9b5cff;
  --glow: rgba(88, 70, 255, 0.35);
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Outfit", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(61, 107, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(155, 92, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(61, 107, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #05050a 0%, var(--bg) 40%, #090912 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #c4b0ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #ebe4ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 7, 11, 0.88) 100%),
    radial-gradient(circle at 50% 40%, rgba(88, 70, 255, 0.2), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.hero-logo {
  width: min(100%, 420px);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 0 40px var(--glow));
  animation: rise 1s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  animation: rise 1s var(--ease) 0.12s both;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 1s var(--ease) 0.22s both;
}

.discord-cta {
  display: block;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  color: #e8e4ff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(155, 92, 255, 0.12)),
    #0c0c14;
  border: 1px solid rgba(88, 101, 242, 0.45);
  box-shadow: 0 18px 50px rgba(61, 107, 255, 0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: rise 1s var(--ease) 0.34s both, pulse-glow 3.4s ease-in-out 1.2s infinite;
}

.discord-cta:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(155, 92, 255, 0.7);
  box-shadow: 0 24px 60px rgba(155, 92, 255, 0.35);
}

.discord-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  padding: 1rem 1.6rem;
  min-width: min(100%, 280px);
}

.discord-cta-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: #7289da;
}

.discord-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}

.discord-cta-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8b2d6;
}

.discord-cta-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c4b8ff;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-tight {
  padding-top: 0;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
}

.section-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--ink);
}

.game-showcase {
  display: grid;
  gap: 3rem;
}

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

.game-feature-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61, 107, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(155, 92, 255, 0.28), transparent 50%),
    #0c0c14;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

a.game-feature-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(61, 107, 255, 0.22);
}

.game-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Temporary: logo sits centered until real key art is dropped in */
.game-feature-media img[src*="icon.png"] {
  width: min(28%, 180px);
  height: auto;
  margin: auto;
  position: absolute;
  inset: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 28px var(--glow));
  opacity: 0.92;
}

.game-feature-body {
  max-width: 40rem;
}

.game-feature-status {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ff;
}

.game-feature-body h2,
.game-feature-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.game-feature-body h2 a,
.game-feature-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.game-feature-body h2 a:hover,
.game-feature-body h3 a:hover {
  color: #ebe4ff;
}

.game-feature-body p:last-child {
  margin: 0;
  color: var(--muted);
}

.devlog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.devlog-item {
  display: block;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding-left 0.35s var(--ease);
}

.devlog-item:hover {
  padding-left: 0.35rem;
}

.devlog-item:hover h2,
.devlog-item:hover h3 {
  color: #ebe4ff;
}

.devlog-item time {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f89a8;
}

.devlog-item h2,
.devlog-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.devlog-item p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.post {
  width: min(100% - 2rem, 720px);
  margin: 0 auto 5rem;
  padding-top: 3.5rem;
}

.post-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f89a8;
}

.post-meta a {
  color: #8f89a8;
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--ink);
}

.post-header h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
}

.post-body p,
.post-body li {
  color: #d7d3e6;
}

.post-body p {
  margin: 0 0 1.15rem;
}

.post-body ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.contact-list span {
  color: var(--muted);
  min-width: 5.5rem;
}

.page-hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.coming-soon {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 5rem;
  min-height: 42vh;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 107, 255, 0.16), transparent 55%),
    rgba(16, 16, 24, 0.55);
  padding: 3rem 1.5rem;
}

.coming-soon h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coming-soon p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.policy {
  width: min(100% - 2rem, 760px);
  margin: 0 auto 5rem;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.policy-meta p {
  margin: 0.25rem 0;
}

.policy h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.policy h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
}

.policy p,
.policy li {
  color: #d7d3e6;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.policy th {
  background: rgba(155, 92, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.1rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35), 0 18px 50px rgba(61, 107, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.5), 0 22px 58px rgba(155, 92, 255, 0.32);
  }
}

@media (max-width: 640px) {
  .nav-brand span {
    display: none;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero-inner {
    padding: 3.25rem 0 4rem;
  }

  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-feature-media img[src*="icon.png"] {
    width: min(36%, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
