/* ==========================================================================
   CSJ STUDIOS - CHARLIE SJ STUDIOS
   Theme: High-End Stealth Obsidian & Molten Chrome Orange (FiveM Dedicated)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Tokens */
  --bg-black: #060709;
  --bg-main: #0a0c10;
  --bg-surface: #10131a;
  --bg-surface-elevated: #161a24;
  --bg-card: rgba(18, 22, 31, 0.85);
  --bg-card-hover: rgba(26, 32, 45, 0.95);
  --bg-glass: rgba(16, 19, 26, 0.7);

  /* Primary Accent: Molten Cyber Orange (from CSJ logo) */
  --csj-orange: #ff6a00;
  --csj-orange-bright: #ff851a;
  --csj-orange-hover: #ff7d1a;
  --csj-orange-dark: #cc5200;
  --csj-orange-glow: rgba(255, 106, 0, 0.45);
  --csj-orange-subtle: rgba(255, 106, 0, 0.12);

  /* Metallic Chrome & Titanium */
  --chrome-100: #ffffff;
  --chrome-200: #e2e8f0;
  --chrome-300: #cbd5e1;
  --chrome-400: #94a3b8;
  --chrome-500: #64748b;
  --chrome-600: #334155;
  --chrome-border: rgba(255, 255, 255, 0.1);
  --chrome-border-hover: rgba(255, 106, 0, 0.5);

  /* Status Colors */
  --color-success: #10b981;
  --color-resmon: #00ff88;
  --color-discord: #5865F2;
  --color-tebex: #ff6a00;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 0 25px rgba(255, 106, 0, 0.35);
  --shadow-orange-lg: 0 0 45px rgba(255, 106, 0, 0.5);

  /* Layout */
  --nav-height: 80px;
  --max-width: 1300px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  color: var(--chrome-200);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 106, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(255, 106, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(255, 106, 0, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: var(--chrome-600);
  border-radius: 5px;
  border: 2px solid var(--bg-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--csj-orange);
}

/* Background Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--chrome-100);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.text-gradient-chrome {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ff944d 0%, #ff6a00 50%, #e65100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 106, 0, 0.3);
}

.text-orange {
  color: var(--csj-orange);
}

.text-muted {
  color: var(--chrome-400);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--chrome-border);
  z-index: 1000;
  transition: var(--transition);
}

.site-nav.scrolled {
  background: rgba(6, 7, 9, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(255, 106, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 106, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
  transition: var(--transition);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.05);
  border-color: var(--csj-orange-bright);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.6);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #fff;
}

.brand-title-main span {
  color: var(--csj-orange);
}

.brand-title-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--chrome-400);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--chrome-300);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--csj-orange);
  box-shadow: 0 0 10px var(--csj-orange);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--chrome-border);
  color: var(--chrome-300);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.audio-toggle-btn:hover {
  border-color: var(--csj-orange);
  color: var(--csj-orange);
  box-shadow: 0 0 15px var(--csj-orange-glow);
}

.audio-toggle-btn.active {
  color: var(--csj-orange-bright);
  border-color: var(--csj-orange);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7d1a 0%, #ff5500 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c2e 0%, #ff6600 100%);
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--chrome-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-orange {
  background: var(--csj-orange-subtle);
  color: var(--csj-orange-bright);
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.badge-glow {
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}

.badge-framework {
  background: rgba(255, 255, 255, 0.06);
  color: var(--chrome-300);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.hero-pill i {
  color: var(--csj-orange);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--chrome-300);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* 3D Logo Display in Hero */
.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(255, 106, 0, 0.15) 0%, rgba(16, 20, 28, 0.85) 70%);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-orange);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.hero-emblem-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), var(--shadow-orange-lg);
  border-color: var(--csj-orange-bright);
}

.hero-emblem-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 106, 0, 0.6), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-logo-img {
  width: 85%;
  height: auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s ease;
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 9, 12, 0.92);
  border: 1px solid rgba(255, 106, 0, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.hero-floating-badge i {
  color: var(--csj-orange);
}

/* ==========================================================================
   ORIGIN STORY & OUR MISSION
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 106, 0, 0.15);
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--csj-orange), transparent);
}

.story-badge-wrap {
  display: inline-flex;
  margin-bottom: 20px;
}

.story-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #fff;
}

.story-card p {
  color: var(--chrome-300);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-pretitle {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--csj-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--chrome-400);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   SCRIPTS SHOWCASE (CARDS)
   ========================================================================== */
.scripts-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
}

.custom-script-card {
  background: var(--bg-card);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.custom-script-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 106, 0, 0.25);
  background: var(--bg-card-hover);
}

.script-banner-header {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.script-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-script-card:hover .script-banner-img {
  transform: scale(1.05);
}

.script-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.script-overlay-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--csj-orange-bright);
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.custom-script-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.custom-script-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.2;
}

.custom-script-tagline {
  color: var(--chrome-300);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.custom-features-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--csj-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.custom-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--chrome-200);
  line-height: 1.5;
}

.custom-features-list li .feat-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-script-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--chrome-border);
}

.custom-script-actions .btn {
  flex: 1;
}

/* ==========================================================================
   WHY CHOOSE OUR SCRIPTS?
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 106, 0, 0.2);
}

.why-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

.why-card h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--chrome-400);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   ROADMAP / UPCOMING UPDATES
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.roadmap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 106, 0, 0.15);
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-badge {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dev {
  background: rgba(255, 106, 0, 0.15);
  color: var(--csj-orange-bright);
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.status-testing {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-planning {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.roadmap-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.roadmap-desc {
  color: var(--chrome-300);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-stage {
  color: var(--chrome-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-pct {
  font-family: var(--font-code);
  color: var(--csj-orange-bright);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #ff851a, #ff5500);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.7);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   COMMUNITY / DISCORD CTA BANNER
   ========================================================================== */
.discord-banner-card {
  background: radial-gradient(circle at 100% 50%, rgba(88, 101, 242, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 0% 50%, rgba(255, 106, 0, 0.18) 0%, transparent 60%),
              var(--bg-surface);
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-orange);
  position: relative;
  overflow: hidden;
}

.discord-banner-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.discord-banner-card p {
  font-size: 1.1rem;
  color: var(--chrome-300);
  max-width: 660px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.discord-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #040507;
  border-top: 1px solid var(--chrome-border);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--chrome-400);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--chrome-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--csj-orange);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--chrome-500);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   INTERACTIVE SCRIPT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 106, 0, 0.3);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--chrome-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--csj-orange);
  border-color: var(--csj-orange);
  transform: rotate(90deg);
}

.modal-media-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  overflow: hidden;
  background: #000;
}

.modal-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-area {
  padding: 32px;
}

.modal-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--chrome-border);
  margin-bottom: 24px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--chrome-400);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.modal-tab-btn:hover {
  color: #fff;
}

.modal-tab-btn.active {
  color: var(--csj-orange);
  border-bottom-color: var(--csj-orange);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

.code-preview-block {
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

.modal-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--chrome-border);
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast feedback */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10131a;
  border: 1px solid var(--csj-orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 106, 0, 0.4);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-pill-group {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #080a0e;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--chrome-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.mobile-open {
    transform: translateY(0);
  }
  .mobile-menu-toggle {
    display: block;
  }
  .scripts-grid-custom {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
