:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #17171c;
  --bg-4: #1c1c24;
  --purple: #a855f7;
  --purple-2: #c084fc;
  --purple-3: #7c3aed;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --purple-soft: rgba(168, 85, 247, 0.12);
  --gold: #c9a961;
  --text: #ffffff;
  --text-2: #c4c4cc;
  --text-3: #8b8b96;
  --border: rgba(255, 255, 255, 0.08);
  --border-purple: rgba(168, 85, 247, 0.45);
  --online: #22c55e;
  --offline: #ef4444;
  --sidebar: 250px;
  --topbar: 56px;
  --radius: 14px;
  --font: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
code { color: var(--purple-2); font-family: ui-monospace, monospace; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

/* Sidebar — FRVGS style */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #0d0d10;
  border-right: 1px solid var(--border);
  padding: 1.1rem 0.9rem 1.4rem;
  z-index: 50;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem 1.1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-3));
  box-shadow: 0 0 20px var(--purple-glow);
}
.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sidebar-logo-text strong {
  font-family: var(--font);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-logo-text span {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group { margin-bottom: 1.15rem; }
.nav-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 0.65rem 0.45rem;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-link:hover {
  background: var(--purple-soft);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.2);
}
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.06));
  color: #fff;
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.12);
}
.nav-link.is-active svg,
.nav-link:hover svg { opacity: 1; color: var(--purple-2); }

.nav-sub {
  margin: 0.15rem 0 0.35rem 2.1rem;
  display: grid;
  gap: 0.15rem;
}
.nav-sub a {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.nav-sub a:hover,
.nav-sub a.is-active {
  color: var(--purple-2);
  background: var(--purple-soft);
}

/* Main + topbar */
.main { min-width: 0; background: var(--bg); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.crumb {
  color: var(--text-3);
  font-size: 0.88rem;
}
.crumb strong { color: var(--text); font-weight: 600; }
.crumb span { margin: 0 0.35rem; opacity: 0.5; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-2);
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--offline);
  box-shadow: 0 0 8px currentColor;
}
.dot.on { background: var(--online); color: var(--online); }

.search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  min-width: 180px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  color: var(--text);
  font-size: 0.85rem;
}
.search input::placeholder { color: var(--text-3); }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s ease;
}
.icon-btn:hover {
  color: #fff;
  border-color: var(--border-purple);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 15px;
  height: 2px;
  background: #fff;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; inset-inline: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.page { padding: 1.25rem 1.35rem 2.5rem; }
.page--home {
  padding: 0 0 2.5rem;
}
.page--home .container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.container { width: min(100%, var(--max)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-3));
  color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--purple-glow);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-purple);
  color: var(--purple-2);
}
.btn-outline:hover {
  background: var(--purple-soft);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}
.btn-ghost {
  background: var(--bg-3);
  border-color: var(--border);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--border-purple);
}
.btn-sm {
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* GTA hero */
.hero-gta {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: min(58vh, 480px);
  display: grid;
  align-items: end;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.12);
}
.hero-gta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-gta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 48%, rgba(10, 10, 12, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 10, 12, 0.9) 0%, transparent 45%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.22), transparent 40%);
}
.hero-gta-inner {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2rem;
  max-width: 40rem;
}
.hero-kicker {
  display: inline-block;
  color: var(--purple-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.hero-gta h1 {
  font-family: var(--font);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
}
.hero-gta h1 span {
  display: block;
  color: var(--purple-2);
}
.hero-gta p {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.02rem;
}
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

/* City hero image */
.city-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(10,10,12,.85), rgba(10,10,12,.35)),
    url("/assets/gta/skyline.jpg") center/cover;
  display: grid;
  align-items: end;
  padding: 2rem;
}
.city-hero h2 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: all 0.2s ease;
}
.stat:hover {
  border-color: var(--border-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.12);
}
.stat label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.stat strong { font-size: 1.2rem; }
.bar {
  margin-top: 0.5rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transition: width .4s ease;
}

/* Section heads */
.section { margin: 1.75rem 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-head h2 .ico {
  color: var(--purple-2);
  filter: drop-shadow(0 0 8px var(--purple-glow));
}
.section-head p { color: var(--text-3); font-size: 0.92rem; }

/* Feature image cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.feature-card {
  position: relative;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
  transition: all 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-purple);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.2);
}
.feature-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .45s ease;
}
.feature-card:hover .bg { transform: scale(1.06); }
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,12,.92));
  z-index: 1;
}
.feature-card .body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.1rem;
}
.feature-card h3 {
  font-family: var(--font);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.feature-card p { color: var(--text-2); font-size: 0.88rem; }

/* Intro text block */
.intro-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
}
.intro-block h2 {
  font-family: var(--font);
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-block p {
  color: var(--text-2);
  margin-bottom: 0.85rem;
  max-width: 70ch;
}
.intro-block p:last-child { margin-bottom: 0; }

/* Business page */
.page-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.page-desc {
  color: var(--text-2);
  max-width: 55ch;
  margin-bottom: 1.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  border-color: var(--border-purple);
  background: var(--purple-soft);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.biz-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
}
.biz-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.16);
}
.biz-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border: 2px solid var(--border-purple);
  background:
    radial-gradient(circle at 30% 30%, rgba(168,85,247,.3), transparent 55%),
    #14141a;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.22);
}
.biz-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.biz-card .cat {
  color: var(--text-3);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Jobs */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.job-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.job-card:hover {
  border-color: var(--border-purple);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.16);
}
.job-card .cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.job-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10,10,12,.85));
}
.job-card .body { padding: 1.1rem; }
.job-card h3 {
  font-family: var(--font);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.job-card p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ─── Rules page ─── */
.page--rules { padding-top: 0; }
.page--rules > .container { padding-top: 0; }

.rules-hero {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.rules-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.rules-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,.94) 0%, rgba(10,10,12,.55) 55%, rgba(10,10,12,.25) 100%),
    linear-gradient(0deg, rgba(10,10,12,.98) 0%, rgba(10,10,12,.35) 55%, transparent 80%);
}
.rules-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
}
.rules-hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
  font-weight: 600;
}
.rules-hero .page-title {
  margin-bottom: 0.45rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.rules-hero-lead {
  max-width: 36rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.rules-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rules-hero-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.rules-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1rem;
}
.rules-side {
  position: sticky;
  top: calc(var(--topbar) + 1rem);
  padding: 1rem;
  border-radius: 16px;
  background: rgba(17,17,20,.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 0.2rem;
}
.rules-side-title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 0.45rem;
  padding: 0 0.35rem;
}
.rules-side a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.rules-side a span {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--purple-2);
  font-weight: 700;
  min-width: 1.4rem;
}
.rules-side a:hover {
  color: #fff;
  background: var(--purple-soft);
  border-color: rgba(168,85,247,.25);
}

.rules-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.rules-block {
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rules-block:hover {
  border-color: rgba(168,85,247,.22);
  box-shadow: 0 0 28px rgba(168,85,247,.06);
}
.rules-block-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(168,85,247,.08), transparent 60%);
}
.rules-num {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-2);
  letter-spacing: 0.04em;
  line-height: 1;
}
.rules-block-head .eyebrow {
  margin-bottom: 0.15rem;
}
.rules-block-head h2 {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.rules-block-body {
  padding: 1.2rem 1.25rem 1.35rem;
}
.rules-block-body > p {
  color: var(--text-2);
  margin-bottom: 0.85rem;
  line-height: 1.65;
}
.rules-block-body strong { color: #fff; }

.rules-alert {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.35);
  box-shadow: 0 0 24px rgba(168,85,247,.08);
}
.rules-alert strong {
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-2);
}
.rules-alert p {
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.55;
}
.rules-note {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-2);
  line-height: 1.55;
}

.rules-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.rules-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.25s ease;
}
.rules-step:hover {
  border-color: var(--border-purple);
  transform: translateY(-2px);
}
.rules-step > span {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--purple-3));
  box-shadow: 0 0 14px var(--purple-glow);
}
.rules-step strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.rules-step p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.4;
}

.rules-arrows {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
}
.rules-arrows li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-2);
  line-height: 1.5;
}
.rules-arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--purple-2);
  font-weight: 700;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.rules-card {
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.25s ease;
}
.rules-card:hover {
  border-color: var(--border-purple);
  box-shadow: 0 0 20px rgba(168,85,247,.12);
  transform: translateY(-2px);
}
.rules-card h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  color: #fff;
}
.rules-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.rules-card strong { color: var(--purple-2); }

.rules-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.rules-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-2);
  line-height: 1.5;
}
.rules-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
}
.rules-list strong { color: #fff; }

.rules-label {
  margin: 1.15rem 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}
.rules-ban {
  display: grid;
  gap: 0.55rem;
}
.rules-ban > div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
}
.rules-ban strong {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fca5a5;
  font-size: 0.95rem;
}
.rules-ban span {
  color: var(--text-2);
  font-size: 0.92rem;
}

.rules-defs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.rules-def {
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.25s ease;
}
.rules-def:hover {
  border-color: var(--border-purple);
  box-shadow: 0 0 20px rgba(168,85,247,.12);
  transform: translateY(-2px);
}
.rules-def--wide { grid-column: 1 / -1; }
.rules-def-top { margin-bottom: 0.55rem; }
.rules-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-3));
  box-shadow: 0 0 14px rgba(168,85,247,.25);
}
.rules-def > p {
  color: var(--text-2);
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.rules-example {
  margin: 0 !important;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 0.88rem !important;
  color: var(--text-3) !important;
  line-height: 1.45;
}
.rules-example span {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--purple-2);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-sub {
  margin-bottom: 1.15rem;
}
.rules-sub:last-child { margin-bottom: 0; }
.rules-sub h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  color: #fff;
}
.rules-sub .rules-alert { margin-top: 0.75rem; }
.rules-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.25rem 0 1.15rem;
}

.rules-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(168,85,247,.3);
  background:
    linear-gradient(135deg, rgba(168,85,247,.14), transparent 55%),
    var(--bg-2);
  box-shadow: 0 0 30px rgba(168,85,247,.08);
}
.rules-cta h2 {
  font-family: var(--font);
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.rules-cta p {
  color: var(--text-2);
  margin: 0;
}
.rules-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 980px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.35rem;
  }
  .rules-side-title { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .rules-steps,
  .rules-grid,
  .rules-defs,
  .rules-split-cards { grid-template-columns: 1fr; }
  .rules-ban > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .rules-def--wide { grid-column: auto; }
  .rules-hero { min-height: 220px; }
}

/* Steps */
.steps { display: grid; gap: 0.7rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s ease;
}
.step:hover {
  border-color: var(--border-purple);
  transform: translateY(-2px);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--purple-3));
  box-shadow: 0 0 14px var(--purple-glow);
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.step p { color: var(--text-2); font-size: 0.92rem; }

.footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}
.footer a:hover { color: var(--purple-2); }

/* ─── Homepage ─── */
.page--home { padding-top: 0; }
.page--home > .container { padding-top: 0; }

.btn-lg {
  min-height: 50px;
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; }
.eyebrow {
  color: var(--purple-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.home-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.home-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,12,.96) 0%, rgba(10,10,12,.78) 38%, rgba(10,10,12,.35) 62%, rgba(10,10,12,.12) 100%),
    linear-gradient(0deg, rgba(10,10,12,.98) 0%, rgba(10,10,12,.45) 42%, transparent 68%),
    linear-gradient(135deg, rgba(168,85,247,.16), transparent 45%);
  pointer-events: none;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 2.5rem;
  max-width: 720px;
  animation: riseIn .85s ease both;
}
.home-brand {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
  text-shadow: 0 0 24px rgba(201,169,97,.25), 0 2px 12px rgba(0,0,0,.8);
}
.home-title {
  font-family: var(--font);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 40px rgba(0,0,0,.5);
}
.home-title span { color: var(--purple-2); }
.home-lead {
  max-width: 34rem;
  color: rgba(255,255,255,.82);
  font-size: 1.12rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-status {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr auto;
  gap: 1rem;
  margin: -1.25rem 0 2.5rem;
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(17, 17, 20, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 30px rgba(168,85,247,.08);
}
.home-status-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.home-status-value {
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.home-status-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.home-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  margin: 2rem 0 1rem;
}
.home-split-copy {
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.home-split-copy h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.home-split-copy > p {
  color: var(--text-2);
  margin-bottom: 1rem;
  max-width: 40ch;
}
.home-bullets {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
}
.home-bullets li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-2);
}
.home-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
}
.home-split-media {
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(168,85,247,.1);
}
.home-split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.home-step {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.home-step:hover {
  transform: translateY(-3px);
  border-color: var(--border-purple);
  box-shadow: 0 0 24px rgba(168,85,247,.14);
}
.home-step-num {
  display: block;
  font-family: var(--font);
  font-size: 1.6rem;
  color: var(--purple-2);
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}
.home-step h3 {
  font-family: var(--font);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.home-step p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.home-step a {
  color: var(--purple-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.home-step a:hover { text-decoration: underline; }

.home-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 180px;
  gap: 0.85rem;
}
.home-shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.15rem;
  transition: all .25s ease;
  isolation: isolate;
  min-height: 180px;
}
.home-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .45s ease;
}
.home-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.9));
  z-index: 1;
}
.home-shot span {
  position: relative;
  z-index: 2;
  font-family: var(--font);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-shot:hover {
  transform: translateY(-3px);
  border-color: var(--border-purple);
  box-shadow: 0 0 28px rgba(168,85,247,.2);
}
.home-shot:hover img { transform: scale(1.06); }
.home-shot--tall { grid-row: span 2; min-height: 100%; }
.home-shot--wide { grid-column: 1 / -1; min-height: 200px; }

.home-finale {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 280px;
  margin: 2rem 0 0.5rem;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-align: center;
}
.home-finale-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-finale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.88)),
    linear-gradient(135deg, rgba(168,85,247,.25), transparent 50%);
}
.home-finale-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem;
}
.home-finale h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.home-finale p {
  color: var(--text-2);
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
  .home-status { grid-template-columns: 1fr 1fr; }
  .home-status-action { justify-content: flex-start; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .feature-grid, .job-grid, .stats { grid-template-columns: 1fr 1fr; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .search { display: none; }
  .home-split, .home-steps, .home-gallery { grid-template-columns: 1fr; }
  .home-gallery .home-shot:nth-child(1),
  .home-gallery .home-shot:nth-child(4) { grid-column: auto; grid-row: auto; min-height: 200px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  .menu-toggle { display: inline-flex; }
  .feature-grid, .job-grid, .stats, .biz-grid { grid-template-columns: 1fr; }
  .home-hero { min-height: 70vh; }
  .home-cta .btn { width: 100%; }
  .home-status { grid-template-columns: 1fr; margin-top: -1rem; }
}
