:root {
  --bg: #08080a;
  --bg-elev: #0f0f12;
  --surface: rgba(18, 18, 22, 0.78);
  --surface-solid: #121216;
  --surface-2: #18181d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #d4d4d8;
  --accent-strong: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --green: #34d399;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--spring), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active { transform: scale(0.95); }

.btn-light {
  background: #f4f4f5;
  color: #09090b;
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Copy animation */
.copy-btn {
  position: relative;
  overflow: hidden;
}

.copy-btn.copied {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #34d399;
  animation: copyPop 0.36s var(--spring);
}

.btn-light.copy-btn.copied {
  background: #34d399;
  color: #052e16;
  border-color: #34d399;
}

@keyframes copyPop {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 50% at 50% 18%, rgba(255, 255, 255, 0.09) 0%, rgba(161, 161, 170, 0.03) 45%, transparent 75%),
    radial-gradient(ellipse 55% 45% at 80% 75%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, #0c0c0f 0%, #08080a 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 80%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 52px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.status > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 500;
}

.status > span:last-child {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  display: inline-block;
}

.word {
  font-size: clamp(3rem, 8.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inline Loadstring Bar (no white scrollbar) */
.loader {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 18, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  max-width: 100%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ls {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
  scrollbar-width: none;
}

.ls::-webkit-scrollbar { display: none; }
.ls-a { color: var(--text-dim); }
.ls-host { color: var(--text); }
.ls-path { color: #d4d4d8; font-weight: 600; }

.cue {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cue svg {
  width: 16px;
  height: 16px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Interactive Orion-style Menu Preview (Monochrome Gray) */
.o-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  padding: 0 24px;
}

.orion {
  background: rgba(14, 14, 17, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 52px 420px;
  overflow: hidden;
  position: relative;
}

.o-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.o-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.o-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.o-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.o-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  width: 190px;
}

.o-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.8rem;
  width: 100%;
}

.o-search input::placeholder { color: var(--text-dim); }

.o-side {
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.o-side::-webkit-scrollbar { display: none; }

.o-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.o-tab-group {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 10px 4px;
  font-weight: 600;
}

.o-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.o-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.o-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}

.o-me {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.o-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #27272a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.o-av img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.o-me b {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}

.o-me span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.o-content {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.o-sec {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 8px 0 2px;
}

.o-sec:first-child { margin-top: 0; }

.o-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  text-align: left;
}

button.o-row {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

button.o-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.o-chk {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #27272a;
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.o-chk::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a1a1aa;
  transition: transform 0.2s var(--spring), background-color 0.2s ease;
}

.o-row[aria-checked="true"] .o-chk {
  background: #e4e4e7;
}

.o-row[aria-checked="true"] .o-chk::after {
  transform: translateX(14px);
  background: #09090b;
}

.o-chip, .mc-val, .mc-dd {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Blocks / Sections */
.block {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.aside {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* Inside main.lua horizontal strip */
.tc-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.tc-strip::-webkit-scrollbar { display: none; }

.tabcard {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-group {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
}

.tabcard h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tc-more {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Scripts Grid */
.scripts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.script {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s ease;
}

.script:hover {
  border-color: var(--border-strong);
}

.script-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.script-top h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ver {
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  white-space: nowrap;
}

.feat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 10px;
}

.feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.feat-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.feat-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  position: absolute;
  left: 0;
  top: 0.58em;
}

.script .loader {
  border-radius: 12px;
  padding: 8px 8px 8px 14px;
  justify-content: space-between;
  margin-top: auto;
}

.script .ls {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: none;
}

.script-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qa {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.qa h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: #060608;
}

footer .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.about {
  max-width: 520px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

footer span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer nav a:hover {
  color: var(--text);
}

/* Legal pages */
.legal-wrap {
  padding: 120px 0 80px;
}

.legal-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-box h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.legal-box .updated {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.legal-box h2 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}

.legal-box p, .legal-box li {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-box ul {
  padding-left: 20px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 820px) {
  .scripts, .faq {
    grid-template-columns: 1fr;
  }

  .orion {
    grid-template-columns: 1fr;
    grid-template-rows: 52px auto 340px;
  }

  .o-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
  }

  .o-tabs {
    flex-direction: row;
  }

  .o-tab-group, .o-me {
    display: none;
  }

  .loader {
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .ls {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
  }
}
