/* ==========================================================================
   VXLZ.CC — PURE MONOCHROME NOIR PORTAL
   Synchronized Rarity Buttons & Ambient Cyber Grid Background
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Pure Obsidian & Monochrome Noir Palette (Strictly Zero Blue) */
  --bg-darkest: #000000;
  --bg-card: rgba(12, 12, 14, 0.76);
  --bg-card-hover: rgba(18, 18, 22, 0.92);
  --bg-card-solid: #0C0C0E;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-highlight: rgba(255, 255, 255, 0.16);

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-dim: #52525B;

  /* Status Indicator Green */
  --status-green: #10B981;
  --status-green-bg: rgba(16, 185, 129, 0.08);
  --status-green-border: rgba(16, 185, 129, 0.25);

  /* Modern Soft Radii */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-darkest);
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   AMBIENT BACKGROUND: CYBER GRID & SUBTLE MONOCHROME GLOW
   ========================================================================== */

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #000000;
}

.ambient-shape {
  position: absolute;
  will-change: transform;
}

.shape-orb-1 {
  top: -10%;
  left: 20%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 70%);
  filter: blur(90px);
  animation: driftOne 24s ease-in-out infinite alternate;
}

.shape-orb-2 {
  top: 40%;
  right: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 70%);
  filter: blur(85px);
  animation: driftTwo 28s ease-in-out infinite alternate;
}

.shape-orb-3 {
  bottom: -15%;
  left: 10%;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 50%, transparent 72%);
  filter: blur(95px);
  animation: driftThree 30s ease-in-out infinite alternate;
}



@keyframes driftOne {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 70px) scale(1.1); }
  100% { transform: translate(-40px, 35px) scale(0.95); }
}

@keyframes driftTwo {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-70px, -50px) scale(1.12); }
  100% { transform: translate(35px, -35px) scale(1); }
}

@keyframes driftThree {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(45px, -60px) scale(0.95); }
  100% { transform: translate(-45px, 45px) scale(1.08); }
}

/* Crisp Square Cyber Grid Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 40%, transparent 90%);
}

.ambient-spotlight {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* ==========================================================================
   FULL NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 66px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

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

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

.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  border-radius: var(--radius-sm);
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  transition: transform var(--transition-smooth);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

/* ==========================================================================
   MAIN CONTENT WRAPPER & HERO SECTION (OPEN & EXPANSIVE)
   ========================================================================== */

.main-wrapper {
  flex: 1;
  padding: 52px 0 68px;
}

.hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES GRID (2 WIDE OPEN CARDS)
   ========================================================================== */

.services-section {
  margin-bottom: 26px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.05);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

/* Top Border Beam Sweep */
.card-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  opacity: 0.6;
  transform: translateX(-100%);
  animation: beamSweep 6s ease-in-out infinite;
}

@keyframes beamSweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.service-card:hover .card-icon-box {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-body {
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.service-card:hover .tag {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-footer {
  margin-top: auto;
}

/* ==========================================================================
   BUTTONS & SYNCHRONIZED RARITY ANIMATION ("LE MÊME RYTHME POUR LES DEUX")
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
}

.btn-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-card svg {
  transition: transform var(--transition-fast);
  z-index: 2;
  position: relative;
}

.btn-card .btn-text {
  z-index: 2;
  position: relative;
}

.service-card:hover .btn-card svg {
  transform: translate(3px, -3px);
}

/* Both buttons share the exact same synchronized breathing aura */
.btn-rarity {
  animation: rarityAura 3.6s ease-in-out infinite;
}

@keyframes rarityAura {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.16);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.22), 0 4px 20px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.42);
  }
}

/* Both buttons share the EXACT SAME RHYTHM, ZERO OFFSET DELAY */
.btn-rarity::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -90%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent 100%
  );
  transform: rotate(28deg);
  animation: raritySheen 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes raritySheen {
  0% {
    left: -90%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  38% {
    left: 140%;
    opacity: 1;
  }
  39%, 100% {
    left: 140%;
    opacity: 0;
  }
}

.btn-card-secondary {
  background: #121216;
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.btn-card-secondary:hover {
  background: #18181E;
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.26), 0 6px 24px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   GLOBAL STATUS BAR (CLEAN & DIRECT)
   ========================================================================== */

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.status-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pulse-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--status-green);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 8px var(--status-green);
}

.status-radar {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--status-green);
  opacity: 0.6;
  animation: radarWave 2.4s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  z-index: 1;
}

@keyframes radarWave {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.status-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #FFFFFF;
}

.status-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.latency-indicator {
  display: flex;
  align-items: center;
}

.latency-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.btn-test-ping {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-test-ping:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: var(--border-hover);
}

.btn-test-ping.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-green);
  border-color: var(--status-green-border);
}

/* ==========================================================================
   FULL FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.88);
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
}

.footer-sep {
  opacity: 0.4;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-right a:hover {
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-bar-right {
    width: 100%;
    justify-content: space-between;
  }
}
