
:root {
  --bg: #0a0a0a;             
  --bg-elev: #0b0b10;         
  --surface: #0f0f17;        
  --text: #e5e7eb;            
  --muted: #a1a1aa;           
  --border: #1f1f2a;          

  --primary-300: #fa8b8bff;
  --primary-400: #f78a8aff;
  --primary-500: #f65c5cff;    
  --primary-600: #ed3a3aff;
  --primary-700: #d92828ff;
  --primary-800: #b62121ff;   

  --shadow-purple: 0 0 0 1px rgba(246, 92, 92, 0.15),
                   0 10px 30px -10px rgba(246, 92, 92, 0.25),
                   0 0 40px -10px rgba(255, 0, 0, 0.2);

  --radius: 14px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

main { height: 100vh; width: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
}


.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 20px; top: 12px; width: auto; height: auto; background: var(--primary-700); color: white; padding: 8px 12px; border-radius: 8px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.navbar.scrolled {
  background: rgba(10,10,14,0.25);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(246, 92, 92, 0.12);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,0.7);
}
.navbar.scrolled .brand-text { font-size: 26px; transform: translateX(-10px) scale(1.08); letter-spacing: 0.4px; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; }
.brand.small { font-size: 14px; }
.brand-mark { color: var(--primary-500); filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.45)); }
.brand-text { color: #fff; font-weight: 800; font-size: 20px; transition: transform .25s ease, font-size .25s ease, letter-spacing .25s ease; position: relative; z-index: 200; }

.menu-toggle { display: none; }
.hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: #d1c7c7ff; transition: transform .2s ease, opacity .2s ease; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.nav-link { color: #dfd7d7ff; text-decoration: none; font-weight: 500; font-size: 14px; padding: 10px 12px; border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
.nav-link:hover { color: #fff; background: rgba(246, 92, 92, 0.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.hero { padding: 0; height: 100vh; min-height: 100vh; position: relative; display: grid; place-items: center; overflow: hidden; }
.hero-inner { text-align: center; max-width: 1000px; }

.hero::before, .hero::after { content: none !important; }

.blur-field { position: fixed; inset: 0; z-index: 90; filter: blur(140px) saturate(125%); pointer-events: none; opacity: 1; transition: opacity .25s ease; clip-path: inset(0); will-change: clip-path;
  --blur-fade: 140px;
}
.blur-field.hidden { opacity: 0; }
.blob { position: absolute; aspect-ratio: 1 / 1; width: 50vmax; border-radius: 45% 55% 60% 40% / 42% 38% 62% 58%; mix-blend-mode: screen; opacity: .68; will-change: transform; transform: translateZ(0); }
.b0 { left: 50%; top: -6%; transform: translateX(-50%); width: 60vmax; background: radial-gradient(closest-side, rgba(250, 139, 139, 0.58), transparent 62%); animation: blob-move-0 9s ease-in-out infinite alternate; }
.b1 { left: 10%; top: 16%; width: 52vmax; background: radial-gradient(closest-side, rgba(250, 139, 139, 0.62), transparent 60%); animation: blob-move-1 12s ease-in-out infinite alternate; }
.b2 { right: 12%; top: 38%; width: 48vmax; background: radial-gradient(closest-side, rgba(237, 58, 58, 0.54), transparent 60%); animation: blob-move-2 13.2s ease-in-out infinite alternate-reverse; }
.b3 { left: 30%; bottom: 8%; width: 46vmax; background: radial-gradient(closest-side, rgba(234, 51, 51, 0.5), transparent 60%); animation: blob-move-3 14.4s ease-in-out infinite alternate; }
.b4 { right: 20%; bottom: 16%; width: 44vmax; background: radial-gradient(closest-side, rgba(217, 40, 40, 0.48), transparent 60%); animation: blob-move-4 12s ease-in-out infinite alternate-reverse; }

@keyframes blob-move-1 { 0% { transform: translate(0,0) scale(1); } 25% { transform: translate(50%, -40%) scale(1.08) rotate(6deg); } 50% { transform: translate(-30%, 45%) scale(1.12) rotate(-6deg); } 75% { transform: translate(35%, 25%) scale(1.08) rotate(4deg); } 100% { transform: translate(60%, -50%) scale(1.15) rotate(-6deg); } }
@keyframes blob-move-2 { 0% { transform: translate(0,0) scale(1.02); } 20% { transform: translate(-40%, 30%) scale(1.1) rotate(-6deg); } 50% { transform: translate(25%, -50%) scale(1.14) rotate(6deg); } 80% { transform: translate(-30%, 20%) scale(1.08); } 100% { transform: translate(45%, -60%) scale(1.18) rotate(-6deg); } }
@keyframes blob-move-3 { 0% { transform: translate(0,0) scale(0.98); } 30% { transform: translate(45%, 25%) scale(1.08) rotate(6deg); } 55% { transform: translate(-35%, -30%) scale(1.14) rotate(-6deg); } 85% { transform: translate(25%, 40%) scale(1.08); } 100% { transform: translate(-40%, -45%) scale(1.16) rotate(6deg); } }
@keyframes blob-move-4 { 0% { transform: translate(0,0) scale(1); } 25% { transform: translate(-45%, 35%) scale(1.1) rotate(-8deg); } 50% { transform: translate(30%, -55%) scale(1.15) rotate(8deg); } 75% { transform: translate(-25%, 25%) scale(1.1); } 100% { transform: translate(50%, -65%) scale(1.18) rotate(-8deg); } }

@keyframes blob-move-0 { 0% { transform: translate(-50%, 0) scale(1.02); } 25% { transform: translate(-35%, 18%) scale(1.08); } 50% { transform: translate(-65%, -12%) scale(1.14); } 75% { transform: translate(-40%, 24%) scale(1.1); } 100% { transform: translate(-70%, -8%) scale(1.16); } }

.b5 { left: 22%; top: 28%; width: 58vmax; background: radial-gradient(closest-side, rgba(246, 92, 92, 0.58), transparent 62%); animation: blob-move-5 12.6s ease-in-out infinite alternate; }
.b6 { left: 40%; top: 42%; width: 54vmax; background: radial-gradient(closest-side, rgba(250, 139, 139, 0.52), transparent 62%); animation: blob-move-6 11.4s ease-in-out infinite alternate-reverse; }
@keyframes blob-move-5 { 0% { transform: translate(0,0) scale(1.02); } 25% { transform: translate(35%, -30%) scale(1.1); } 50% { transform: translate(-40%, 40%) scale(1.14); } 75% { transform: translate(45%, -20%) scale(1.12); } 100% { transform: translate(-50%, 50%) scale(1.18); } }
@keyframes blob-move-6 { 0% { transform: translate(0,0) scale(0.98); } 25% { transform: translate(-30%, 25%) scale(1.08); } 50% { transform: translate(35%, -45%) scale(1.14); } 75% { transform: translate(-25%, 30%) scale(1.1); } 100% { transform: translate(45%, -55%) scale(1.18); } }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(246, 92, 92, 0.12); color: var(--primary-300); border: 1px solid rgba(246, 92, 92, 0.25); box-shadow: var(--shadow-purple); font-weight: 600; font-size: 12px; letter-spacing: .4px; }
.hero-title { margin: 18px 0 12px; font-size: clamp(32px, 7vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--primary-500), var(--primary-700)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 18px rgba(246, 92, 92, 0.25)); }

.gradient-text.typewriter { position: relative; display: inline-block; white-space: nowrap; }
.gradient-text.typewriter::after { content: ""; position: absolute; right: -2px; top: 10%; bottom: 10%; width: 2px; background: var(--primary-500); animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-subtitle { margin: 0 auto; max-width: 820px; color: var(--muted); font-size: clamp(14px, 2vw, 18px); }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .break { flex-basis: 100%; height: 0; }
.hero-highlights { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { padding: 6px 10px; border-radius: 999px; font-size: 12px; color: #d3c9c9ff; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(246, 92, 92, 0.15); }

.features { padding: 72px 0 40px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; }
.section-head p { margin: 0 auto 10px; color: var(--muted); max-width: 720px; }
.status-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 14px; justify-content: center; color: #c9c9d3; font-size: 13px; }
.status-legend li { display: inline-flex; align-items: center; gap: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

@media (min-width: 1320px) {
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.game-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid rgba(246, 92, 92, 0.16); border-radius: var(--radius); padding: 22px; overflow: hidden; transition: border-color .18s ease, transform .12s ease; }
.game-card:hover { transform: translateY(-2px); border-color: rgba(250, 139, 139, 0.35); }
.game-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.game-icon { color: var(--primary-400); width: 44px; height: 44px; display: grid; place-items: center; background: rgba(246, 92, 92, 0.1); border: 1px solid rgba(246, 92, 92, 0.22); border-radius: 12px; }
.game-top h3 { margin: 0; font-size: 18px; }
.game-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; color: #e9e9f3; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status--ok { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.28); }
.status--ok .status-dot { background: #22c55e; }
.status--manutencao { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.28); color: #ffe8a3; }
.status--manutencao .status-dot { background: #fbbf24; }
.status--offline { background: rgba(156,163,175,0.12); border-color: rgba(156,163,175,0.28); color: #d1d5db; }
.status--offline .status-dot { background: #9ca3af; }

.game-title { margin: 10px 4px 4px; font-size: 16px; font-weight: 700; color: #f2f3f9; letter-spacing: 0.02em; }
.status-row { margin-top: 8px; }

.game-thumb { height: 180px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--primary-600), var(--primary-800)); position: relative; margin-bottom: 10px; }
.game-thumb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 2px, transparent 2px 4px); opacity: 0.12; }
.game-thumb::after { content: attr(data-title); position: absolute; left: 16px; bottom: 12px; right: 16px; color: #fff; font-weight: 900; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }

.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border: 1px solid rgba(246, 92, 92, 0.16); border-radius: var(--radius); padding: 22px; overflow: hidden; box-shadow: none; }
.card::after { display: none; }
.card-icon { box-shadow: none; background: rgba(246, 92, 92, 0.1); border: 1px solid rgba(246, 92, 92, 0.22); }
.card:hover { border-color: rgba(250, 139, 139, 0.35); box-shadow: none; transform: translateY(-2px); }

.cta { padding: 56px 0 96px; }
.cta-card { position: relative; border-radius: calc(var(--radius) + 2px); padding: 28px; background: linear-gradient(180deg, rgba(237, 58, 58, 0.08), rgba(124,58,237,0.03)); border: 1px solid rgba(246, 92, 92, 0.35); box-shadow: 0 0 0 1px rgba(139,92,246,0.25), 0 30px 70px -26px rgba(139,92,246,0.45); text-align: center; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(60% 60% at 50% -10%, rgba(250, 139, 139, 0.28), transparent 50%); opacity: .7; pointer-events: none; }
.cta-card h3 { margin: 0 0 8px; font-size: clamp(20px, 3.2vw, 28px); }
.cta-card p { margin: 0 auto 16px; color: var(--muted); max-width: 680px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0); padding: 24px 0; background: var(--bg); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.footer.scrolled { opacity: 1; transform: translateY(0); pointer-events: auto; backdrop-filter: blur(8px) saturate(160%); background: var(--bg); border-top: 1px solid rgba(246, 92, 92, 0); box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, 0); }
.footer-inner { display: grid; place-items: center; gap: 10px; text-align: center; }
.footer .brand.small .brand-text { color: #ebe5e5ff; font-weight: 700; opacity: .9; }
.footer-links { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.footer a { color: #b3a7a7ff; text-decoration: none; font-size: 13px; }
.footer a:hover { color: #ffffff; text-decoration: none; }
.footer p { margin: 0; color: #a68f8fff; font-size: 12px; }

.btn { --h: 40px; height: var(--h); padding: 0 14px; border-radius: 12px; border: 1px solid rgba(246, 92, 92, 0.25); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: #ececf4; font-weight: 600; font-size: 14px; letter-spacing: 0.2px; transition: box-shadow .18s ease, transform .12s ease, background-color .18s ease, border-color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }

.btn-lg { --h: 46px; padding: 0 18px; font-size: 15px; }

.btn-primary { background: linear-gradient(180deg, var(--primary-500), var(--primary-700)); box-shadow: var(--shadow-purple); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(250, 139, 139, 0.35), 0 18px 40px -14px rgba(246, 92, 92, 0.6); border-color: rgba(250, 139, 139, 0.45); }

.btn-outline { background: transparent; border-color: rgba(246, 92, 92, 0.35); }
.btn-outline:hover { background: rgba(246, 92, 92, 0.08); border-color: rgba(250, 139, 139, 0.45); }

.btn-ghost { background: rgba(255,255,255,0.03); border-color: rgba(246, 92, 92, 0.18); }
.btn-ghost:hover { background: rgba(246, 92, 92, 0.08); border-color: rgba(250, 139, 139, 0.35); }

/* Destaque exclusivo para o botão Backup */
.btn-backup { 
  background: linear-gradient(180deg, #ff4d4d, #ff1f5a);
  border-color: rgba(255, 31, 90, 0.55);
  box-shadow: 0 0 0 1px rgba(255,77,77,0.35), 0 12px 36px -12px rgba(255,31,90,0.6), 0 0 50px -12px rgba(255,31,90,0.45);
  color: #ffffff;
}
.btn-backup:hover {
  background: linear-gradient(180deg, #ff1f5a, #e11d48);
  border-color: rgba(225, 29, 72, 0.65);
  box-shadow: 0 0 0 1px rgba(255,77,77,0.45), 0 20px 44px -16px rgba(255,31,90,0.65);
}

:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; border-radius: 8px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .95s ease, transform .95s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal { transition-delay: var(--reveal-delay, 0ms); }

@media (max-width: 900px) {
  .hamburger { display: inline-flex; }
  .nav { position: fixed; top: 72px; right: 16px; left: 16px; flex-direction: column; gap: 12px; background: rgba(10,10,14,0.78); border: 1px solid rgba(246, 92, 92, 0.18); border-radius: 14px; padding: 12px; transform-origin: top right; transform: scale(.98) translateY(-8px); opacity: 0; pointer-events: none; backdrop-filter: blur(10px) saturate(140%); box-shadow: var(--shadow-purple); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-actions { width: 100%; justify-content: stretch; }
  .nav-actions .btn { width: 100%; }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle:checked ~ .nav { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* Otimizações de performance - sem JavaScript */

/* Reduzir animações em dispositivos com pouca performance */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .blur-field { filter: blur(20px) saturate(100%); }
}

/* Otimização para dispositivos móveis */
@media (max-width: 768px) {
  .blob { 
    width: 30vmax; 
    opacity: 0.4; 
    animation-duration: 20s; /* Animações mais lentas */
  }
  .blur-field { 
    filter: blur(80px) saturate(110%); 
  }
}

/* Otimização para telas pequenas */
@media (max-width: 480px) {
  .blob { 
    width: 25vmax; 
    opacity: 0.3; 
    animation-duration: 25s;
  }
  .blur-field { 
    filter: blur(60px) saturate(105%); 
  }
}

/* Otimização para dispositivos de baixa performance */
@media (max-width: 1024px) and (max-height: 768px) {
  .blob { 
    animation-duration: 15s; 
    opacity: 0.5;
  }
}

/* Hardware acceleration para todos os elementos animados */
.blob, .blur-field, .hero-title, .btn {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Otimização de scroll */
html {
  scroll-behavior: smooth;
}

/* Reduzir complexidade em dispositivos antigos */
@media (max-width: 320px) {
  .blob { display: none; }
  .blur-field { filter: blur(40px) saturate(100%); }
}

/* ==============================
   Modal (Free Previews)
   ============================== */
body.modal-open { overflow: hidden; }

.modal-overlay { 
  position: fixed; inset: 0; 
  background: rgba(10,10,14,0.6); 
  backdrop-filter: blur(10px) saturate(140%);
  display: grid; place-items: center; 
  z-index: 1000; 
  opacity: 0; pointer-events: none; 
  transition: opacity .22s ease, background .22s ease, backdrop-filter .22s ease;
}
.modal-overlay.open { 
  opacity: 1; 
  pointer-events: auto; 
  /* More transparent and neutral backdrop */
  background: rgba(10,10,12,0.48);
  backdrop-filter: blur(12px);
}

/* Dim blobs when modal open */
body.modal-open .blur-field { opacity: 0.18; }

.modal {
  position: relative;
  width: min(560px, 92vw);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.42));
  border: 1px solid rgba(246, 92, 92, 0.28);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-purple);
}

.modal-header { margin-bottom: 12px; }
.modal-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: #ffffff; text-shadow: 0 1px 1px rgba(0,0,0,0.35); }
.modal-note { margin: 0; color: #d7d7dd; font-size: 14px; text-shadow: 0 1px 1px rgba(0,0,0,0.25); }

.key-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.key-input { 
  flex: 1; height: 46px; 
  border-radius: 12px; 
  border: 1px solid rgba(246, 92, 92, 0.25);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.4px;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.key-input:hover { background: rgba(246, 92, 92, 0.06); border-color: rgba(246, 92, 92, 0.35); }
.key-input.copied { box-shadow: 0 0 0 2px rgba(246, 92, 92, 0.35); }

.copy-btn { min-width: 96px; }

.modal-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

.modal-close {
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(246, 92, 92, 0.18);
  background: rgba(255,255,255,0.03);
  color: #e6e6f0;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.modal-close:hover { background: rgba(246, 92, 92, 0.08); border-color: rgba(246, 92, 92, 0.35); transform: translateY(-1px); }
