/* === Base Reset-ish === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #13182b 0, #080a14 55%, #04040a 100%);
  color: #f5f5f7;
  min-height: 100vh;
}

/* === Layout Helpers === */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.section-heading p {
  margin: 0;
  color: #a9b0d4;
  font-size: 0.95rem;
}

/* === Header / Nav === */
.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #ffb347;
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 2px dashed #ffdf7a;
  animation: spin-loop 6s linear infinite;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #c4c9f0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.25rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
}

.hero-text h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
}

.hero-text p {
  margin: 0;
  color: #b1b7dd;
  max-width: 32rem;
  line-height: 1.5;
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ffb347, #ff7a7a);
  color: #1a1022;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e0e4ff;
  background: transparent;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f5f5f7;
  font-size: 0.88rem;
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* === Hero Visual === */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.loop-orbit {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  position: relative;
}

.loop-orbit::before {
  content: "";
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255, 180, 102, 0.7);
  box-shadow: 0 0 18px rgba(255, 180, 102, 0.5);
}

.loop-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 12px rgba(255, 180, 102, 0.8);
}

.dot-1 {
  animation: orbit 6s linear infinite;
}

.dot-2 {
  animation: orbit 8s linear infinite reverse;
  opacity: 0.8;
}

.dot-3 {
  animation: orbit 10s linear infinite;
  opacity: 0.6;
}

.hero-caption {
  margin: 0;
  font-size: 0.85rem;
  color: #8f95c0;
}

/* === Games Grid === */
.games {
  padding: 1rem 0 2.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: rgba(9, 12, 26, 0.9);
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.game-card h3 {
  margin: 0.1rem 0 0.15rem;
  font-size: 1.1rem;
}

.game-card p {
  margin: 0;
  color: #aeb4da;
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffdf7a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-card .btn {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.game-card--placeholder .game-tag {
  color: #9fd3ff;
}

/* === About === */
.about {
  padding: 1rem 0 2.5rem;
}

.about-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  color: #c1c6e8;
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-note {
  color: #ffdf7a;
  font-size: 0.9rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7f84a7;
}

/* === Animations === */
@keyframes spin-loop {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(80px);
  }
  100% {
    transform: rotate(360deg) translateX(80px);
  }
}

/* === Responsive === */
@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav {
    margin-left: -0.4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  main {
    padding-inline: 1rem;
  }
}
