/* ═══════════════════════════════════════════════════════════════════════════
   SyncOne – Gaming one-pager
   Colors: Deep Space #0F172A, Electric Indigo #1E1B4B, Cyber Purple #A855F7,
           Toxic Lime #22C55E, Off-White Ice #F8FAFC
   Fonts: Rajdhani (headings), Orbitron (buttons), Inter (body)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #0F172A;
  --bg-indigo: #1E1B4B;
  --accent-purple: #A855F7;
  --accent-lime: #22C55E;
  --text-ice: #F8FAFC;
  --text-muted: #CBD5E1;
  --font-heading: 'Rajdhani', sans-serif;
  --font-button: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
  --glow-lime: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.2);
  --border-glow: 0 0 12px rgba(168, 85, 247, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-ice);
  background: var(--bg-deep);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Container ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--bg-deep);
}

.section--indigo {
  background: var(--bg-indigo);
}

.section-head {
  position: relative;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-ice);
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-intro {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.text-lead {
  font-size: 1.05rem;
  color: var(--text-ice);
  margin: 0 0 1rem;
}

.text-body {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.text-body:last-child {
  margin-bottom: 0;
}

.text-body code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-indigo);
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: var(--border-glow);
}

/* ─── Cards (glow borders) ────────────────────────────────────────────────── */
.card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.card--glow {
  box-shadow: var(--border-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card--glow:hover {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 0 30px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card--with-mug {
  position: relative;
  overflow: hidden;
}

.card-mug {
  position: absolute;
  width: clamp(70px, 12vw, 110px);
  height: auto;
  opacity: 0.2;
  pointer-events: none;
}

.card-mug--br {
  right: 0;
  bottom: 0;
}

.card-mug--bl {
  left: 0;
  bottom: 0;
}

.card-mug--tr {
  right: 0;
  top: 0;
}

.card-mug--tl {
  left: 0;
  top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-img--active {
  opacity: 1;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.6) 50%, var(--bg-deep) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.9rem, 9.5vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-ice);
  margin: 0;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 80px rgba(168, 85, 247, 0.2);
}

.hero-beta {
  position: absolute;
  top: -0.05em;
  right: 0.02em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.6rem, 2vw, 0.95rem);
  letter-spacing: 0.12em;
  color: #1c1917;
  background: #FACC15;
  padding: 0.25em 0.5em 0.3em;
  transform: rotate(12deg);
  clip-path: polygon(3% 0%, 97% 3%, 100% 48%, 96% 97%, 8% 100%, 0% 52%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25), -1px -1px 0 rgba(255, 255, 255, 0.2);
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  line-height: 1.5;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-cta-secondary {
  font-family: var(--font-button);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-purple);
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.hero-cta-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
  color: var(--text-ice);
}

/* ─── CTA Download button (animated border + moving gradient inside) ──────── */
.cta-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg-deep);
  background: linear-gradient(110deg, #39FF14 0%, #00FF88 25%, #2EFF6E 50%, #00FF88 75%, #39FF14 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: cta-gradient-run 5s ease-in-out infinite;
  padding: 0.9rem 2.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.6), 0 0 48px rgba(57, 255, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-download::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(90deg, #39FF14, var(--accent-purple), #39FF14);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cta-border-run 3s linear infinite;
  z-index: 0;
}

.cta-download .cta-download__text,
.cta-download .cta-download__version {
  position: relative;
  z-index: 1;
}

@keyframes cta-gradient-run {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.cta-download__version {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.cta-download:hover {
  transform: scale(1.05);
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.7), 0 0 60px rgba(57, 255, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-download:active {
  transform: scale(0.98);
}

@keyframes cta-border-run {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.cta-download--large {
  font-size: 1rem;
  padding: 1.1rem 2.75rem;
}

.cta-download--large .cta-download__version {
  font-size: 0.85rem;
}

/* ─── Section 3: Steps (Sådan virker det) ──────────────────────────────────── */
.steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  margin-bottom: 0;
}

.step-num {
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-ice);
  margin: 0 0 0.75rem;
}

/* ─── Section 4: Setup guide (end-user steps + slides) ────────────────────── */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-step {
  margin-bottom: 0;
}

.guide-step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-ice);
  margin: 0 0 0.75rem;
}

.guide-step__list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.guide-step__list li {
  margin-bottom: 0.5rem;
}

.guide-step__list li:last-child {
  margin-bottom: 0;
}

.guide-step__list code {
  background: rgba(168, 85, 247, 0.2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

kbd {
  font-family: var(--font-body);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  color: var(--text-ice);
}

.guide-step__callout {
  margin: 0.75rem 0 1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.guide-step__callout--mods {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #FCA5A5;
}

.guide-step__callout--mods strong {
  color: #FECACA;
}

/* Guide slides (one visible at a time, prev/next) */
.guide-slides {
  margin-top: 1.25rem;
  position: relative;
}

.guide-slides__track {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: var(--border-glow);
}

.guide-slide {
  display: none;
  padding: 0;
}

.guide-slide--active {
  display: block;
}

.guide-slide__img-wrap {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.guide-slide__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-slide__placeholder {
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.guide-slide__caption {
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.guide-slides__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.guide-slides__btn {
  font-family: var(--font-button);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.guide-slides__btn:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.guide-slides__counter {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guide-slides__current,
.guide-slides__total {
  color: var(--text-ice);
}

/* ─── Section 5: Download (KOM I GANG) – karakterer halvt ud af sektionen ──── */
.section-download {
  position: relative;
  overflow: hidden;
}

.section-mug {
  position: absolute;
  bottom: 0;
  width: 460px;
  height: auto;
  max-width: none;
  opacity: 0.3 !important;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.35));
  pointer-events: none;
  display: block;
}

.section-mug--left {
  left: 0;
  transform: translateX(-50%);
}

.section-mug--right {
  right: 0;
  transform: translateX(50%);
}

.section-download .container {
  position: relative;
  z-index: 1;
}

.final-cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* ─── Section 6: Known Bugs + Features (side by side) ────────────────────── */
.bugs-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.changelog-col .section-head {
  margin-bottom: 1rem;
}

/* Known Bugs table */
.bugs-table {
  overflow: hidden;
  padding: 0;
}

.bugs-table__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.bugs-table__col--status {
  min-width: 120px;
  text-align: right;
}

.bugs-table__empty {
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bugs-row {
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.bugs-row:last-of-type {
  border-bottom: none;
}

.bugs-row__summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.5rem;
  padding-right: 3rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  transition: background 0.2s;
}

.bugs-row__summary::-webkit-details-marker {
  display: none;
}

.bugs-row__summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.bugs-row[open] .bugs-row__summary::after {
  content: '−';
}

.bugs-row__summary:hover {
  background: rgba(168, 85, 247, 0.08);
}

.bugs-table__col--name {
  font-weight: 500;
  color: var(--text-ice);
  padding-right: 2rem;
}

/* Features table (same pattern + Date column) */
.features-table {
  overflow: hidden;
  padding: 0;
}

.features-table__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.features-table__col--date {
  min-width: 72px;
  text-align: center;
}

.features-table__col--status {
  min-width: 100px;
  text-align: right;
}

.features-row {
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.features-row:last-of-type {
  border-bottom: none;
}

.features-row__summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 1rem 1.5rem;
  padding-right: 3rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  transition: background 0.2s;
}

.features-row__summary::-webkit-details-marker {
  display: none;
}

.features-row__summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.features-row[open] .features-row__summary::after {
  content: '−';
}

.features-row__summary:hover {
  background: rgba(168, 85, 247, 0.08);
}

.features-table__col--name {
  font-weight: 500;
  color: var(--text-ice);
  padding-right: 2rem;
}

.features-table__col--date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Shared status badges (bugs + features) */
.bug-status {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.bug-status--not-fixed {
  background: rgba(220, 38, 38, 0.25);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.bug-status--in-progress {
  background: rgba(245, 158, 11, 0.25);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bug-status--done {
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.bugs-row__description,
.features-row__description {
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.bugs-row__description p,
.features-row__description p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.changelog-row__version {
  margin-bottom: 0.75rem !important;
  font-size: 0.85rem !important;
  color: var(--accent-purple) !important;
}

.changelog-row__version+p {
  margin-top: 0;
}

/* ─── About the developer ─────────────────────────────────────────────────── */
.about-card__top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.about-card__avatar {
  width: 100px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.about-card__head {
  flex: 1;
}

.about-card__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-ice);
  text-decoration: none;
  transition: color 0.2s;
}

.about-card__name:hover {
  color: var(--accent-lime);
}

.about-card__github-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
}

.about-card__name:hover .about-card__github-icon {
  color: var(--accent-lime);
}

.about-card__role {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-card .text-body {
  margin-bottom: 0.75rem;
}

.about-card__github-link {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.9rem;
  color: var(--accent-purple);
  text-decoration: none;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.about-card__github-link:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 -1px 0 rgba(168, 85, 247, 0.08);
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-mug {
    width: clamp(55px, 10vw, 80px);
  }
}

@media (max-width: 600px) {
  .card-mug {
    width: 60px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}