
:root {
  color-scheme: dark;
  --bg: #0c0612;
  --panel: #160e20;
  --panel-2: #1e1430;
  --line: rgba(241, 225, 255, 0.14);
  --text: #f8f4fb;
  --muted: #b8adbf;
  --violet: #b875f6;
  --violet-light: #d5b4fa;
  --violet-glow: rgba(184, 117, 246, 0.35);
  --success: #6ee7a8;
  --danger: #f87171;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

/* Pixel background from assets */
.bg-layer {
  position: fixed;
  inset: -5%;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12,6,18,0.5) 0%, rgba(12,6,18,0.72) 50%, rgba(12,6,18,0.9) 100%),
    url('/bg.png') center / cover no-repeat;
  pointer-events: none;
  animation: bg-drift 28s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes bg-drift {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1.5%, 1%); }
  100% { transform: scale(1.08) translate(1%, -1.5%); }
}
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: rgba(213, 180, 250, 0.55);
  box-shadow: 0 0 6px rgba(184, 117, 246, 0.4);
  animation: particle-float linear infinite;
  opacity: 0;
}
.bg-particle.plus {
  width: 8px;
  height: 8px;
  background: transparent;
  box-shadow: none;
  opacity: 0.35;
}
.bg-particle.plus::before,
.bg-particle.plus::after {
  content: "";
  position: absolute;
  background: rgba(213, 180, 250, 0.7);
  border-radius: 1px;
}
.bg-particle.plus::before {
  width: 8px; height: 2px; top: 3px; left: 0;
}
.bg-particle.plus::after {
  width: 2px; height: 8px; top: 0; left: 3px;
}
@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  8% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) rotate(180deg); opacity: 0; }
}
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: #7c3aed; top: -10%; left: -5%; }
.orb-2 { width: 320px; height: 320px; background: #c026d3; bottom: 10%; right: -5%; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: #4c1d95; top: 40%; left: 50%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

header, main, footer { position: relative; z-index: 1; }

.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  background: rgba(12, 6, 18, 0.72);
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 24px var(--violet-glow);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--violet-glow); }
  50% { box-shadow: 0 0 36px rgba(184, 117, 246, 0.55); }
}
.brand .soft { color: var(--violet-light); }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: #e7deed;
}
.nav > a:not(.buy):not(.signin):hover { color: var(--violet-light); }


.buy, .signin, .primary-action, .openCheckout {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.buy, .primary-action, .openCheckout {
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  color: #1b1025;
}
.buy:hover, .primary-action:hover, .openCheckout:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--violet-glow);
}
.signin {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.signin:hover { border-color: #d2a3ff; }
.menu-toggle {
  display: none;
  color: white;
  border: 0;
  background: none;
  font-size: 23px;
  cursor: pointer;
}

.hero {
  min-height: min(620px, calc(100svh - 76px));
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}
.hero-content { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--violet-light);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(90deg, var(--violet-light), #e879f9, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s ease infinite;
  background-size: 200% auto;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.hero-copy {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.text-link { color: var(--violet-light); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.preorder-badge {
  margin-top: 28px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(184, 117, 246, 0.15);
  border: 1px solid rgba(184, 117, 246, 0.35);
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-light);
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,117,246,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(184,117,246,0); }
}

.section { padding: 72px 0; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 8px; font-size: 1.75rem; }
.section-heading p { margin: 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: rgba(22, 14, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s,
              box-shadow 0.35s,
              background 0.35s;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 117, 246, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(213, 180, 250, 0.08), transparent);
  transform: skewX(-20deg) translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(184, 117, 246, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(184, 117, 246, 0.12);
  background: rgba(30, 20, 48, 0.92);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { transform: skewX(-20deg) translateX(280%); }
.feature-card h3 {
  transition: color 0.3s ease;
}
.feature-card:hover h3 {
  color: var(--violet-light);
}

.feature-card h3 { margin: 0 0 8px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 700px;
}
.plan {
  background: rgba(22, 14, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}
.plan:hover { transform: translateY(-3px); }
.plan.featured {
  border-color: rgba(184, 117, 246, 0.5);
  box-shadow: 0 0 40px rgba(184, 117, 246, 0.15);
  background: linear-gradient(180deg, rgba(30,20,48,0.95), rgba(22,14,32,0.95));
}
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--violet);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-label { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 8px; }
.amount { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.amount small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.plan-perks { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-perks li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: #ddd;
}
.plan-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet-light);
}
.perk-highlight {
  color: var(--violet-light) !important;
  font-weight: 600;
}
.openCheckout { width: 100%; height: 44px; }
.pay-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
}

.download-box {
  background: rgba(22, 14, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.download-box .hint { font-size: 12px; color: var(--muted); margin-top: 12px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 40px;
  background: rgba(12,6,18,0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-brand { font-weight: 800; color: var(--text); letter-spacing: 0.06em; }
.footer-nav { display: flex; gap: 18px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(420px, 100%);
  position: relative;
  animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.modal-footnote { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.auth-modal { text-align: center; padding: 36px 28px 28px; }
.auth-hero { margin-bottom: 24px; }
.auth-logo {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  margin: 0 auto 16px; display: block;
  box-shadow: 0 0 32px var(--violet-glow);
  animation: pulse-glow 3s ease-in-out infinite;
}
.auth-modal h2 { margin: 0 0 8px; font-size: 1.5rem; }
.auth-sub {
  color: var(--muted); font-size: 0.95rem; line-height: 1.45;
  margin: 0 auto; max-width: 280px;
}
.discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px; border-radius: 10px;
  background: #5865F2; color: #fff; font-weight: 700; font-size: 14px;
  border: 0; cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.discord-icon { width: 22px; height: 22px; }
.auth-privacy { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.4; }
.auth-error { color: var(--danger) !important; min-height: 1.2em; }

.account-header {
  display: flex; align-items: center; gap: 14px;
  text-align: left; margin-bottom: 20px;
}
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--violet); object-fit: cover;
}
.account-header h2 { margin: 0 0 4px; font-size: 1.15rem; }
.account-license {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
  text-align: left; font-size: 0.9rem;
}
.account-license.active { border-color: rgba(110, 231, 168, 0.4); }
.account-license code {
  font-size: 12px; background: rgba(0,0,0,0.3);
  padding: 2px 6px; border-radius: 4px;
}
.account-actions { display: flex; gap: 10px; }
.account-actions .primary-action,
.account-actions .signin { flex: 1; height: 42px; }

.animate-in {
  animation: fadeSlide 0.7s ease both;
}
.animate-in.delay-1 { animation-delay: 0.15s; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(12, 6, 18, 0.96);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav.open { display: flex; }
}






#openAuth {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  height: 36px;
  padding: 0 16px;
}
.nav .buy {
  border-radius: 999px;
  height: 36px;
  padding: 0 18px;
}

.feature-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.feature-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-grid .feature-card.visible {
  transition-delay: 0s;
}
.feature-grid .feature-card:nth-child(1).visible { transition-delay: 0s; }
.feature-grid .feature-card:nth-child(2).visible { transition-delay: 0.08s; }
.feature-grid .feature-card:nth-child(3).visible { transition-delay: 0.16s; }
.feature-grid .feature-card:nth-child(4).visible { transition-delay: 0.24s; }

.btn-locked,
#btnDownload:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  background: #3a2a4e !important;
  color: #c4b5d4 !important;
}
.preorder-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-light);
  background: rgba(184, 117, 246, 0.15);
  border: 1px solid rgba(184, 117, 246, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}
#licenseInfo {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-old {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.75;
}
.price-new {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  vertical-align: middle;
}
.discord-discount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #7289da);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
  animation: badge-pulse 2.5s ease-in-out infinite;
}
.amount small {
  margin-left: 4px;
}


/* Language selector — larger + fully rounded pill */
.lang-wrap {
  display: inline-flex;
  align-items: center;
}
.nav select#language,
.nav select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 108px;
  width: 108px;
  height: 40px;
  padding: 0 36px 0 18px;
  border-radius: 9999px;
  border: 1px solid rgba(241, 225, 255, 0.18);
  background-color: rgba(18, 12, 28, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23e7deed' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #f8f4fb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.nav select#language:hover,
.nav select:hover {
  border-color: rgba(184, 117, 246, 0.55);
  background-color: rgba(28, 18, 42, 0.98);
}
.nav select#language:focus,
.nav select:focus {
  outline: none;
  border-color: #b875f6;
  box-shadow: 0 0 0 3px rgba(184, 117, 246, 0.3);
}
.nav select#language option,
.nav select option {
  background: #160e20;
  color: #f8f4fb;
}

/* Match header buttons to same height / pill */
.nav .buy,
.nav .signin,
#openAuth {
  height: 40px;
  border-radius: 9999px;
  padding: 0 18px;
}
#openAuth {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
