:root {
  --primary: #00d9ff;
  --primary-dark: #0088cc;
  --bg-dark: #0a0a0a;
  --bg-card: #151515;
  --bg-input: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-dim: #6c7280;
  --border: #2a2a2a;
  --border-bright: rgba(0, 217, 255, .42);
  --error: #ff4d5f;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  --radius: 10px;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--bg-dark);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 14%, rgba(0, 136, 204, .16), transparent 27%),
    radial-gradient(circle at 88% 78%, rgba(0, 217, 255, .08), transparent 28%),
    linear-gradient(120deg, #0b0917 0%, #07080d 46%, #061217 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(0, 217, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #164c61; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 217, 255, .16);
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(15px);
}

.nav-shell {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(0, 217, 255, .26));
}

.brand-copy { min-width: 0; }
.brand-name {
  color: var(--primary);
  font: 900 1.02rem/1 'Orbitron', sans-serif;
  letter-spacing: .13em;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: .78rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  background: var(--bg-card);
}
.nav-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-link {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-color: rgba(0, 217, 255, .3);
  background: rgba(0, 217, 255, .07);
}
.nav-link-strong { color: var(--primary); border-color: rgba(0, 217, 255, .42); }

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: 44px;
  padding: 28px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: 4%;
  top: 38px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(0, 136, 204, .16);
  filter: blur(80px);
}
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.shop-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 10px;
  padding: 20px 22px;
  border-color: var(--border-bright);
  background: linear-gradient(145deg, rgba(21, 21, 21, .98), rgba(11, 22, 28, .9));
  box-shadow: 0 0 28px rgba(0, 217, 255, .08);
}
.shop-promo h2 {
  margin: 7px 0 3px;
  font: 800 1.45rem/1.1 'Orbitron', sans-serif;
  color: var(--text-primary);
}
.shop-promo p { margin: 0; color: var(--text-secondary); }
.shop-promo .section-kicker::before { width: 18px; }
.shop-promo .btn { flex: 0 0 auto; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before {
  content: '';
  width: 25px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(0, 217, 255, .7);
}
.hero h1 {
  max-width: 760px;
  margin: 17px 0 17px;
  color: var(--text-primary);
  font: 900 clamp(2.45rem, 6vw, 5rem)/1.02 'Orbitron', sans-serif;
  letter-spacing: -.05em;
}
.hero h1 span, .gradient-text {
  color: var(--primary);
  background: linear-gradient(100deg, var(--primary), #5ce7ff 55%, #2387ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  max-width: 690px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-description strong { color: var(--text-primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--primary);
  background: rgba(0, 217, 255, .06);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary); background: rgba(0, 217, 255, .16); }
.btn-primary {
  color: #00141c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #00b8e6);
  box-shadow: 0 9px 24px rgba(0, 174, 255, .2);
}
.btn-primary:hover { color: #00141c; background: linear-gradient(135deg, #43e5ff, var(--primary-dark)); }
.btn-discord { border-color: rgba(88, 101, 242, .7); color: #aeb7ff; background: rgba(88, 101, 242, .1); }

.hero-panel {
  padding: 22px;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 21, 21, .96), rgba(11, 22, 28, .9));
  box-shadow: var(--shadow), 0 0 35px rgba(0, 217, 255, .09);
}
.panel-label {
  margin-bottom: 15px;
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.panel-title { margin: 0 0 18px; font: 800 1.35rem/1.25 'Orbitron', sans-serif; }
.panel-list { display: grid; gap: 9px; }
.panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, .25);
}
.panel-item::before { content: '◆'; color: var(--primary); font-size: .6rem; }

.section { scroll-margin-top: 92px; padding: 28px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.section-heading h2 {
  margin: 7px 0 0;
  font: 800 clamp(1.35rem, 3vw, 2rem)/1.15 'Orbitron', sans-serif;
  letter-spacing: -.02em;
}
.section-heading p { max-width: 500px; margin: 0; color: var(--text-secondary); font-size: .98rem; }
.section-rule { height: 1px; margin: 8px 0 22px; background: linear-gradient(90deg, var(--border-bright), transparent); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 21, 21, .98), rgba(16, 18, 24, .94));
  box-shadow: 0 11px 27px rgba(0, 0, 0, .16);
}
.card:hover { border-color: rgba(0, 217, 255, .38); }
.card h3, .card-title { margin: 0 0 9px; color: var(--text-primary); font: 800 1.1rem/1.25 'Orbitron', sans-serif; }
.card p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.card-accent { border-top: 2px solid var(--primary); }
.card-icon { display: block; margin-bottom: 10px; color: var(--primary); font-size: 1.65rem; }

.feature-card { display: flex; flex-direction: column; min-height: 210px; }
.feature-card .feature-icon { font-size: 1.75rem; margin-bottom: 13px; }
.feature-card p { flex: 1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 217, 255, .28);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(0, 217, 255, .08);
  font-size: .78rem;
  font-weight: 700;
}

.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-number {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00141c;
  background: var(--primary);
  font-weight: 800;
}
.step-text { color: var(--text-secondary); line-height: 1.55; }
.step-text strong { color: var(--text-primary); }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.game-chip {
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--bg-input);
  text-align: center;
  font-weight: 600;
}

.script-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-box {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-input);
}
.search-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 217, 255, .1); }
.script-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  background: var(--bg-card);
  font-size: .9rem;
}
.script-count strong { color: var(--primary); }
.script-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.script-card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.script-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 14px 30px rgba(0, 174, 255, .12); }
.script-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-primary);
  font: 800 1rem/1.28 'Orbitron', sans-serif;
}
.script-card-title::before { content: ''; display: inline-block; width: 3px; height: 15px; margin-right: 8px; vertical-align: -1px; background: var(--primary); border-radius: 3px; }
.script-card-intro {
  display: -webkit-box;
  overflow: hidden;
  flex: 1;
  margin: 0;
  color: var(--text-secondary);
  font-size: .94rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.script-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.script-meta { color: var(--text-dim); font-size: .8rem; }
.script-empty { grid-column: 1 / -1; padding: 45px 15px; color: var(--text-secondary); text-align: center; }
.script-error { color: var(--error); }

.platform-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.platform-feature { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input); }
.platform-feature strong { display: block; margin-bottom: 5px; color: var(--text-primary); font-size: 1rem; }
.platform-feature span { color: var(--text-secondary); font-size: .93rem; line-height: 1.5; }
.platform-feature-icon { display: block; margin-bottom: 9px; color: var(--primary); font-size: 1.5rem; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-card { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.plan-card.highlight { border-color: var(--border-bright); box-shadow: 0 0 27px rgba(0, 217, 255, .08); }
.plan-name { margin-bottom: 7px; color: var(--primary); font: 800 1.08rem 'Orbitron', sans-serif; }
.plan-desc { color: var(--text-secondary); }
.plan-list { display: grid; gap: 7px; margin-top: 14px; color: var(--text-secondary); }
.plan-list div::before { content: '✓'; margin-right: 8px; color: var(--primary); font-weight: 800; }

.obfuscator-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; }
.obf-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.obf-list li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-secondary); background: var(--bg-input); }
.obf-list li::before { content: '◆'; margin-right: 8px; color: var(--primary); font-size: .6rem; vertical-align: 2px; }
.video-wrap { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--border-bright); border-radius: 9px; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.discord-card { display: flex; flex-direction: column; justify-content: space-between; }
.discord-card .discord-title { margin-bottom: 7px; color: var(--text-primary); font: 800 1.15rem 'Orbitron', sans-serif; }
.discord-card p { margin-bottom: 15px; }

.footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .86rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--primary); }

.reveal { animation: rise .55s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .hero-panel { max-width: 620px; }
  .shop-promo { align-items: flex-start; }
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav-shell { min-height: 66px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(21, 21, 21, .98);
  }
  .nav-links.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-link { text-align: center; }
  .nav-shell { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .page-shell { padding-top: 35px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
  .shop-promo { display: block; }
  .shop-promo .btn { margin-top: 14px; }
  .card-grid, .card-grid.three, .plan-grid, .obfuscator-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .nav-shell, .page-shell, .footer { width: min(100% - 22px, var(--max-width)); }
  .brand-name { font-size: .88rem; }
  .brand-sub { font-size: .68rem; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .hero { padding-top: 15px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3.3rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 140px; }
  .card { padding: 15px; }
  .script-toolbar { display: block; }
  .script-count { display: inline-block; margin-top: 8px; }
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .script-card { min-height: 172px; padding: 11px; border-radius: 8px; }
  .script-card-title { font-size: .78rem; line-height: 1.28; }
  .script-card-title::before { width: 2px; height: 12px; margin-right: 5px; }
  .script-card-intro { font-size: .78rem; -webkit-line-clamp: 2; }
  .script-card-meta { gap: 4px; margin-top: 9px; }
  .badge, .script-meta { font-size: .68rem; }
  .platform-features { grid-template-columns: 1fr; }
  .footer { display: block; }
  .footer-links { margin-top: 9px; }
}
