:root {
  --bg: #0b0f17;
  --bg-2: #111827;
  --card: #151c2b;
  --line: #243049;
  --text: #e8edf6;
  --muted: #94a0b8;
  --cyan: #35e0d4;
  --cyan-dark: #0b7f78;
  --gold: #f2b63c;
  --ember: #ff6b3d;
  --discord: #5865f2;
  --radius: 18px;
  --display: "Russo One", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 23, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 20px var(--display); letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--cyan); color: #04211f; box-shadow: 0 8px 24px -8px rgba(53, 224, 212, .6); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { box-shadow: 0 8px 24px -8px rgba(88, 101, 242, .8); }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-lg { padding: 16px 30px; font-size: 18px; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(53, 224, 212, .16), transparent 70%),
    radial-gradient(50% 60% at 10% 110%, rgba(255, 107, 61, .14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); }
.accent { color: var(--cyan); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 380px; justify-self: center; width: 100%; }
.ring {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 212, .22), rgba(53, 224, 212, 0) 66%);
  border: 2px dashed rgba(53, 224, 212, .35);
  animation: spin 40s linear infinite;
}
.cat { position: relative; width: 62%; image-rendering: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); animation: bob 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* sections */
section { padding: 88px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }

.games { background: var(--bg-2); border-block: 1px solid var(--line); }
.game {
  position: relative;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(242, 182, 60, .10), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(242, 182, 60, .14); color: var(--gold);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.game h3 { font-size: clamp(34px, 5vw, 52px); margin-top: 14px; }
.game-tag { margin: 6px 0 0; color: var(--cyan); font-weight: 600; }
.game-desc { max-width: 46em; color: var(--muted); margin: 18px 0 32px; }

.features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.features li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features b { display: block; font: 32px var(--display); color: var(--gold); line-height: 1.1; }
.features span { color: var(--muted); font-size: 15px; }

.sub { margin: 0 0 16px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.heroes { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.heroes li {
  text-align: center;
  background: linear-gradient(180deg, rgba(53, 224, 212, .10), rgba(53, 224, 212, 0) 70%), var(--bg);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 10px 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.heroes li:hover { transform: translateY(-4px); border-color: var(--cyan); }
.heroes img { width: 100%; }
.heroes span { display: block; margin-top: 6px; font-weight: 800; font-size: 15px; line-height: 1.25; }

.foes { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 4px; }
.foes li { width: 88px; filter: saturate(.85) brightness(.9); transition: filter .2s ease, transform .2s ease; }
.foes li:hover { filter: none; transform: scale(1.08); }
.pets {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; align-items: center; gap: 24px;
  margin: 0 0 32px; padding: 24px;
  background: radial-gradient(70% 90% at 80% 50%, rgba(168, 120, 255, .16), transparent 70%), var(--bg);
  border: 1px solid var(--line); border-radius: 14px;
}
.pets .sub { margin-bottom: 8px; }
.pets p { margin: 0; color: var(--muted); }
.eggs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.eggs li { transition: transform .25s ease; }
.eggs li:nth-child(even) { transform: translateY(10px); }
.eggs li:hover { transform: translateY(-6px) rotate(-4deg); }
.game-note { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.studio p { color: var(--muted); max-width: 36em; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 16px 20px; }
.values b { display: block; font-size: 18px; }
.values span { color: var(--muted); }

.contact { padding-top: 0; }
.contact-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  background: linear-gradient(120deg, rgba(88, 101, 242, .25), rgba(53, 224, 212, .12)), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.contact-box .section-title { margin-bottom: 8px; }
.contact-box p { margin: 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }

@media (max-width: 960px) {
  .heroes { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .studio-grid, .pets { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; }
  .contact-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  section { padding: 64px 0; }
}
@media (max-width: 440px) {
  .heroes { grid-template-columns: repeat(2, 1fr); }
  .foes li { width: calc((100% - 12px) / 4); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
