/* ==========================================================================
   GenshinCC — static build
   Plain CSS port of the original React/Tailwind design.
   ========================================================================== */

:root {
  /* Dark palette */
  --midnight-950: #05060d;
  --midnight-900: #0a0c1a;
  --midnight-800: #0f1226;
  --midnight-700: #161a36;

  /* Accent */
  --accent-100: #dcd5ff;
  --accent-200: #b9aaff;
  --accent-300: #967fff;
  --accent-400: #7355ff;
  --accent-500: #5a3aff;
  --accent-600: #4520e6;
  --accent-700: #3618b3;
  --accent-900: #1c0c4d;

  --cyan-glow: #5fe7ff;

  /* Slate (text) */
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;

  /* Game accents */
  --amber-300: #fcd34d;
  --violet-300: #c4b5fd;
  --pink-300: #f9a8d4;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;

  --maxw: 80rem;      /* max-w-7xl */
  --maxw-4xl: 56rem;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Offset anchor targets so they clear the fixed navbar */
section[id] {
  scroll-margin-top: 5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-200);
  background-color: var(--midnight-950);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(115, 85, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(95, 231, 255, 0.10), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(115, 85, 255, 0.12), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(90, 58, 255, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #05060d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3618b3, #5a3aff);
  border-radius: 8px;
  border: 2px solid #05060d;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a3aff, #7355ff);
}

/* --------------------------------------------------------------------------
   Helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.container-narrow {
  max-width: var(--maxw-4xl);
  margin-inline: auto;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .container-narrow { padding-inline: 2rem; }
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-hover {
  transition: all 0.3s ease;
}
.glass-hover:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.text-gradient {
  background-image: linear-gradient(135deg, #ffffff 0%, #b9aaff 50%, #5fe7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-accent {
  background-image: linear-gradient(135deg, #7355ff 0%, #5fe7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  position: relative;
  padding-block: 6rem;
  padding-inline: 1.25rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .section {
    padding-block: 8rem;
    padding-inline: 2rem;
  }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-300);
  font-weight: 600;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  margin-top: 0.75rem;
  background-image: linear-gradient(135deg, #ffffff 0%, #b9aaff 50%, #5fe7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  margin: 1rem auto 0;
  font-size: 1rem;
  color: var(--slate-400);
  max-width: 42rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .section-subtitle { font-size: 1.125rem; }
}

.section-head {
  text-align: center;
}

/* Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(to right, var(--accent-500), var(--accent-400));
  box-shadow: 0 10px 15px -3px rgba(69, 32, 230, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(90, 58, 255, 0.5);
  transform: scale(1.02);
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-200);
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Background FX
   -------------------------------------------------------------------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 9999px;
}
.orb-1 {
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(115, 85, 255, 0.35) 0%, transparent 70%);
  animation: orb1 24s ease-in-out infinite;
}
.orb-2 {
  top: 40%;
  right: 5%;
  width: 600px;
  height: 600px;
  filter: blur(140px);
  background: radial-gradient(circle, rgba(95, 231, 255, 0.18) 0%, transparent 70%);
  animation: orb2 30s ease-in-out infinite;
}
.orb-3 {
  bottom: 5%;
  left: 30%;
  width: 450px;
  height: 450px;
  filter: blur(110px);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, transparent 70%);
  animation: orb3 28s ease-in-out infinite;
}
@keyframes orb1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(60px, -40px); }
  50% { transform: translate(-30px, 30px); }
  75% { transform: translate(0, 0); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-80px, 50px); }
  50% { transform: translate(40px, -30px); }
  75% { transform: translate(0, 0); }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -30px); }
  50% { transform: translate(-50px, 40px); }
  75% { transform: translate(0, 0); }
}
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}
.bg-topfade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10rem;
  background-image: linear-gradient(to bottom, var(--midnight-950), transparent);
}

/* --------------------------------------------------------------------------
   Decorative characters
   -------------------------------------------------------------------------- */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.deco img {
  height: 100%;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
}
.deco-left { left: -10%; }
.deco-right { right: -10%; }
.deco img.flip { transform: scaleX(-1); }
@media (max-width: 767px) {
  .deco.md-only { display: none; }
}
@media (max-width: 1023px) {
  .deco.lg-only { display: none; }
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(5, 6, 13, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) {
  .navbar-inner { padding-inline: 2rem; height: 5rem; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-logo {
  position: relative;
  height: 2.25rem;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo .glow {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background-image: linear-gradient(to bottom right, var(--accent-500), var(--cyan-glow));
  opacity: 0.9;
}
.brand-logo .inner {
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: var(--midnight-950);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  background-image: linear-gradient(to right, var(--accent-400), var(--cyan-glow));
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .nav-actions { display: flex; }
}
.nav-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--slate-300);
}
.nav-toggle:hover { color: #fff; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.mobile-menu {
  display: none;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 6, 13, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu-inner {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu-inner a {
  color: var(--slate-300);
  padding-block: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.mobile-menu-inner a:hover { color: #fff; }
.mobile-menu-inner .mm-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-menu-inner .btn-primary { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 3rem;
  padding-inline: 1.25rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 9rem;
    padding-bottom: 5rem;
    padding-inline: 2rem;
  }
}
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--slate-300);
}
@media (min-width: 768px) {
  .hero-badge { font-size: 0.875rem; }
}
.ping {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}
.ping-outer {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--accent-400);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ping-inner {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--accent-400);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.hero-badge .icon { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: all 0.3s ease; }
.hero-badge:hover .icon { opacity: 1; transform: translateX(0); }

.hero-title {
  margin-top: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 3rem;
  line-height: 1.05;
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-title .white { color: #fff; }

.hero-desc {
  margin-top: 1.75rem;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--slate-400);
  line-height: 1.6;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.125rem; } }
.hero-desc .strong { color: #fff; font-weight: 600; }
.hero-desc .gi { color: rgba(252, 211, 77, 0.9); }
.hero-desc .hsr { color: rgba(196, 181, 253, 0.9); }
.hero-desc .zzz { color: rgba(249, 168, 212, 0.9); }

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

/* Launcher window */
.launcher {
  position: relative;
  margin-top: 4rem;
}
@media (min-width: 768px) { .launcher { margin-top: 6rem; } }
.launcher-glow {
  position: absolute;
  left: -2.5rem;
  right: -2.5rem;
  top: -1.5rem;
  bottom: -1.5rem;
  background-image: linear-gradient(to top right, rgba(90, 58, 255, 0.2), rgba(95, 231, 255, 0.15), transparent);
  border-radius: 2rem;
  filter: blur(48px);
}
.launcher-window {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.launcher-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.dots { display: flex; gap: 0.375rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.dot.red { background: rgba(251, 113, 133, 0.8); }
.dot.amber { background: rgba(252, 211, 77, 0.8); }
.dot.green { background: rgba(52, 211, 153, 0.8); }
.chrome-path {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  font-family: ui-monospace, monospace;
}
.chrome-status {
  margin-left: auto;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.launcher-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .launcher-body { grid-template-columns: 260px 1fr; }
}
.launcher-sidebar {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}
@media (min-width: 768px) { .launcher-sidebar { display: flex; } }
.sidebar-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  cursor: pointer;
  transition: background 0.2s ease;
}
.sidebar-item:hover { background: rgba(255, 255, 255, 0.04); }
.sidebar-item.active {
  background: rgba(90, 58, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(90, 58, 255, 0.3);
}
.launcher-main { padding: 1.25rem; }
@media (min-width: 768px) { .launcher-main { padding: 1.75rem; } }
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.profile-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.badge-online {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-300);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}
.dot-pulse {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--emerald-400);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-cell {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
}
.stat-cell .k {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.stat-cell .v {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.125rem;
}
.console {
  margin-top: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 1rem;
  color: var(--slate-300);
}
.console .ok { color: var(--emerald-400); }
.console .info { color: #67e8f9; }
.console .cmd { color: var(--amber-300); }
.console .prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.console .arrow { color: var(--accent-300); }
.caret {
  display: inline-block;
  height: 0.75rem;
  width: 0.5rem;
  background: var(--accent-300);
  animation: pulse 1.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: hidden;
  display: block;
}
.feature-card .flair {
  position: absolute;
  top: -50%;
  right: -25%;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(48px);
  background: radial-gradient(circle, rgba(115, 85, 255, 0.18), transparent 60%);
}
.feature-card:hover .flair { opacity: 1; }
.feature-avatar {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  height: 6rem;
  width: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.5s ease, filter 0.5s ease;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  filter: grayscale(1);
  pointer-events: none;
}
.feature-card:hover .feature-avatar {
  opacity: 0.6;
  filter: grayscale(0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.feature-inner { position: relative; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
  background-image: linear-gradient(to bottom right, rgba(90, 58, 255, 0.2), rgba(95, 231, 255, 0.1));
  border: 1px solid rgba(115, 85, 255, 0.2);
  color: var(--accent-300);
  margin-bottom: 1rem;
}
.feature-icon .icon { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Screenshots / In Development
   -------------------------------------------------------------------------- */
.cards-3 {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.dev-card {
  position: relative;
  border-radius: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dev-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--midnight-900);
}
.dev-shot .tint { position: absolute; inset: 0; opacity: 0.25; }
.dev-shot .radial { position: absolute; inset: 0; }
.dev-shot img {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
}
.dev-card:hover .dev-shot img { transform: scale(1.02); }
.dev-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.tag-unreleased {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: rgba(244, 63, 94, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: var(--rose-100);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.tag-unreleased .d {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--rose-400);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.tag-beta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.625rem;
}
.tag-beta .icon { width: 10px; height: 10px; }
.dev-shot .bottomfade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background-image: linear-gradient(to top, var(--midnight-950), transparent);
}
.dev-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dev-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.dev-body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-300);
  line-height: 1.6;
  flex: 1;
}
.dev-cta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.dev-card:hover .dev-cta { color: #fff; }
.dev-cta .icon { width: 12px; height: 12px; transition: transform 0.3s ease; }
.dev-card:hover .dev-cta .icon { transform: translateX(4px); }
.card-ring {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
  transition: box-shadow 0.5s ease;
  pointer-events: none;
}
.dev-card:hover .card-ring { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */
.dl-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }

.dl-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}
.dl-card:hover { transform: translateY(-6px); }
.dl-flair {
  position: absolute;
  top: -50%;
  right: -33%;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  opacity: 0.25;
  transition: opacity 0.5s ease;
  filter: blur(48px);
}
.dl-card:hover .dl-flair { opacity: 0.5; }
.dl-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.dl-head-text { flex: 1; min-width: 0; }
.dl-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.dl-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.375rem;
  line-height: 1.2;
}
.dl-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}
.dl-avatar-glow {
  position: absolute;
  inset: -0.25rem;
  border-radius: 9999px;
  opacity: 0.6;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}
.dl-card:hover .dl-avatar-glow { opacity: 1; }
.dl-avatar {
  position: relative;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 10px 15px -3px rgba(0,0,0,0.3);
  background: var(--midnight-800);
}
.dl-avatar .tint { position: absolute; inset: 0; opacity: 0.3; }
.dl-avatar img { position: relative; height: 100%; width: 100%; object-fit: cover; }
.dl-meta {
  position: relative;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-family: ui-monospace, monospace;
  flex-wrap: wrap;
}
.dl-meta .sep { width: 0.25rem; height: 0.25rem; border-radius: 9999px; background: var(--slate-600); }
.dl-desc {
  position: relative;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
  flex: 1;
}
.dl-actions {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.dl-btn:hover { transform: scale(1.02); }
.dl-btn:active { transform: scale(0.98); }
.dl-btn .arrow { opacity: 0.6; transition: all 0.3s ease; width: 14px; height: 14px; }
.dl-card:hover .dl-btn .arrow { opacity: 1; transform: translateX(4px); }
.dl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.dl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Installation
   -------------------------------------------------------------------------- */
.timeline {
  margin-top: 4rem;
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 1.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background-image: linear-gradient(to bottom, rgba(115,85,255,0), rgba(115,85,255,0.4), rgba(115,85,255,0));
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step {
  position: relative;
  padding-left: 5rem;
}
.step-bubble {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-bubble .box {
  position: relative;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, rgba(90,58,255,0.25), rgba(95,231,255,0.15));
  border: 1px solid rgba(115,85,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-200);
  box-shadow: 0 10px 15px -3px rgba(28,12,77,0.4);
}
.step-bubble .box .icon { width: 22px; height: 22px; }
.step-num {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 9999px;
  background: var(--midnight-950);
  border: 1px solid rgba(115,85,255,0.6);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-100);
}
.step-card {
  border-radius: 1rem;
  padding: 1.25rem;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
@media (min-width: 768px) { .step-card h3 { font-size: 1.125rem; } }
.step-card p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
}
.step-card code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: rgba(90,58,255,0.15);
  border: 1px solid rgba(115,85,255,0.3);
  color: var(--accent-100);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.disclaimer {
  margin-top: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(252,211,77,0.15);
}
.disclaimer .icon { width: 18px; height: 18px; color: var(--amber-300); flex-shrink: 0; margin-top: 0.125rem; }
.disclaimer p {
  font-size: 0.875rem;
  color: var(--slate-300);
  line-height: 1.6;
}
.disclaimer p .strong { font-weight: 600; color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 10;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 13, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 3rem 1.25rem;
}
@media (min-width: 768px) { .footer-inner { padding-inline: 2rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand-col { }
@media (min-width: 768px) { .footer-brand-col { grid-column: span 2; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer-logo {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.75rem;
  background-image: linear-gradient(to bottom right, var(--accent-500), var(--cyan-glow));
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  max-width: 28rem;
  line-height: 1.6;
}
.socials {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.social {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  transition: all 0.2s ease;
}
.social:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.footer-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  font-weight: 600;
}
.footer-col ul {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--slate-300);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}
.footer-bottom .copy, .footer-bottom .made {
  font-size: 0.75rem;
  color: var(--slate-500);
}
.footer-bottom .made {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.footer-bottom .made .icon {
  width: 12px;
  height: 12px;
  color: var(--rose-400);
  fill: var(--rose-400);
}

/* --------------------------------------------------------------------------
   Game accent helpers (gradients / glows applied via data-game)
   -------------------------------------------------------------------------- */
.grad-genshin { background-image: linear-gradient(to bottom right, #fbbf24, #f97316); }
.grad-hsr     { background-image: linear-gradient(to bottom right, #a78bfa, #d946ef); }
.grad-zzz     { background-image: linear-gradient(to bottom right, #f472b6, #f43f5e); }

.grad-r-genshin { background-image: linear-gradient(to right, #fbbf24, #f97316); }
.grad-r-hsr     { background-image: linear-gradient(to right, #a78bfa, #d946ef); }
.grad-r-zzz     { background-image: linear-gradient(to right, #f472b6, #f43f5e); }

/* --------------------------------------------------------------------------
   Scroll reveal animation (JS-driven)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.reveal-x {
  transform: translateX(-16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero load-in animation */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.loaded .hero-anim {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim { transition: none; opacity: 1; transform: none; }
  .orb-1, .orb-2, .orb-3 { animation: none; }
}
