/* All site colors live here (Noxis: night blue, electric cyan to violet): swap these to retheme. */
@font-face { font-family: "Exo 2"; src: url(fonts/Exo2.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #07080f;
  --bg-2: #0e1020;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(233, 236, 255, 0.10);
  --border-hover: rgba(106, 125, 255, 0.55);
  --text: #e9ecff;
  --muted: #a4aacb;
  --accent: #4fd8ff;
  --accent-2: #7b5cff;
  --accent-text: #061018;
  --brand: linear-gradient(135deg, #4fd8ff, #7b5cff);
  --glow: rgba(123, 92, 255, 0.3);
  --display: "Exo 2", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Brand line on top of every page */
.flag { height: 2px; background: linear-gradient(90deg, #4fd8ff, #7b5cff); box-shadow: 0 0 14px rgba(79, 216, 255, 0.6); }
h1, h2, h3, h4, .btn, .brand .name, .edition, .links > a, .feature .tag, summary { font-family: var(--display); }

/* ---------- Navigation ---------- */
.nav {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand .name { font-weight: 800; font-size: 19px; letter-spacing: 2px; text-transform: uppercase; }
.version {
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  background: rgba(123, 92, 255, 0.16); color: var(--accent);
}
.version[hidden] { display: none; }
.links { display: flex; align-items: center; gap: 28px; }
.links > a:not(.btn) {
  position: relative; font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: #c9cff0; padding: 6px 0; transition: color 0.15s;
}
.links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.2s;
}
.links > a:not(.btn):hover, .links > a[aria-current="page"] { color: var(--text); }
.links > a:not(.btn):hover::after, .links > a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 4px; padding: 3px; border-radius: 9px; border: 1px solid var(--border); }
.lang-switch button {
  display: grid; place-items: center; padding: 4px 6px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, background 0.15s;
}
.lang-switch button:hover { opacity: 0.9; }
.lang-switch button.active { opacity: 1; background: rgba(123, 92, 255, 0.16); }
.lang-switch img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; }

/* ---------- Buttons: calm hover, slight lift and light, no flash ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 34px rgba(123, 92, 255, 0.4); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 44px rgba(123, 92, 255, 0.55); }
.btn.glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.32); }
.btn.discord:hover { border-color: #5865f2; background: rgba(88, 101, 242, 0.22); }
.btn.small { padding: 10px 18px; font-size: 13px; }
.btn:focus-visible, .links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Sunset scene: the same layers as the in-game title screen ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; background: url(img/sky.png) center / 100% 100%; }
.scene .rays {
  position: absolute; left: 50%; top: 62%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: url(img/rays.png) center / contain no-repeat; opacity: 0.9; animation: spin 500s linear infinite;
}
.scene .sun { position: absolute; left: 50%; top: 62%; width: 62vmin; height: 62vmin; margin: -31vmin 0 0 -31vmin; background: url(img/sun.png) center / contain no-repeat; }
.scene .ridge { position: absolute; left: -30%; width: 160%; bottom: 0; background-size: 100% 100%; background-repeat: no-repeat; }
.scene .far { height: 56%; background-image: url(img/mountains_far.png); animation: drift 90s ease-in-out infinite alternate; }
.scene .mid { height: 42%; background-image: url(img/mountains_mid.png); animation: drift 57s ease-in-out infinite alternate-reverse; }
.scene .near { height: 28%; background-image: url(img/mountains_near.png); animation: drift 40s ease-in-out infinite alternate; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 8, 15, 0.8), rgba(7, 8, 15, 0) 35%, rgba(7, 8, 15, 0) 60%, var(--bg) 100%); }
.scene.dim::after { background: linear-gradient(rgba(7, 8, 15, 0.85), rgba(7, 8, 15, 0.55) 50%, var(--bg) 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } .btn, .card, .shot { transition: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.hero .center {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px 60px;
}
.hero-logo { width: 120px; height: 120px; margin-bottom: 18px; filter: drop-shadow(0 10px 40px rgba(123, 92, 255, 0.35)); }
h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 800; letter-spacing: 10px; background: linear-gradient(180deg, #fff 35%, #b9c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; filter: drop-shadow(0 6px 30px rgba(123, 92, 255, 0.45)); }
.edition { color: var(--accent); font-weight: 700; letter-spacing: 8px; text-shadow: 0 0 18px rgba(79, 216, 255, 0.55); margin-top: 12px; font-size: clamp(13px, 1.6vw, 18px); }
.tagline { color: #d6dbf7; margin: 18px 0 28px; font-size: clamp(16px, 2vw, 20px); max-width: 640px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.download-meta { margin-top: 14px; font-size: 13px; color: #b9bfdf; text-shadow: 0 1px 6px #000; }
.download-alt { margin-top: 2px; font-size: 13px; color: #b9bfdf; text-shadow: 0 1px 6px #000; }
.download-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.download-alt a:hover { color: var(--accent); }
.smartscreen {
  max-width: 480px; margin: 18px auto 0; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: rgba(7, 8, 15, 0.6); backdrop-filter: blur(8px);
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.smartscreen b { color: var(--text); font-weight: 600; }

/* ---------- Content sections ---------- */
main { position: relative; }
.section { max-width: 1150px; margin: 0 auto; padding: 80px 24px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: 1px; line-height: 1.08; }
.section h2 em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); margin: 14px 0 24px; font-size: 17px; max-width: 560px; }

.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.checks { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; width: 20px; height: 20px; flex: none; margin-top: 3px; border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat, var(--brand);
}
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 14px; }

.shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); transition: transform 0.25s ease, border-color 0.25s ease;
}
.shot:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.shot.empty { display: none; }

/* ---------- Page header (Features / FAQ) ---------- */
.page-head { position: relative; min-height: 340px; display: flex; flex-direction: column; }
.page-head .center { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px 40px; }
.page-head h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: 2px; }
.page-head .tagline { margin-bottom: 0; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 50px 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.feature .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }
.card h4 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px; transition: border-color 0.2s;
}
details:hover, details[open] { border-color: var(--border-hover); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- Community + footer ---------- */
.cta {
  max-width: 1100px; margin: 20px auto 70px; padding: 48px 24px; text-align: center;
  border-radius: 20px; border: 1px solid var(--border); background: var(--bg-2);
}
.cta h2 { font-size: 30px; font-weight: 900; }
.cta p { color: var(--muted); margin: 8px 0 22px; }

footer {
  max-width: 1200px; margin: 0 auto; padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: var(--muted); font-size: 13px;
}
footer a { transition: color 0.15s; }
footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .why, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .links { gap: 16px; }
  .links > a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .brand .name { font-size: 16px; letter-spacing: 1px; }
  .nav { padding: 14px 16px; }
}

/* Noxis: glow on hover, gradient border on cards. */
.card:hover, details:hover, details[open] { box-shadow: 0 0 0 1px rgba(106, 125, 255, 0.25), 0 14px 40px rgba(123, 92, 255, 0.18); }
.shot { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(106, 125, 255, 0.2), 0 0 80px rgba(123, 92, 255, 0.15); }
.version { background: rgba(79, 216, 255, 0.14); color: var(--accent); }
.cta { background: radial-gradient(ellipse at 50% 140%, rgba(123, 92, 255, 0.35), transparent 60%), var(--bg-2); }

/* Live "players on Noxis" counter under the download button. */
.online-now { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c8ffe4; background: rgba(7, 8, 15, 0.6); border: 1px solid rgba(110, 240, 176, 0.3); backdrop-filter: blur(8px); }
.online-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6ef0b0; box-shadow: 0 0 10px #6ef0b0; animation: live 2s ease-in-out infinite; }
.online-now[hidden] { display: none; }
@keyframes live { 50% { opacity: 0.35; } }

/* "● 12 online" badge in the nav, next to the version. */
.online-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-family: var(--display); font-size: 12px; font-weight: 700; color: #c8ffe4; background: rgba(110, 240, 176, 0.1); border: 1px solid rgba(110, 240, 176, 0.3); white-space: nowrap; }
.online-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ef0b0; box-shadow: 0 0 8px #6ef0b0; animation: live 2s ease-in-out infinite; }
.online-badge[hidden] { display: none; }
@media (max-width: 900px) { .online-badge { display: none !important; } }
