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

:root {
  --bg:       #000000;
  --bg1:      #080808;
  --bg2:      #0e0e0e;
  --bg3:      #141414;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.16);
  --white:    #ffffff;
  --text:     #d4d4d4;
  --muted:    #5c5c5c;
  --dim:      #222222;
  --green:    #22c55e;
  --blurple:  #5865f2;
  --sans:     'Syne', sans-serif;
  --body:     'Inter', sans-serif;
  --r:        12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pills a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.18s, background 0.18s;
}

.nav-pills a:hover {
  color: var(--white);
  background: var(--bg3);
}

.nav-discord {
  background: var(--blurple) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-discord:hover {
  opacity: 0.88;
  background: var(--blurple) !important;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 148px 32px 80px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.hbtn-primary {
  background: var(--white);
  color: #000;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.18s, transform 0.18s;
  letter-spacing: -0.01em;
}

.hbtn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hbtn-discord {
  background: var(--blurple);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.18s, transform 0.18s;
}

.hbtn-discord:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-preview-wrap {
  width: 100%;
  max-width: 760px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
}

.preview-tabs-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.ptab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.ptab:hover {
  background: var(--bg3);
  color: var(--text);
}

.ptab.active {
  background: var(--bg3);
  color: var(--white);
}

.preview-body {
  min-height: 280px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.script-ui {
  display: flex;
  min-height: 280px;
}

.sui-sidebar {
  width: 136px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 10px 0;
  background: var(--bg1);
}

.sui-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.sui-tab {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: default;
  border-left: 2px solid transparent;
  transition: background 0.14s, color 0.14s;
}

.sui-tab:hover {
  background: var(--bg2);
  color: var(--text);
}

.sui-tab.active {
  color: var(--white);
  border-left-color: var(--white);
  background: rgba(255,255,255,0.04);
}

.sui-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
}

.sui-section-hdr {
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 2px 4px;
}

.sui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
}

.sui-toggle {
  width: 30px;
  height: 16px;
  background: var(--dim);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}

.sui-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #444;
  transition: left 0.2s, background 0.2s;
}

.sui-toggle.on {
  background: rgba(34,197,94,0.3);
}

.sui-toggle.on::after {
  left: 16px;
  background: var(--green);
}

.sui-link-row {
  color: var(--muted);
  cursor: default;
}

.sui-link-row svg { flex-shrink: 0; color: var(--dim); }

.feat-list {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fl-item {
  display: flex;
  gap: 12px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
}

.fl-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.fl-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.info-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.info-k {
  font-size: 13px;
  color: var(--muted);
}

.info-v {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.info-free {
  color: var(--green);
}

.get-section {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.get-section .section-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.get-left h2,
.links-wrap h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.get-left p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.ls-block {
  display: flex;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.18s;
}

.ls-block:hover { border-color: rgba(255,255,255,0.15); }

.ls-block code {
  flex: 1;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12.5px;
  color: #aaa;
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}

.ls-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg2);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text);
  padding: 0 18px;
  min-height: 54px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.ls-btn:hover {
  background: var(--white);
  color: #000;
}

/* ── Status Row ──────────────────────────────────────────────────────────── */
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sr-key {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot-ind {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.status-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s;
}

.ls-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}

.get-right {
  position: relative;
}

.script-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.script-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Changelog Section ───────────────────────────────────────────────────── */
.changelog-section {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}

.changelog-section h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.changelog-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.changelog-box {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  max-width: 760px;
}

.links-section {
  position: relative;
  z-index: 1;
  padding: 80px 32px 100px;
  border-top: 1px solid var(--border);
}

.links-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.links-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 480px;
  line-height: 1.7;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lcard {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.22s, box-shadow 0.22s;
  will-change: transform;
}

.lcard:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-h);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.lcard-game:hover { border-color: rgba(34,197,94,0.35); }
.lcard-discord:hover { border-color: rgba(88,101,242,0.45); }

.lcard-img {
  height: 130px;
  overflow: hidden;
  background: var(--bg2);
}

.lcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lcard:hover .lcard-img img {
  transform: scale(1.05);
}

.lcard-img-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blurple);
}

.lcard-body {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.lcard-body strong {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.lcard-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.lcard-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  font-family: var(--sans);
}

.lcard-link-green { color: var(--green); }
.lcard-link-blurple { color: #7c86ff; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 26px 32px;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--dim);
}

@media (max-width: 1000px) {
  .link-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .get-section .section-wrap { grid-template-columns: 1fr; gap: 40px; }
  .get-right { display: none; }
  .link-cards { grid-template-columns: repeat(2, 1fr); }
  .feat-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .link-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 48px; }
  .nav-pills a:not(.nav-discord) { display: none; }
  .sui-sidebar { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
