:root {
  --bg: #060810;
  --bg-soft: #0a0e18;
  --panel: #0f1522;
  --panel-hover: #131b2c;
  --text: #e8ecf4;
  --muted: #7c8ba4;
  --brand: #4da6ff;
  --brand-soft: #6ebcff;
  --brand-deep: #2d7fd8;
  --line: #1a2435;
  --line-soft: #141c2a;
  --success: #3fb950;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(77, 166, 255, 0.15);
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Rajdhani", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Background effects */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(77, 166, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(45, 127, 216, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(77, 166, 255, 0.08), transparent 60%),
    var(--bg);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(77, 166, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 166, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(77, 166, 255, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--brand-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main > a,
.nav-dropdown-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-main > a:hover,
.nav-main > a.active,
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
  color: var(--brand-soft);
}

.nav-main > a.active {
  background: rgba(77, 166, 255, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--panel-hover);
  color: var(--brand-soft);
}

.nav-dropdown-menu .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--brand));
  box-shadow: 0 0 8px var(--dot, var(--brand));
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(77, 166, 255, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(77, 166, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(77, 166, 255, 0.4);
  background: rgba(77, 166, 255, 0.06);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(77, 166, 255, 0.1);
  border: 1px solid rgba(77, 166, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-soft);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero visual / orbit */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbit {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(77, 166, 255, 0.15);
}

.orbit-ring--1 {
  animation: spin 30s linear infinite;
}

.orbit-ring--2 {
  inset: 12%;
  border-color: rgba(77, 166, 255, 0.08);
  animation: spin 20s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-logo-center {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  animation: float 4s ease-in-out infinite;
}

.hero-logo-center svg {
  width: 100%;
  filter: drop-shadow(0 8px 32px rgba(77, 166, 255, 0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.orbit-badge {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--badge-color, var(--brand));
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.orbit-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px color-mix(in srgb, var(--badge-color) 40%, transparent);
}

.orbit-badge--1 { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-badge--2 { bottom: 8%; right: 0; }
.orbit-badge--3 { top: 18%; left: 0; }

.orbit-badge--1:hover { transform: translateX(-50%) scale(1.1); }
.orbit-badge--3:hover { transform: scale(1.1); }

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center p {
  max-width: 520px;
  margin: 0.5rem auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--muted);
  margin: 0.75rem 0 0;
  font-size: 1.02rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Game cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.games-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.game-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--game-accent, var(--brand)) 50%, var(--line));
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px color-mix(in srgb, var(--game-accent, var(--brand)) 12%, transparent);
}

.game-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--game-accent, var(--brand)) 25%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-card-glow { opacity: 1; }

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.game-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--game-accent, var(--brand)) 15%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--game-accent, var(--brand)) 30%, var(--line));
  display: grid;
  place-items: center;
  color: var(--game-accent-soft, var(--brand-soft));
}

.game-card-icon svg {
  width: 28px;
  height: 28px;
}

.game-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.game-status--online {
  background: rgba(63, 185, 80, 0.12);
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.game-card-sub {
  font-size: 0.78rem;
  color: var(--game-accent-soft, var(--brand-soft));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
}

.game-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.game-card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.game-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.game-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.game-features li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.game-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--game-accent, var(--brand));
}

.game-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.game-card-actions .btn { flex: 1; }

.game-card-actions .btn-primary {
  background: linear-gradient(135deg, var(--game-accent-soft, var(--brand-soft)), var(--game-accent, var(--brand-deep)));
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(77, 166, 255, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(77, 166, 255, 0.1);
  border: 1px solid rgba(77, 166, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-soft);
  margin-bottom: 1rem;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* CTA banner */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(77, 166, 255, 0.12), rgba(45, 127, 216, 0.08));
  border: 1px solid rgba(77, 166, 255, 0.25);
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}

.cta-banner p {
  color: var(--muted);
  margin: 0;
}

/* Page hero (jogos) */
.page-hero {
  padding: 3.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.page-hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.quick-link:hover {
  border-color: color-mix(in srgb, var(--ql-accent, var(--brand)) 45%, var(--line));
  background: var(--panel-hover);
  transform: translateX(4px);
}

.quick-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ql-accent, var(--brand)) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--ql-accent, var(--brand)) 25%, var(--line));
  display: grid;
  place-items: center;
  color: var(--ql-accent, var(--brand));
  flex-shrink: 0;
}

.quick-link-icon svg { width: 24px; height: 24px; }

.quick-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quick-link-text strong { font-size: 1rem; }
.quick-link-text small { font-size: 0.82rem; color: var(--muted); }

.quick-link-arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.quick-link:hover .quick-link-arrow {
  transform: translateX(4px);
  color: var(--ql-accent, var(--brand));
}

.games-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(77, 166, 255, 0.05);
  border: 1px solid rgba(77, 166, 255, 0.15);
  border-radius: var(--radius);
}

.games-note-icon {
  color: var(--brand);
  flex-shrink: 0;
}

.games-note-icon svg { width: 24px; height: 24px; }

.games-note strong {
  display: block;
  margin-bottom: 0.25rem;
}

.games-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(6, 8, 16, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  max-width: 320px;
}

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--brand-soft); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(77, 166, 255, 0.08);
  border: 1px solid rgba(77, 166, 255, 0.2);
  color: var(--brand-soft);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-orbit { width: min(280px, 70vw); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-main.open { transform: translateX(0); }

  .nav-main > a,
  .nav-dropdown-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .game-card-actions { flex-direction: column; }
  .cta-banner { padding: 1.75rem; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
