/* ==========================================================================
   ZeroScope (zcsp.win) - Monochrome Design System
   Inspired by filera.page | Deep Obsidian, Glassmorphism, Pure Monochrome
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --bg-card: #0d0d0f;
  --bg-card-hover: #141417;
  --bg-glass: rgba(13, 13, 15, 0.7);
  --bg-glass-elevated: rgba(20, 20, 24, 0.85);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --text-dark: #000000;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-bright: rgba(255, 255, 255, 0.35);

  --glow-white: 0 0 25px rgba(255, 255, 255, 0.15);
  --glow-strong: 0 0 35px rgba(255, 255, 255, 0.3);

  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #151518 0%, #000000 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Cyber Grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: #000000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 20px;
  box-shadow: var(--glow-white);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.08em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Live Status Beacon */
.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.beacon-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 14px #ffffff; }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: var(--glow-white);
}

.btn-primary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: var(--glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-bright);
}

.btn-danger {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-danger:hover {
  background: #ffffff;
  color: #000000;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 92px);
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 40%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 300;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 44px;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-extra {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Lookup Section */
.lookup-section {
  margin: 40px 0 80px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.card-header {
  margin-bottom: 24px;
}

.card-title {
  font-size: 28px;
  margin-bottom: 6px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Form Groups & Labels */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* Inputs, Textareas, Selects */
.input,
.textarea,
textarea,
select,
.select {
  width: 100%;
  box-sizing: border-box;
  background: #000000;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  display: block;
}

.textarea,
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
.textarea:focus,
textarea:focus,
select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
  background: #050507;
}

.input::placeholder,
.textarea::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Tab Navigation Buttons */
.tab-btn {
  background: #000000;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: var(--glow-white);
}

/* Modal Overlay & Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #0d0d0f;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.25s ease;
}

/* Player Preview Card */
.player-profile-card {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

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

.profile-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #111111;
  object-fit: cover;
  box-shadow: var(--glow-white);
}

.player-info {
  flex: 1;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.player-display-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.player-username {
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-mono);
}

.player-id-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.ban-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-clean {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.status-banned {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: var(--glow-strong);
}

/* Ban Details Box */
.ban-details-box {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.ban-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ban-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Code Snippet & Docs */
.code-container {
  background: #050507;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0c;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.code-tabs {
  display: flex;
  gap: 8px;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.code-pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e4e4e7;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-white);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffffff;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Steps / How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 36px 0;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 36px;
  color: #ffffff;
  opacity: 0.3;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle-icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: #ffffff;
}

/* CTA Box */
.cta-banner {
  background: radial-gradient(circle at 50% 50%, #1a1a1f 0%, #08080a 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.04);
}

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-subtitle {
  max-width: 580px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Section Header Helper */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  color: #ffffff;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  box-shadow: var(--glow-white);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .search-form {
    flex-direction: column;
  }
  .profile-inner {
    flex-direction: column;
    text-align: center;
  }
  .player-name-row {
    justify-content: center;
  }
}
