/* ==========================================================================
   魔戒 MOJIE DEDICATED NETWORK - CORE DESIGN SYSTEM
   Theme: Obsidian Architecture + Dark Gold Runic Inscriptions + Monumental Tech
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0D0F12;
  --bg-slate: #14171E;
  --bg-card: #171B24;
  --bg-card-hover: #1E2330;
  --bg-glass: rgba(20, 23, 30, 0.75);
  
  --border-subtle: #242A36;
  --border-gold-subtle: #3D3319;
  --border-gold-active: #C59B27;
  
  --gold-primary: #D4AF37;
  --gold-light: #FCE895;
  --gold-dark: #8C6D1F;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --accent-red: #8A1C14;
  --accent-red-glow: rgba(138, 28, 20, 0.35);
  
  --text-white: #F9FAFB;
  --text-gray-100: #E5E7EB;
  --text-gray-300: #D1D5DB;
  --text-gray-400: #9CA3AF;
  --text-gray-500: #6B7280;
  --text-gray-700: #374151;

  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.2);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-monument: "Cinzel", "Times New Roman", Georgia, serif;

  /* Shadows & Glows */
  --shadow-obsidian: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-gray-300);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-gray-300);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Runic Background Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    linear-gradient(rgba(36, 42, 54, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 42, 54, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 11, 14, 0.95);
  border-bottom: 1px solid var(--border-gold-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gray-400);
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #E6C458 0%, #C59B27 60%, #9A781E 100%);
  color: #0A0C0F;
  border: 1px solid #FFE68A;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FCE895 0%, #D4AF37 60%, #B08A24 100%);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  color: #050608;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-dark {
  background: #171B24;
  color: var(--text-gray-100);
  border: 1px solid var(--border-subtle);
}

.btn-dark:hover {
  background: #202633;
  border-color: var(--border-gold-subtle);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold-subtle);
}

.btn-outline-gold:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-gray-300);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Badge */
.rune-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
}

.rune-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Section Common */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

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

.section-subtitle {
  color: var(--gold-primary);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-gray-400);
  line-height: 1.8;
}

/* Cards & Slab Styling */
.obsidian-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-obsidian);
  overflow: hidden;
}

.obsidian-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-gold-subtle), transparent);
  transition: all 0.3s ease;
}

.obsidian-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.12);
}

.obsidian-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.95rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .container {
    padding: 0 18px;
  }
}