/* ==========================================================================
   ORDIS PUBLIC WEBSITE STYLESHEET — SOP GATEWAY
   Canonical: https://sop-ordis.win
   Theme: Standard of Purity (SOP) Red & Black Direction
   ========================================================================== */

:root {
  --bg-primary: #08080a;
  --bg-secondary: #0f0f14;
  --bg-surface: #14141c;
  --bg-card: rgba(18, 18, 25, 0.85);
  --bg-card-hover: rgba(28, 28, 40, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-color: rgba(225, 29, 72, 0.3);
  --border-hover: rgba(225, 29, 72, 0.75);
  
  --accent-red: #e11d48;
  --accent-red-hover: #be123c;
  --accent-red-glow: rgba(225, 29, 72, 0.45);
  --accent-red-soft: rgba(225, 29, 72, 0.12);
  
  --accent-discord: #5865F2;
  --accent-discord-hover: #4752C4;
  --accent-discord-glow: rgba(88, 101, 242, 0.4);

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================================
   BACKGROUND WALLPAPER LOGO (Uniform with Dashboard & Arcade)
   ========================================================================= */
.sop-bg-wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #060608;
  background-image: url('/standard_of_purity.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================================
   WELCOME OVERLAY (Modal & Blurred Backdrop)
   ========================================================================= */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.welcome-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.welcome-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(145deg, rgba(20, 20, 28, 0.96) 0%, rgba(12, 12, 18, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 40px var(--accent-red-glow);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-overlay.is-dismissed .welcome-modal {
  transform: translateY(-20px);
}

.welcome-logo-wrap {
  margin-bottom: 1.25rem;
}

.welcome-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 0 24px var(--accent-red-glow);
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.welcome-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  background: var(--accent-red-soft);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-welcome-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent-discord);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-discord-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-welcome-discord:hover {
  background: var(--accent-discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.55);
}

.btn-welcome-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-welcome-explore:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--accent-red);
  color: #ffffff;
}

.welcome-hint {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 0 14px var(--accent-red-glow);
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(225, 29, 72, 0.12);
  color: #ff4d6d;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-discord);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px var(--accent-discord-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.nav-discord-btn:hover {
  background: var(--accent-discord-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.6);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================================================
   MAIN LAYOUT & HERO SECTION
   ========================================================================= */
.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-section {
  padding: 5rem 1.5rem 4rem;
  position: relative;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4d6d;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid var(--border-color);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, #ff4d6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-discord);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-discord-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  background: var(--accent-discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}

/* =========================================================================
   HUB GRID SECTION (The Bones)
   ========================================================================= */
.hub-section {
  padding: 4rem 1.5rem;
}

.hub-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hub-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  overflow: hidden;
}

.hub-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-red-glow);
}

.featured-hub-card {
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(160deg, rgba(20, 20, 32, 0.95) 0%, rgba(14, 16, 26, 0.95) 100%);
}

.featured-hub-card:hover {
  border-color: rgba(88, 101, 242, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-discord-glow);
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.discord-badge {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #8da0ff;
}

.status-badge {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.card-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff4d6d;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hub-card:hover .card-cta {
  color: #ffffff;
}

.featured-hub-card .card-cta {
  color: #8da0ff;
}

.disabled-cta {
  color: var(--text-muted);
  font-weight: 600;
}

.nested-link {
  color: #ff4d6d;
  text-decoration: none;
}

.nested-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* =========================================================================
   BOTTOM BANNER SECTION
   ========================================================================= */
.banner-section {
  padding: 3rem 1.5rem 5rem;
}

.banner-container {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18) 0%, rgba(15, 15, 20, 0.95) 60%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.banner-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.banner-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.btn-banner-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-discord);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-discord-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.btn-banner-discord:hover {
  background: var(--accent-discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* =========================================================================
   SITE FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  transition: var(--transition);
}

/* =========================================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================= */
@media (max-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.65rem 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.is-active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.6rem 0.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .banner-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-brand {
    flex-direction: column;
  }
}
