/* NexusClash - shared styles (mobile-first) */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #cfd8e3;
  --accent: #1ea7cf;
  --blue: #2f7bff;
  --orange: #ffb15c;
  --font-body: Arial, Helvetica, sans-serif;
  --font-head: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-brand: "Syncopate", "Arial Black", Arial, sans-serif;
  --font-serif: "Cormorant SC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #6cc8ff; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid #ffd54a;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: #ffd54a;
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 1px 14px rgba(47, 123, 255, 0.45);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.js .menu-toggle { display: inline-block; margin-left: auto; }

.socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s;
}
.socials a:hover { transform: scale(1.15); }
.socials svg { width: 28px; height: 28px; }

.site-nav { width: 100%; order: 3; }
.js .site-nav:not(.open) { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-nav a {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(47, 123, 255, 0.25);
  box-shadow: 0 0 10px rgba(47, 123, 255, 0.7);
}

@media (min-width: 800px) {
  .header-inner { flex-wrap: nowrap; justify-content: center; gap: 1.5rem; }
  .menu-toggle, .js .menu-toggle { display: none; }
  .js .site-nav:not(.open), .site-nav { display: block; width: auto; order: 0; }
  .site-nav ul { flex-direction: row; gap: 0.5rem; }
  .site-nav a { padding: 0.35rem 1.1rem; font-size: 0.85rem; }
}

/* ---------- Layout ---------- */
main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 35% at 85% 80%, rgba(0, 70, 170, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 30% at 10% 20%, rgba(0, 40, 110, 0.25), transparent 70%),
    #000;
}

/* Decorative background: original line-art icons + drifting glow orbs */
main::before,
main::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
main::before {
  inset: 0;
  background: url("images/background-icons.svg") center top / 440px 440px repeat;
  opacity: 0.45;
}
main::after {
  inset: -15%;
  background:
    radial-gradient(circle at 20% 25%, rgba(30, 167, 207, 0.16) 0, transparent 22%),
    radial-gradient(circle at 78% 40%, rgba(47, 123, 255, 0.18) 0, transparent 26%),
    radial-gradient(circle at 40% 80%, rgba(30, 167, 207, 0.12) 0, transparent 20%);
  animation: orb-drift 40s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to { transform: translate(3%, 3%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  main::after { animation: none; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

section { padding: 2.5rem 0; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.15; }

.hero-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.9rem, 9vw, 4.4rem);
  letter-spacing: 0.08em;
  margin: 0;
  padding-top: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--accent);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: 0.03em;
}

.page-title {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 900;
  font-family: var(--font-body);
}

.lead { font-size: 1.1rem; color: #fff; max-width: 40rem; margin: 0 auto; }

/* ---------- Layout helpers ---------- */

/* ---------- Reviews (scrolling) ---------- */
.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100vw;
  margin: 1.5rem 0 0 calc(50% - 50vw);
  background: #0f0f0f;
  color: #f0f0f0;
  padding: 10px 0;
}
.scroll-track { display: inline-block; animation: scroll-left 120s linear infinite; }
.scroll-container:hover .scroll-track,
.scroll-container:focus-within .scroll-track { animation-play-state: paused; }
.review-list { display: inline-block; list-style: none; margin: 0; padding: 0; vertical-align: top; }
.review {
  display: inline-block;
  vertical-align: top;
  margin: 0 20px;
  width: 300px;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000055;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: left;
}
.review .username { font-weight: bold; font-size: 15px; margin-bottom: 4px; }
.review .stars { color: gold; font-size: 16px; margin-bottom: 6px; letter-spacing: 0; }
.review .text { font-size: 14px; line-height: 1.4; color: #f0f0f0; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-container { overflow-x: auto; }
  .scroll-track { animation: none; }
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
.feature h3 { font-weight: 400; font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature .icon { width: 96px; height: 96px; margin: 0 auto 1rem; display: block; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; font-size: 0.95rem; max-width: 18rem; margin-inline: auto; }

@media (min-width: 700px) {
  .features { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- Pricing / Buy ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border-radius: 8px; }
.pricing-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #f0f0f0;
  background: #0f0f0f;
}
.pricing-table th,
.pricing-table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 12px;
  vertical-align: middle;
  text-align: center;
  overflow-wrap: break-word;
}
.pricing-table thead th { font-size: 1.2em; background: #1a1a1a; }
.pricing-table .feature-column { background: #1a1a1a; text-align: left; font-weight: 700; width: 40%; font-size: 1.05em; }
.plan-header { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plan-price { font-size: 1.1em; font-weight: 500; }
.coming-soon { font-size: 0.95em; color: #bbb; font-style: italic; font-weight: 400; }
.check { color: #2ecc71; font-weight: 800; font-size: 1.3em; }

.buy h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.03em;
}
.buy img { margin: 1rem auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, #2f7bff, #1757d6);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  border: 2px solid #8fb6ff;
  box-shadow: 0 0 18px rgba(47, 123, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 28px rgba(47, 123, 255, 0.95); }
.btn-secondary { background: transparent; border-color: var(--blue); box-shadow: none; }
.btn-secondary:hover { background: rgba(47, 123, 255, 0.25); }

/* ---------- Hero intro ---------- */
.hero-tagline {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  letter-spacing: 0.06em;
  margin: 0.4rem 0 1rem;
}
.hero-intro { max-width: 36rem; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.hero-actions .btn { padding: 0.8rem 1.6rem; font-size: 1rem; }
.key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.key-facts li {
  border: 1px solid rgba(47, 123, 255, 0.6);
  background: rgba(47, 123, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
}

/* ---------- How it works ---------- */
.how-steps {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.how-steps h3 { font-weight: 400; font-size: 1.3rem; margin-bottom: 0.4rem; }
.how-steps p { margin: 0 auto; max-width: 18rem; font-size: 0.95rem; }
.step-num {
  display: flex;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.how-help { margin-top: 1.5rem; font-size: 0.95rem; }
@media (min-width: 700px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- Buy shortcuts ---------- */
.site-nav a.nav-cta { white-space: nowrap; background: linear-gradient(180deg, #2f7bff, #1757d6); border-color: #8fb6ff; font-weight: 700; }
.sticky-buy {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  text-align: center;
  background: linear-gradient(180deg, #2f7bff, #1757d6);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid #8fb6ff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
.sticky-buy:hover { color: #fff; }
@media (min-width: 800px) {
  .sticky-buy { display: none; }
}

/* ---------- Download page ---------- */
.steps { text-align: left; font-size: 0.88rem; max-width: 800px; margin: 2rem auto 0; }
.steps p { margin: 0 0 1.1rem; }
.steps strong { text-decoration: underline; }
.steps a { color: #ffd5a1; }

.army-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}
.army-gallery figure { margin: 0; text-align: center; font-size: 0.8rem; }
.army-gallery img { border-radius: 4px; border: 1px solid #333; width: 200px; height: auto; max-width: 100%; }
.army-gallery a { display: block; }

.table-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }

.version-table { width: 100%; border-collapse: collapse; text-align: left; color: #fff; }
.version-table th,
.version-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); vertical-align: top; }
.version-table thead th { background: #0f0f0f; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.version-table tbody tr { background: rgba(10, 20, 45, 0.55); transition: background 0.15s; }
.version-table tbody tr:hover { background: rgba(47, 123, 255, 0.18); }
.version-table tbody th { font-weight: 700; white-space: nowrap; }
.version-table .is-latest { box-shadow: inset 3px 0 0 var(--accent); }

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #00212b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.version-table summary { cursor: pointer; color: #7cc4ff; font-weight: 600; width: fit-content; }
.version-table details[open] summary { color: #b6dcff; }
.update-info { margin: 0.6rem 0 0; padding: 0.7rem 1rem 0.7rem 1.6rem; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 0.9rem; color: #e5e5e5; }
.update-info li { margin-bottom: 0.3rem; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: rgba(47, 123, 255, 0.25);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.dl-btn:hover { background: var(--blue); color: #fff; }
.dl-btn svg { width: 18px; height: 18px; }

@media (max-width: 699px) {
  .version-table { min-width: 0; }
  .version-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .version-table tbody tr { display: block; margin-bottom: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; }
  .version-table th, .version-table td { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; border-bottom: 0; padding: 0.6rem 1rem; }
  .version-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; flex: none; }
  .version-table td > details { flex: 1; text-align: right; }
  .version-table td > details summary { margin-left: auto; }
  .update-info { text-align: left; }
}

/* ---------- FAQ ---------- */
.faq-list { text-align: left; max-width: 760px; margin: 2rem auto 0; }
.faq-item { margin-bottom: 1.8rem; }
.faq-item h2 { font-size: 1.15rem; color: var(--accent); margin-bottom: 0.4rem; }
.faq-item p { margin: 0 0 0.6rem; }
.faq-item img { margin-top: 0.8rem; border-radius: 4px; width: 100%; max-width: 420px; height: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  padding: 1.5rem 1rem 5rem;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}
@media (min-width: 800px) {
  .site-footer { padding-bottom: 2rem; }
}
.disclaimer {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--orange);
}
.disclaimer strong { font-weight: 400; display: block; color: var(--orange); }
.copyright { margin: 1rem 0 0; font-size: 0.75rem; color: #aaa; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
