/* ============================================================
   RAYNET MODDING — style.css
   Dark tactical command-center aesthetic
   ============================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&family=Chakra+Petch:wght@400;500;600;700&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #050508;
  --bg-dark: #0a0a12;
  --bg-card: #0d0d18;
  --bg-card-hover: #111122;
  --bg-surface: #12121e;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0, 255, 136, 0.15);
  --green-glow-strong: rgba(0, 255, 136, 0.3);
  --blue: #4a9eff;
  --blue-dim: #3a7ecc;
  --blue-glow: rgba(74, 158, 255, 0.15);
  --red: #ff4a6a;
  --red-dim: #cc3a55;
  --orange: #ff6600;
  --orange-dim: #cc5200;
  --orange-glow: rgba(255, 102, 0, 0.15);
  --orange-glow-strong: rgba(255, 102, 0, 0.3);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --border: #1a1a2e;
  --border-light: #252540;
  --border-dim: #151525;
  --radius: 3px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-ui: 'Chakra Petch', sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- SCANLINE OVERLAY (global) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.008) 2px,
    rgba(0, 255, 136, 0.008) 4px
  );
}

/* --- GRID TEXTURE OVERLAY --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image:
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-muted); max-width: 65ch; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--green); }

.mono { font-family: var(--font-mono); }
.green { color: var(--green); }
.blue { color: var(--blue); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  border: none;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--green);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-cta {
  padding: 8px 20px;
  background: var(--green);
  color: var(--bg-deep) !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  color: var(--bg-deep) !important;
  box-shadow: 0 0 20px var(--green-glow-strong);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
}
.btn-primary:hover {
  color: var(--bg-deep);
  box-shadow: 0 0 30px var(--green-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.15rem;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tag {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* --- COMPARISON TABLE (Old Way vs RAYNET) --- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-col { background: var(--bg-card); }

.compare-header {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.compare-header.old { color: var(--red); }
.compare-header.new { color: var(--green); }

.compare-row {
  padding: 16px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-row:last-child { border-bottom: none; }

.compare-icon {
  width: 20px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.compare-icon.bad { color: var(--red); }
.compare-icon.good { color: var(--green); }

/* --- MODULE GRID --- */
.module-categories {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.module-category-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.module-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
}

.module-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--green);
  background: var(--bg-dark);
}

.module-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.module-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* --- CONTROL MODES --- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mode-card:hover { border-color: var(--border-light); }

.mode-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 0 12px currentColor;
}

.mode-card.auto .mode-indicator { background: var(--red); color: var(--red); }
.mode-card.supervised .mode-indicator { background: #ffaa00; color: #ffaa00; }
.mode-card.manual .mode-indicator { background: var(--green); color: var(--green); }

.mode-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mode-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mode-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- PRICING --- */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 40px var(--green-glow);
  position: relative;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.pricing-period {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- COMPARISON TABLE (full) --- */
.full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.full-table th,
.full-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.full-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-size: 0.85rem;
  background: var(--bg-card);
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
}

.full-table td { color: var(--text-muted); }

.full-table tr:hover td { background: var(--bg-card); }

.full-table .check { color: var(--green); font-weight: 700; }
.full-table .cross { color: var(--red); }
.full-table .highlight-col { background: rgba(0, 255, 136, 0.03); }

/* --- MOD BROWSER --- */
.browse-header {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-bar {
  flex: 1;
  min-width: 280px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.search-bar:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.search-bar::placeholder { color: var(--text-dim); }

.filter-select {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888aa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--green);
}

.game-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.game-tab {
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.game-tab:hover { color: var(--text); }
.game-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pill {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover, .pill.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 255, 136, 0.05);
}

.browse-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.mod-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.mod-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.mod-info { padding: 14px 16px; }

.mod-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}

.mod-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mod-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mod-meta .stars { color: #ffaa00; }

.mod-badges {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-game { background: rgba(74, 158, 255, 0.1); color: var(--blue); border: 1px solid rgba(74, 158, 255, 0.2); }
.badge-cat { background: rgba(0, 255, 136, 0.06); color: var(--green-dim); border: 1px solid rgba(0, 255, 136, 0.15); }

/* Sidebar */
.browse-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.sidebar-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-item:hover { color: var(--green); }
.sidebar-item:last-child { border-bottom: none; }

/* --- TOOL PAGE --- */
.tool-module-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.tool-module-section:last-child { border-bottom: none; }

.tool-module-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-module-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.tool-module-detail h4 {
  color: var(--text);
  margin-bottom: 4px;
}

.tool-module-detail .replaces {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 12px;
}

.tool-module-detail ul {
  list-style: none;
  margin-bottom: 12px;
}

.tool-module-detail ul li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.tool-module-detail ul li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--green);
}

.mode-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-tag {
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.mode-tag.auto { background: rgba(255, 74, 106, 0.1); color: var(--red); border: 1px solid rgba(255, 74, 106, 0.2); }
.mode-tag.supervised { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.2); }
.mode-tag.manual { background: rgba(0, 255, 136, 0.06); color: var(--green); border: 1px solid rgba(0, 255, 136, 0.15); }

/* --- SYSTEM REQUIREMENTS --- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.spec-value {
  font-size: 0.9rem;
  color: var(--text);
}

.spec-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* --- SIGNUP / LOGIN FORMS --- */
.auth-container {
  max-width: 440px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.form-link {
  font-size: 0.85rem;
  text-align: right;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--green); }

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- ABOUT PAGE --- */
.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-content h3 {
  margin-bottom: 16px;
  margin-top: 40px;
}

/* --- FOOTER --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: var(--green); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-legal a {
  color: var(--text-dim);
  margin-left: 16px;
}

.footer-legal a:hover { color: var(--text-muted); }

/* --- CROSS-GAME SECTION --- */
.crossgame-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
}

.crossgame-box {
  width: 160px;
  height: 100px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.crossgame-arrow {
  font-size: 2rem;
  color: var(--green);
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* --- GAMES SECTION --- */
.games-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.game-slot {
  height: 80px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* --- COMMUNITY --- */
.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.community-card h4 {
  margin-bottom: 8px;
  color: var(--text);
}

.community-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; position: relative; }
.cta-section p { margin: 0 auto 32px; position: relative; }

/* --- DOWNLOAD SECTION --- */
.download-box {
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 40px var(--green-glow);
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- EMAIL CAPTURE --- */
.email-capture {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.email-capture input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.email-capture input:focus {
  outline: none;
  border-color: var(--green);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }
  .browse-sidebar { display: none; }
  .modes-grid { grid-template-columns: 1fr; }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .crossgame-visual { flex-direction: column; }
  .crossgame-arrow { transform: rotate(90deg); }
  .footer-content { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .pricing-card { padding: 32px 24px; }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .mod-grid { grid-template-columns: 1fr; }
}

/* --- COMMUNITY / CHAT PAGE --- */
.chat-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 480px;
}

.chat-sidebar {
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
}

.chat-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 8px 16px 6px;
}

.chat-room {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-room:hover { background: var(--bg-card); color: var(--text); }
.chat-room.active { background: rgba(0, 255, 136, 0.06); color: var(--green); border-right: 2px solid var(--green); }

.chat-room-hash {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.chat-main {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-messages {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.chat-msg-content { flex: 1; }

.chat-msg-author {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2px;
}

.chat-msg-author .chat-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 8px;
}

.chat-msg-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.chat-msg-bot .chat-avatar { border-color: var(--blue); color: var(--blue); }
.chat-msg-bot .chat-msg-author { color: var(--blue); }

.chat-input-area {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.chat-input:focus { outline: none; border-color: var(--green); }
.chat-input::placeholder { color: var(--text-dim); }

.chat-send {
  padding: 10px 16px;
  background: var(--green);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.chat-send:hover { box-shadow: 0 0 16px var(--green-glow); }

.access-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.access-table th,
.access-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.access-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-size: 0.8rem;
  background: var(--bg-card);
}

.access-table td:first-child { text-align: left; color: var(--text-muted); }
.access-table .check { color: var(--green); font-weight: 700; }
.access-table .cross { color: var(--red); }

@media (max-width: 768px) {
  .chat-mockup { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { display: none; }
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* --- SELECTION --- */
::selection {
  background: var(--green);
  color: var(--bg-deep);
}

/* ============================================================
   PASSWORD GATE
   ============================================================ */
#raynet-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#raynet-gate.gate-granted {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

#raynet-gate.gate-denied {
  animation: gateDeny 0.3s ease;
}

@keyframes gateDeny {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.gate-inner {
  text-align: center;
  max-width: 360px;
  padding: 24px;
}

.gate-logo {
  width: 64px;
  height: 64px;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--green);
  margin: 0 auto 20px;
  box-shadow: 0 0 24px var(--green-glow);
}

.gate-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gate-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.gate-form {
  display: flex;
  gap: 8px;
}

.gate-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: border-color 0.2s;
}

.gate-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.gate-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.gate-btn {
  padding: 12px 24px;
  background: var(--green);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.gate-btn:hover {
  box-shadow: 0 0 20px var(--green-glow-strong);
}

.gate-error {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  min-height: 1.2em;
}

/* ============================================================
   UNDER CONSTRUCTION BANNER
   ============================================================ */
.construction-banner {
  position: relative;
  z-index: 999;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange),
    var(--orange) 10px,
    #cc5200 10px,
    #cc5200 20px
  );
  padding: 2px 0;
}

.construction-banner-inner {
  background: var(--bg-deep);
  padding: 10px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
