:root {
  --bg: #060608;
  --bg-alt: #0d0f18;
  --fg: #f7f7ff;
  --muted: #9aa0c3;
  --accent: #ff6eec;
  --accent-2: #19d3ff;
  --card: rgba(14, 17, 34, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font-heading: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #101431 0%, #060608 40%);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
a:hover {
  color: var(--accent-2);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
  position: relative;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--fg);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #050406;
  font-weight: 600;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-text {
  border: none;
  background: none;
  font: inherit;
  color: var(--accent-2);
  cursor: pointer;
}

.hero {
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-2);
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.hero-card .note {
  color: var(--muted);
}

.hero-orb {
  position: absolute;
  inset: auto auto -200px 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(25, 211, 255, 0.35), rgba(0, 0, 0, 0));
  filter: blur(40px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.story {
  background: var(--bg-alt);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.story-text {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.plugins .plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.plugin-card {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070810;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: cardFade 0.7s ease forwards;
}

.plugin-feature {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: linear-gradient(120deg, rgba(25, 211, 255, 0.1), rgba(255, 110, 236, 0.1));
  display: grid;
  grid-template-columns: minmax(220px, 35%) 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  align-items: center;
  min-height: 260px;
}

.plugin-feature h3 {
  margin-bottom: 0.2rem;
}

.plugin-feature picture {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}

.plugin-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugin-feature_body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plugin-feature a {
  align-self: flex-start;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.plugin-feature_media {
  overflow: hidden;
  border-radius: 1rem;
  min-height: 220px;
}

.plugin-card picture {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.plugin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.plugin-card:hover img {
  transform: scale(1.05);
}

.plugin-card_body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.plugin-card_body p {
  color: var(--muted);
}

.plugin-card_price {
  font-weight: 600;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price {
  color: var(--accent-2);
}

.plugin-card a {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}

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

.plugin-note {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.contact {
  background: #070711;
}

.games {
  background: rgba(6, 7, 15, 0.8);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.games-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  position: relative;
}

.games-card {
  border: 1px dashed var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.games-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 110, 236, 0.25) 120deg, transparent 240deg);
  animation: spinGlow 8s linear infinite;
  filter: blur(30px);
  opacity: 0.6;
}

.games-card > * {
  position: relative;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes spinGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(9, 10, 18, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  align-items: center;
  background: rgba(6, 7, 12, 0.9);
}

.contact-card_content p {
  margin: 0.2rem 0;
}

.link-card {
  text-decoration: none;
}

.link-card .link-text {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-2);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #050507;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  align-items: center;
}

.footer-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.visitor-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  color: var(--fg);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .nav ul {
    position: absolute;
    top: 3.5rem;
    right: 0;
    flex-direction: column;
    background: rgba(4, 5, 10, 0.95);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .plugin-note {
    flex-direction: column;
    align-items: flex-start;
  }
}
