/* ============================================================
   NEXUS HUB — Skeuomorphic / Neumorphic / Hitech Design System
   ============================================================ */

:root {
  /* --- Core palette --- */
  --nx-bg: #13161d;
  --nx-surface: #191d26;
  --nx-raised: #1f242e;
  --nx-inset: #11141a;

  /* --- Accent (Blue) --- */
  --nx-accent: #1eff00;
  --nx-accent-dim: rgba(77, 159, 255, 0.1);
  --nx-accent-mid: rgba(77, 159, 255, 0.25);

  /* --- Secondary accent --- */
  --nx-warn: #e8a838;
  --nx-warn-dim: rgba(232, 168, 56, 0.12);

  /* --- Text --- */
  --nx-text: #b8c4d6;
  --nx-text-bright: #e4eaf2;
  --nx-text-muted: #4e5b6e;

  /* --- Neumorphic shadows (dark mode) --- */
  --nx-neu-dark: rgba(0, 0, 0, 0.5);
  --nx-neu-light: rgba(38, 44, 58, 0.22);
  --nx-neu-inset: rgba(0, 0, 0, 0.55);

  /* --- Borders --- */
  --nx-border: rgba(255, 255, 255, 0.055);
  --nx-border-hi: rgba(255, 255, 255, 0.1);

  /* --- Fonts --- */
  --nx-font-head: "Orbitron", sans-serif;
  --nx-font-body: "Space Mono", monospace;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.007) 80px,
      rgba(255, 255, 255, 0.007) 81px
    ),
    radial-gradient(ellipse at 50% 0%, #1a1f28 0%, var(--nx-bg) 65%),
    var(--nx-bg);
  font-family: var(--nx-font-body);
  color: var(--nx-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== AMBIENT GLOW (top) ===== */
.ambient-top {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse,
    rgba(77, 159, 255, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== CONTAINER ===== */
.nx-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER — Brushed-metal navigation frame
   ============================================================ */
.nx-header {
  position: sticky;
  top: 12px;
  z-index: 200;
  margin-bottom: 60px;
}

.nx-header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.012) 1px,
      rgba(255, 255, 255, 0.012) 2px
    ),
    linear-gradient(180deg, var(--nx-raised), var(--nx-surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 28px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s;
}
.nx-header-frame:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--nx-border-hi);
}

/* Logo */
.nx-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nx-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--nx-accent);
  background: linear-gradient(145deg, #222730, #171b22);
  box-shadow:
    3px 3px 8px var(--nx-neu-dark),
    -3px -3px 8px var(--nx-neu-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  position: relative;
}
.nx-logo-badge::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #222);
  box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.6);
}
.nx-logo-name {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: 1.4rem;
  background: linear-gradient(180deg, #d8dee8 0%, #8a96a8 45%, #b0b8c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.nx-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx-nav-link {
  font-family: var(--nx-font-head);
  font-weight: 500;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.nx-nav-link:hover {
  color: var(--nx-text-bright);
  background: var(--nx-accent-dim);
  border-color: rgba(77, 159, 255, 0.12);
}

/* Status pill */
.nx-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(77, 159, 255, 0.15);
  background: var(--nx-accent-dim);
  flex-shrink: 0;
}
.nx-status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-accent);
  box-shadow:
    0 0 8px var(--nx-accent),
    0 0 16px rgba(107, 255, 77, 0.25);
  animation: ledPulse 2.5s ease-in-out infinite;
}
.nx-status-label {
  font-family: var(--nx-font-head);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--nx-accent);
}
@keyframes ledPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow:
      0 0 8px var(--nx-accent),
      0 0 16px rgba(77, 159, 255, 0.25);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 4px var(--nx-accent);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.nx-hero {
  text-align: center;
  padding: 40px 0 80px;
  position: relative;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.nx-hero-title {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 1;
  background: linear-gradient(
    180deg,
    #e8edf4 0%,
    #a0aec0 28%,
    #6b7a90 50%,
    #a0aec0 72%,
    #d0d8e4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  margin-bottom: 24px;
}

.nx-hero-line {
  width: 120px;
  height: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--nx-accent),
    transparent
  );
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.25);
}

.nx-hero-tagline {
  font-family: var(--nx-font-head);
  font-weight: 500;
  font-size: clamp(0.8rem, 2vw, 1rem);
  text-transform: uppercase;
  color: var(--nx-text-bright);
  margin-bottom: 20px;
}

.nx-hero-desc {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--nx-text-muted);
}

.nx-hero-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.008) 1px,
      rgba(255, 255, 255, 0.008) 2px
    ),
    linear-gradient(180deg, var(--nx-inset), #0e1117);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.5),
    inset -1px -1px 4px rgba(30, 35, 45, 0.15);
}
.nx-hero-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--nx-font-head);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--nx-text-muted);
}
.nx-hero-indicator svg {
  color: var(--nx-accent);
  opacity: 0.7;
}
.nx-hero-sep {
  width: 1px;
  height: 20px;
  background: var(--border-hi, rgba(255, 255, 255, 0.08));
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.nx-section {
  margin-bottom: 72px;
}
.nx-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.nx-section-label {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nx-text-bright);
  white-space: nowrap;
}
.nx-section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--nx-border-hi), transparent);
}

/* ============================================================
   RESOURCE PANELS — Enhanced cards with images
   ============================================================ */
.nx-res-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .nx-res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .nx-res-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.nx-res-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.01) 1px,
      rgba(255, 255, 255, 0.01) 2px
    ),
    linear-gradient(145deg, var(--nx-raised), var(--nx-surface));
  border: 1px solid var(--border);
  box-shadow:
    7px 7px 18px var(--nx-neu-dark),
    -7px -7px 18px var(--nx-neu-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Holographic overlay effect */
.nx-res-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(77, 159, 255, 0.03),
    rgba(77, 159, 255, 0.08),
    rgba(77, 159, 255, 0.03),
    transparent
  );
  transition: left 0.7s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.nx-res-card:hover::before {
  left: 100%;
}

.nx-res-card:hover {
  box-shadow:
    inset 4px 4px 12px var(--nx-neu-inset),
    inset -2px -2px 8px var(--nx-neu-light),
    0 0 40px rgba(77,159,255,0.12),
    0 0 80px rgba(77,159,255,0.05);
  border-color: rgba(77,159,255,0.25);
  transform: translateY(-6px);
}

/* Image wrapper */
.nx-res-image-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
}

.nx-res-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.nx-res-image-wrap::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(77, 159, 255, 0.1),
    transparent
  );
  animation: scanLine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

.nx-res-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s;
}

/* Platform-specific gradients */
.nx-res-telegram {
  background: linear-gradient(135deg, #1d93d4 0%, #0088cc 50%, #0066aa 100%);
}
.nx-res-github {
  background: linear-gradient(135deg, #333 0%, #24292e 50%, #1a1f24 100%);
}
.nx-res-discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #3c45a3 100%);
}
.nx-res-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
}

.nx-res-img-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.4s;
}

.nx-res-card:hover .nx-res-img-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

/* Glow effect */
.nx-res-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.nx-res-card:hover .nx-res-glow {
  left: 100%;
}

/* Content area */
.nx-res-content {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nx-res-name {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--nx-text-bright);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.nx-res-divider {
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: var(--border-hi);
  margin-bottom: 10px;
  transition: all 0.3s;
}
.nx-res-card:hover .nx-res-divider {
  background: var(--nx-accent);
  box-shadow: 0 0 10px rgba(77, 159, 255, 0.4);
  width: 60px;
}

.nx-res-desc {
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.nx-res-full-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--nx-text);
  margin-bottom: 14px;
  flex: 1;
  opacity: 0.85;
}

/* Meta row */
.nx-res-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nx-res-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-family: var(--nx-font-head);
  letter-spacing: 1px;
  color: var(--nx-text-muted);
  text-transform: uppercase;
}

.nx-res-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.nx-res-arrow {
  color: var(--nx-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.nx-res-card:hover .nx-res-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.nx-features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .nx-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nx-features-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.nx-feature-card {
  padding: 28px 22px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  box-shadow:
    inset 2px 2px 6px rgba(0,0,0,0.40),
    inset -1px -1px 4px rgba(28,33,42,0.10);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.nx-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--nx-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.nx-feature-card:hover {
  border-color: rgba(77,159,255,0.15);
  transform: translateY(-4px);
  box-shadow:
    inset 2px 2px 6px rgba(0,0,0,0.40),
    inset -1px -1px 4px rgba(28,33,42,0.10),
    0 10px 30px rgba(77,159,255,0.08);
}

.nx-feature-card:hover::before {
  opacity: 1;
}

.nx-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(77,159,255,0.15), rgba(77,159,255,0.05));
  border: 1px solid rgba(77,159,255,0.2);
  color: var(--nx-accent);
  transition: all 0.35s;
}

.nx-feature-card:hover .nx-feature-icon {
  background: linear-gradient(135deg, rgba(77,159,255,0.25), rgba(77,159,255,0.1));
  box-shadow: 0 0 20px rgba(77,159,255,0.15);
  transform: scale(1.05);
}

.nx-feature-title {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
  margin-bottom: 10px;
}

.nx-feature-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--nx-text);
  margin-bottom: 16px;
}

.nx-feature-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: rgba(77,159,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(77,159,255,0.1);
}

.nx-feature-stat-value {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--nx-accent);
  line-height: 1;
  text-shadow: 0 0 15px rgba(77,159,255,0.3);
}

.nx-feature-stat-label {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--nx-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.nx-team-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .nx-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nx-team-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.nx-team-card {
  padding: 28px 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, var(--nx-raised), var(--nx-surface));
  border: 1px solid var(--border);
  box-shadow:
    5px 5px 15px var(--nx-neu-dark),
    -5px -5px 15px var(--nx-neu-light);
  transition: all 0.35s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nx-team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nx-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.nx-team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77,159,255,0.15);
  box-shadow:
    8px 8px 20px var(--nx-neu-dark),
    -8px -8px 20px var(--nx-neu-light),
    0 0 25px rgba(77,159,255,0.08);
}

.nx-team-card:hover::after {
  opacity: 1;
}

.nx-team-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(77,159,255,0.3), rgba(77,159,255,0.05));
  position: relative;
}

.nx-team-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--nx-inset), #0d1015);
  display: grid;
  place-items: center;
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--nx-accent);
  border: 2px solid rgba(77,159,255,0.2);
}

.nx-team-name {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
  margin-bottom: 6px;
}

.nx-team-role {
  font-size: 0.7rem;
  color: var(--nx-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.nx-team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nx-team-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  color: var(--nx-text-muted);
  transition: all 0.3s;
}

.nx-team-social-link:hover {
  color: var(--nx-accent);
  border-color: rgba(77,159,255,0.3);
  background: rgba(77,159,255,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   STATS COUNTER SECTION
   ============================================================ */
.nx-stats-section {
  padding: 40px 0;
  margin-bottom: 72px;
}

.nx-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .nx-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nx-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.nx-stat-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  box-shadow:
    inset 3px 3px 8px rgba(0,0,0,0.45),
    inset -2px -2px 6px rgba(28,33,42,0.12);
  transition: all 0.35s;
}

.nx-stat-item:hover {
  border-color: rgba(77,159,255,0.15);
  box-shadow:
    inset 3px 3px 8px rgba(0,0,0,0.45),
    inset -2px -2px 6px rgba(28,33,42,0.12),
    0 0 30px rgba(77,159,255,0.08);
  transform: translateY(-4px);
}

.nx-stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(77,159,255,0.2), rgba(77,159,255,0.05));
  border: 1px solid rgba(77,159,255,0.2);
  color: var(--nx-accent);
}

.nx-stat-value {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--nx-accent);
  line-height: 1;
  text-shadow: 0 0 25px rgba(77,159,255,0.3);
  margin-bottom: 8px;
}

.nx-stat-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--nx-text-muted);
  text-transform: uppercase;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.nx-cta-section {
  margin-bottom: 72px;
}

.nx-cta-card {
  position: relative;
  border-radius: 24px;
  padding: 50px 30px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.008) 1px,
      rgba(255,255,255,0.008) 2px
    ),
    linear-gradient(135deg, var(--nx-raised) 0%, var(--nx-surface) 100%);
  border: 1px solid var(--border);
  box-shadow:
    15px 15px 40px rgba(0,0,0,0.45),
    -10px -10px 30px var(--nx-neu-light),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  text-align: center;
}

.nx-cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(77,159,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.nx-cta-content {
  position: relative;
  z-index: 1;
}

.nx-cta-title {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 3px;
  color: var(--nx-text-bright);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(77,159,255,0.2);
}

.nx-cta-text {
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--nx-text);
}

.nx-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.nx-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--nx-font-head);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s;
  cursor: pointer;
}

.nx-cta-btn-primary {
  background: linear-gradient(135deg, var(--nx-accent) 0%, #3a7bd5 100%);
  color: #fff;
  border: none;
  box-shadow:
    0 4px 15px rgba(77,159,255,0.4),
    0 0 30px rgba(77,159,255,0.1);
}

.nx-cta-btn-primary:hover {
  box-shadow:
    0 6px 20px rgba(77,159,255,0.5),
    0 0 40px rgba(77,159,255,0.2);
  transform: translateY(-2px);
}

.nx-cta-btn-secondary {
  background: transparent;
  color: var(--nx-accent);
  border: 1px solid rgba(77,159,255,0.3);
}

.nx-cta-btn-secondary:hover {
  background: rgba(77,159,255,0.1);
  border-color: var(--nx-accent);
  transform: translateY(-2px);
}

/* ============================================================
   NEWS SLIDER — Carousel with neumorphic controls
   ============================================================ */
.nx-slider-wrap {
  position: relative;
  border-radius: 8px;
  padding: 6px;
  background: linear-gradient(180deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  box-shadow:
    inset 3px 3px 10px rgba(0, 0, 0, 0.45),
    inset -2px -2px 6px rgba(28, 33, 42, 0.12);
}

.nx-slider-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.nx-slider-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.nx-slider-container::-webkit-scrollbar {
  display: none;
}

.nx-slider-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .nx-slider-slide {
    flex: 0 0 calc(50% - 9px);
  }
}
@media (min-width: 1024px) {
  .nx-slider-slide {
    flex: 0 0 calc(33.333% - 12px);
  }
}

.nx-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.nx-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--nx-text-muted);
  background: linear-gradient(145deg, var(--nx-raised), var(--nx-surface));
  box-shadow:
    3px 3px 8px var(--nx-neu-dark),
    -3px -3px 8px var(--nx-neu-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s;
}
.nx-slider-btn:hover {
  color: var(--nx-accent);
  border-color: var(--nx-accent-mid);
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.35),
    inset -1px -1px 4px var(--nx-neu-light),
    0 0 15px rgba(77, 159, 255, 0.08);
}
.nx-slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nx-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--nx-border-hi);
  background: var(--nx-inset);
  cursor: pointer;
  transition: all 0.3s;
}
.nx-slider-dot.active {
  background: var(--nx-accent);
  border-color: var(--nx-accent);
  box-shadow: 0 0 8px rgba(77, 255, 92, 0.35);
}

.nx-news-card {
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--nx-raised), var(--nx-surface));
  border: 1px solid var(--border);
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.3),
    -3px -3px 10px var(--nx-neu-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.nx-news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--border-hi);
  border-radius: 0 2px 2px 0;
  transition: all 0.3s;
}
.nx-news-card:hover {
  border-color: rgba(77, 159, 255, 0.1);
}
.nx-news-card:hover::before {
  background: var(--nx-accent);
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.3);
}

.nx-news-ts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nx-font-head);
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: var(--nx-accent);
  opacity: 0.7;
  margin-bottom: 14px;
}
.nx-news-ts::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-accent);
  opacity: 0.5;
}

.nx-news-title {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
  margin-bottom: 12px;
  line-height: 1.5;
}

.nx-news-excerpt {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--nx-text-muted);
}

/* ============================================================
   TECH STACK — Recessed chip panel
   ============================================================ */
.nx-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .nx-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .nx-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-tech-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.4),
    inset -1px -1px 4px rgba(28, 33, 42, 0.1);
  transition: all 0.25s;
}
.nx-tech-chip:hover {
  border-color: rgba(77, 159, 255, 0.12);
}

.nx-tech-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #222730, #181c24);
  box-shadow:
    2px 2px 5px var(--nx-neu-dark),
    -2px -2px 5px var(--nx-neu-light);
}
.nx-tech-icon svg {
  color: var(--nx-accent);
  opacity: 0.75;
}

.nx-tech-name {
  font-family: var(--nx-font-head);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
}
.nx-tech-desc {
  font-size: 0.65rem;
  color: var(--nx-text-muted);
  margin-top: 2px;
}

/* ============================================================
   TIMELINE — Vertical milestones
   ============================================================ */
.nx-timeline {
  position: relative;
  padding-left: 36px;
}
.nx-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--nx-accent),
    var(--border-hi),
    transparent
  );
  border-radius: 1px;
}

.nx-tl-item {
  position: relative;
  padding-bottom: 28px;
}
.nx-tl-item:last-child {
  padding-bottom: 0;
}

.nx-tl-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--nx-border-hi);
  background: var(--nx-surface);
  box-shadow:
    0 0 0 3px var(--nx-inset),
    0 0 8px rgba(77, 159, 255, 0.1);
  transition: all 0.3s;
}
.nx-tl-item:hover .nx-tl-dot {
  border-color: var(--nx-accent);
  box-shadow:
    0 0 0 3px var(--nx-inset),
    0 0 12px rgba(77, 159, 255, 0.25);
  background: var(--nx-accent);
}

.nx-tl-date {
  font-family: var(--nx-font-head);
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--nx-accent);
  opacity: 0.7;
  margin-bottom: 6px;
}
.nx-tl-title {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
  margin-bottom: 6px;
}
.nx-tl-desc {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--nx-text-muted);
}

/* ============================================================
   ABOUT / SPEC PANEL — Brushed-metal panel
   ============================================================ */
.nx-spec-panel {
  border-radius: 8px;
  padding: 44px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.008) 1px,
      rgba(255, 255, 255, 0.008) 2px
    ),
    linear-gradient(180deg, var(--nx-raised) 0%, var(--nx-surface) 100%);
  border: 1px solid var(--border);
  box-shadow:
    10px 10px 30px rgba(0, 0, 0, 0.4),
    -6px -6px 20px var(--nx-neu-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.nx-screw {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5568, #1a202c);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 1px 4px rgba(0, 0, 0, 0.4);
}
.nx-screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 28%;
  right: 28%;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) rotate(35deg);
  border-radius: 1px;
}
.nx-screw-tl {
  top: 18px;
  left: 18px;
}
.nx-screw-tr {
  top: 18px;
  right: 18px;
}
.nx-screw-bl {
  bottom: 18px;
  left: 18px;
}
.nx-screw-br {
  bottom: 18px;
  right: 18px;
}

.nx-spec-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .nx-spec-content {
    flex-direction: row;
  }
}

.nx-spec-text-block {
  flex: 1;
}

.nx-spec-title {
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--nx-text-bright);
  margin-bottom: 24px;
}

.nx-spec-text {
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--nx-text);
  margin-bottom: 18px;
}
.nx-spec-text strong {
  color: var(--nx-text-bright);
  font-weight: 700;
}

.nx-spec-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
}

.nx-gauge {
  text-align: center;
  padding: 22px 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--nx-inset), #0d1015);
  border: 1px solid var(--border);
  box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.45),
    inset -2px -2px 6px rgba(28, 33, 42, 0.12);
  transition: all 0.3s;
}
.nx-gauge:hover {
  border-color: rgba(77, 159, 255, 0.12);
  box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.45),
    inset -2px -2px 6px rgba(28, 33, 42, 0.12),
    0 0 20px rgba(77, 159, 255, 0.05);
}

.nx-gauge-value {
  font-family: var(--nx-font-head);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--nx-accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(77, 159, 255, 0.2);
  margin-bottom: 8px;
}

.nx-gauge-label {
  font-family: var(--nx-font-head);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nx-text-muted);
}

.nx-gauge-value.infinite {
  animation: ledPulse 4s ease-in-out infinite;
}

/* ============================================================
   FOOTER — Metal bar
   ============================================================ */
.nx-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.nx-footer-item {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--nx-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx-footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-accent);
  opacity: 0.4;
}
.nx-blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--nx-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nx-header-frame {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 18px;
    gap: 10px;
  }
  .nx-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nx-nav-link {
    font-size: 0.55rem;
    padding: 6px 10px;
  }
  .nx-hero {
    padding: 24px 0 60px;
  }
  .nx-hero-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .nx-hero-sep {
    display: none;
  }
  .nx-spec-panel {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .nx-gauge-value {
    font-size: 1.7rem;
  }
  .nx-res-image-wrap {
    height: 120px;
  }
  .nx-res-img-icon {
    width: 50px;
    height: 50px;
  }
  .nx-res-full-desc {
    font-size: 0.68rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nx-feature-stat-value {
    font-size: 1.2rem;
  }
  .nx-stat-value {
    font-size: 2rem;
  }
  .nx-cta-card {
    padding: 35px 20px;
  }
  .nx-cta-title {
    font-size: 1.5rem;
  }
  .nx-cta-text {
    font-size: 0.8rem;
  }
  .nx-cta-btn {
    padding: 12px 22px;
    font-size: 0.65rem;
  }
  .nx-team-avatar {
    width: 75px;
    height: 75px;
  }
  .nx-team-avatar-placeholder {
    font-size: 1.1rem;
  }
}
